Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-1180

Node API - POST method not works for instance-identifier

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not Done
    • Icon: Medium Medium
    • Kohn Release
    • Kohn Release
    • None
    • None

      Not able to store yang data that contains data of type instance-identifier (https://www.rfc-editor.org/rfc/rfc6020.html#page-133) using Node API.

      Error message:

      {"status":"500 INTERNAL_SERVER_ERROR","message":"Failed to lookup prefix ","details":"Check logs for details."}

      Attached the Error log.

      API Used:

      $ curl -k -H "Content-Type: application/json" -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST http://localhost:8883/cps/api/v1/dataspaces?dataspace-name='E2EDEMO'

      $ curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDEMO/schema-sets' --form 'file=@"ran-network1.zip"' --form 'schema-set-name="ran-network"'

      $ curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDEMO/anchors?schema-set-name='ran-network'&anchor-name='11''

      $ curl -H "Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=" --request POST 'http://localhost:8883/cps/api/v1/dataspaces/E2EDEMO/anchors/11/nodes' --header 'Content-Type: application/json' -d @ran-network-initial-data.json -i

      HTTP/1.1 500 Server Error
      Date: Tue, 09 Aug 2022 10:26:49 GMT
      Set-Cookie: JSESSIONID=node0hhah9t0mh65fxr9xpigcwcqt11.node0; Path=/
      Expires: Thu, 01 Jan 1970 00:00:00 GMT
      Content-Type: application/json
      X-Content-Type-Options: nosniff
      X-XSS-Protection: 1; mode=block
      X-Frame-Options: DENY
      Transfer-Encoding: chunked

      {"status":"500 INTERNAL_SERVER_ERROR","message":"Could not parse Instance Identifier '/ran-network:nearrtric/nearrtric/gnbdufunction:gnbdu/nrcelldu[idnrcelldu='15289']'. Offset: 22 : Reason: (org:onap:ccsdk:features:sdnr:northbound:ran-network?revision=2020-08-06)nearrtric is not correct schema node identifier.","details":"Check logs for details."}

        1. log.txt
          19 kB
        2. log1.txt
          18 kB
        3. ran-network1.zip
          24 kB
        4. ran-network-initial-data.json
          29 kB

            lukegleeson lukegleeson
            ahilap ahilap
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: