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

Error querying workload-id after workload create

XMLWordPrintable

      Seen this  a couple times.

      The seqneuce appear to be:

      after creating a vfmodule - which includes the POST to trigger and AAI update

      the query of the workload id fails:

       

      e.g.

      GET http://\MSB_IP:MSB_PORT/api/multicloud/v1/cloud-owner/cloud-region-id/infra_workload/dc9c28d1-c123-4c2d-85fb-cf9484978e50
      {
      "template_type": "HEAT",
      "workload_status_reason": "expected string or buffer",
      "workload_status": "GET_FAILED",
      "workload_id": "dc9c28d1-c123-4c2d-85fb-cf9484978e50"
      }

       

      After the above case, I tried the parameter variations of the query - which worked ok.

      Both

      GET http://\MSB_IP:MSB_PORT/api/multicloud/v1/cloud-owner/cloud-region-id/infra_workload?id=dc9c28d1-c123-4c2d-85fb-cf9484978e50

      and

      GET http://\MSB_IP:MSB_PORT/api/multicloud/v1/cloud-owner/cloud-region-id/infra_workload?name=vlb_vfm_ewm_2

      returned an ok reponse as follows:
      {
      "template_type": "HEAT",
      "workload_status_reason": {
      "stacks": [
      {
      "description": "",
      "parent": null,
      "deletion_time": null,
      "stack_name": "vlb_vfm_ewm_2",
      "stack_user_project_id": "709ba629fe194f8699b12f9d6ffd86a0",
      "stack_status_reason": "Stack CREATE completed successfully",
      "creation_time": "2019-05-03T22:07:54Z",
      "links": [

      { "href": "http://msb-iag.onap:80/api/multicloud-titaniumcloud/v1/CloudOwner/ONAP-POD-01-Rail-06/orchestration/v1/709ba629fe194f8699b12f9d6ffd86a0/stacks/vlb_vfm_ewm_2/dc9c28d1-c123-4c2d-85fb-cf9484978e50", "rel": "self" }

      ],
      "updated_time": "2019-05-03T22:07:54Z",
      "stack_owner": null,
      "stack_status": "CREATE_COMPLETE",
      "id": "dc9c28d1-c123-4c2d-85fb-cf9484978e50",
      "tags": null
      }
      ]
      },
      "workload_status": "GET_COMPLETE",
      "workload_id": ""
      }

       

      Then I went back to the original query, and it worked ok, returning:

      {
      "template_type": "HEAT",
      "workload_status_reason": "succeed",
      "workload_status": "UPDATE_COMPLETE",
      "workload_id": "dc9c28d1-c123-4c2d-85fb-cf9484978e50"
      }

       

            ewmulta ewmulta
            ewmulta ewmulta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: