Uploaded image for project: 'Multicloud'
  1. Multicloud
  2. MULTICLOUD-602

Error when registering a cloud after deleting it

XMLWordPrintable

      sequence:

      Deregister cloud from Multicloud

      DELETE \ 'http://$ONAP_MSB_IP:$ONAP_MSB_PORT/api/multicloud-titaniumcloud/v1/<cloudowner>/<region-id>'

      Delete cloud from AAI

      e.g. DELETE https://\AAI1_PUB_IP:AAI1_PUB_PORT/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner/cloud-region-id?resource-version=...

      (may need to delete tenant and contents first)

      Verify cloud is not present in AAI

      GET https://\AAI1_PUB_IP:AAI1_PUB_PORT/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner/cloud-region-id

       

      Now add the cloud back to AAI and register with Multicloud

      POST http://\MSB_IP:MSB_PORT/api/multicloud-titaniumcloud/v1/cloud-owner/cloud-region-id/registry

       

      Watching the logs of multicloud :

      2019-05-03 18:36:08|||||common.utils.restcall||140622091098896||_call_req||DEBUG||with response content = {"requestError":{"serviceException":

      {"messageId":"SVC3000","text":"Invalid input performing %1 on %2 (msg=%3) (ec=%4)","variables":["PUT","cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-06","Precondition Failed:resource-version MISMATCH for update of /cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-06","ERR.5.4.6131"]}

      }}||||requestID= invocationID= serviceName= serviceIP=

       

      It appears to 'remember' an older version of the cloud information and uses the wrong 'resource-version' number when trying to do a PUT

            biny993 biny993
            ewmulta ewmulta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: