Uploaded image for project: 'iotdm'
  1. iotdm
  2. IOTDM-57

Plugin bundle loader conflict of loaded features doesn`t work properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • unspecified
    • General
    • None
    • Operating System: All
      Platform: All

    • 7710
    • Low

      first request
      POST
      path -> http://localhost:8181/restconf/operations/iotdmbundleloader:feature-put/
      body:
      {
      "input": {
      "bundle-loader-instance-name": "BundleLoaderInstanceDefault",
      "feature-name": "NewFeature1",
      "bundles-to-load": [

      { "priority": 10, "iotdm-bundle-jar-location": "file:///home/miroslav/projects/myPlugin/onem2mnewtest/impl/target/onem2mnewtest-impl-0.1.0-SNAPSHOT.jar" }

      ,

      { "priority": 1, "iotdm-bundle-jar-location": "file:///home/miroslav/projects/myPlugin/onem2mnewtest/api/target/onem2mnewtest-api-0.1.0-SNAPSHOT.jar" }

      ]
      }
      }

      second request

      POST
      path -> http://localhost:8181/restconf/operations/iotdmbundleloader:feature-put/
      body:
      {
      "input": {
      "bundle-loader-instance-name": "BundleLoaderInstanceDefault",
      "feature-name": "NewFeature2",
      "bundles-to-load": [

      { "priority": 10, "iotdm-bundle-jar-location": "file:///home/miroslav/projects/myPlugin/onem2mtest/impl/target/onem2mtest-impl-0.1.0-SNAPSHOT.jar" }

      ,

      { "priority": 1, "iotdm-bundle-jar-location": "file:///home/miroslav/projects/myPlugin/onem2mtest/api/target/onem2mtest-api-0.1.0-SNAPSHOT.jar" }

      ]
      }
      }

      third request

      POST
      path -> http://localhost:8181/restconf/operations/iotdmbundleloader:feature-put/
      body:
      {
      "input": {
      "bundle-loader-instance-name": "BundleLoaderInstanceDefault",
      "feature-name": "NewFeature1",
      "bundles-to-load": [

      { "priority": 10, "iotdm-bundle-jar-location": "file:///home/miroslav/projects/myPlugin/onem2mtest/impl/target/onem2mtest-impl-0.1.0-SNAPSHOT.jar" }

      ,

      { "priority": 1, "iotdm-bundle-jar-location": "file:///home/miroslav/projects/myPlugin/onem2mtest/api/target/onem2mtest-api-0.1.0-SNAPSHOT.jar" }

      ]
      }
      }

      after this third request it will give us conflict as it is suppose to becase we are trying to update first request with plugin that already is loaded in newFeature2(second request), but when I check startup config and running config I receive correct answer in startup config with both blugins loaded but running config contains only one of them. Other one is removed out of them.

            tjanciga Tomas Janciga
            miroslav.kovac@pantheon.tech Miroslav Kovac
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: