Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-1324

Controller Blueprint mS: Enrichment fails for processor-db source

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Dublin Release
    • Dublin Release
    • None
    • None

      Solved issue! Find attached log traces and CBA used to perform the test.

       

      Error Description

      {
      "errorMessage":

      { "message": "Generic failure. Details :

      {failed to get source(processor-db) mapping}

      ",
      "code": 1,
      "debugMessage": "ControllerBluePrint_Error_Message",
      "timestamp": "2019-05-12T18:35:11.846Z"
      }
      }

       

       

       

       

      Abdel and I have been going over the DDs for Dublin for vDNS and we found that in some case we are using primary-db and other processor-db.

       

      Both source capabilities have reference in the code. Is the plan for Dublin to keep them both if yes, then we need to fix the disctionary_schema to include processor-db.

       

      In addition, I believe the capability is missing in the schema as well.

       

      Please see below reference:

       

      https://github.com/onap/ccsdk-cds/blob/41af46c85eafe85b20833c99def94ab530afa01b/ms/controllerblueprints/modules/resource-dict/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/resource/dict/ResourceDictionaryConstants.kt

       

       

      object ResourceDictionaryConstants {
            const val SOURCE_INPUT = "input"
            const val SOURCE_DEFAULT = "default"
            //const val SOURCE_PRIMARY_CONFIG_DATA = "rest"
            const val SOURCE_PROCESSOR_DB = "processor-db"
            const val SOURCE_PRIMARY_CONFIG_DATA = "primary-config-data"
            const val SOURCE_PRIMARY_DB = "primary-db"
            const val SOURCE_PRIMARY_AAI_DATA = "primary-aai-data"

       

      No reference to primary-db for below two links.

       

       

      https://github.com/onap/ccsdk-cds/blob/cf6a08425cc50b871cec9ae386e617388816b27d/ms/controllerblueprints/application/src/main/resources/application.properties

       

       

       
        resourceSourceMappings=
      input=source-input,
      default=source-default,
      processor-db=source-processor-db,
      primary-config-data=source-rest,
      capability=source-capability
         

       

      NOTE: missing aai reference

       

      https://github.com/onap/ccsdk-cds/blob/41af46c85eafe85b20833c99def94ab530afa01b/ms/controllerblueprints/application/src/main/resources/application-dev.properties

       

      resourceSourceMappings=

      input=source-input,

      default=source-default,

      processor-db=source-processor-db,

      primary-config-data=source-rest,

      primary-aai-data=source-rest,

      capability=source-capability

       

       

      https://github.com/onap/ccsdk-cds/blob/cf6a08425cc50b871cec9ae386e617388816b27d/ms/controllerblueprints/modules/service/src/test/resources/application.properties

       

      resourceSourceMappings=

      input=source-input,

      default=source-default,

      processor-db=source-processor-db,

      primary-config-data=source-rest,

      capability=source-capability

       

       

      https://gerrit.onap.org/r/gitweb?p=ccsdk/cds.git;a=blob;f=ms/controllerblueprints/modules/blueprint-core/src/test/resources/dictionary/dictionary_schema.json;h=0e1f84278c5291156507babf3c7e13a4c6bec878;hb=refs/heads/master

       

       

        1. enhanced-cba.zip
          20 kB
        2. LoadCBA_IN_RUNTIME.PNG
          LoadCBA_IN_RUNTIME.PNG
          108 kB
        3. Postman_Load_CBA_IN_RUNTIME.PNG
          Postman_Load_CBA_IN_RUNTIME.PNG
          22 kB
        4. PostmanRequest.PNG
          PostmanRequest.PNG
          38 kB
        5. processor-db.zip
          15 kB
        6. UploadCBA_LOG.PNG
          UploadCBA_LOG.PNG
          21 kB

            ym9479 ym9479
            ym9479 ym9479
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: