• Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Medium Medium
    • Montreal Release
    • None
    • NCMP
    • None

      • ModuleSet store in 'inventory' (in progess)
        1) First time ModulSetTag is used (for upgrade)
        Store in inventory, get module as normale and store in db as normal
        questions, can we just 'update' existign schemaset?!
        BEFORE 'ch-1'. schemaset id 'ch-1' ;points to modules A,B,C
      • node has been upgraded to use modules A,C,D (B removed)
      • moduleSetTag '5GSuper23Node'
        AFTER (in NCMP/CPS)
        (same) schemaset-id 'ch-1' should pint to modules A,C and D
        Invemtory for 'ch-1' should have moduleSetTag '5GSuper23Node'

      2) Another node 'ch-2' has been upgraded to mosuleSetTag '5GSuper23Node'
      check inventory to see ANY node use tag '5GSuper23Node' -> 1 found

      • get all module refences (from ch-1)
      • tell cps-core to update ch-2 (anchor) with the same modules (use existng java interface)

      @Override
      public void udpateSchemaSetWithExistingModules(final String dataspaceName, final String schemaSetName,
      final Collection<ModuleReference> allModuleReferences)

      { cpsValidator.validateNameCharacters(dataspaceName, schemaSetName); cpsModulePersistenceService.storeSchemaSetFromModules(dataspaceName, schemaSetName, Collections.emptyMap(), allModuleReferences); }

            sourabh_sourabh Sourabh Sourabh
            sourabh_sourabh Sourabh Sourabh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: