Re: #appc Unable to execute stop lcm operation from APPC #appc


Marco Platania
 

Latish,

 

The payload has to have this format:

 

"payload": "{\"vm-id\":\"{{vm-id}}\"}"

 

See example below (it is for modify config but you can customize it):

 

"payload": "{\"request-parameters\":{\"vnf-host-ip-address\":\"10.0.60.2\"}, \"configuration-parameters\": {\"active-streams\":\"7\"}}"

 

Also, for OpenStack action you can either use the VM ID or the selflink to the vServer in AAI.

 

Marco

 

From: <onap-discuss@...> on behalf of BRIAN FREEMAN <bf1936@...>
Reply-To: "onap-discuss@..." <onap-discuss@...>, BRIAN FREEMAN <bf1936@...>
Date: Thursday, April 25, 2019 at 9:00 AM
To: "onap-discuss@..." <onap-discuss@...>, "sirisha.gopigiri@..." <sirisha.gopigiri@...>, Lathish <lathishbabu.ganesan@...>
Subject: Re: [onap-discuss] #appc Unable to execute stop lcm operation from APPC

 

***Security Advisory: This Message Originated Outside of AT&T ***
Reference http://cso.att.com/EmailSecurity/IDSP.html for more information.


Isnt payload a json encoded string ?

 

 

https://gerrit.onap.org/r/gitweb?p=ccsdk/sli/northbound.git;a=blob;f=lcm/model/src/main/yang/lcm.yang;h=a03fff60754adaa8feff2ab182d96373baf7f541;hb=refs/heads/casablanca

 

  78     typedef payload {

  79            type string ;

  80            description "The payload can be any valid JSON string value. Json escape characters need to be added when required to include an inner json within the payload to make it a valid json string value";

  81     }

  82

 

From: onap-discuss@... <onap-discuss@...> On Behalf Of Gopigiri, Sirisha via Lists.Onap.Org
Sent: Thursday, April 25, 2019 5:09 AM
To: Lathish <lathishbabu.ganesan@...>; onap-discuss@...
Subject: Re: [onap-discuss] #appc Unable to execute stop lcm operation from APPC

 

Hi Brian,

Except Ansible Server pod all the other pods are running. I am able to execute the mysql commands in the DB pod. I redeployed appc still facing the same issue.And the sequence of the pods are appc-db, appc and then ansible pod.  Not sure what failed.

Hi Lathish,

There are no entries in VNF_DG_MAPPING table, I have inserted manually. And now I could see the same Invalid URL error in both of my setups which has underlying VIM as https and http.

Hi Steve,

I am trying to execute restart LCM operation and it is supported by both VNF/VM. And according to the doc there should be vm-id sent in payload. But when I send the vm-id in the payload I could see that request is not being accepted with schema error and 400 error response code.

Here is the request payload I am using for restart appc

{
  "input": {
    "common-header": {
      "timestamp": "2019-04-25T06:05:04.244Z",
      "api-ver": "2.00",
      "originator-id": "664be3d2-6c12-4f4b-a3e7-c349acced200",
      "request-id": "664be3d2-6c12-4f4b-a3e7-c349acced200",
      "sub-request-id": "1",
      "flags": {
          "force" : "TRUE",
          "ttl" : 60000
      }
    },
    "action": "Restart",
    "action-identifiers": {
      "vnf-id":"d86f68e7-9cb2-48cc-b82d-ffd54602b91b"
    },
    "payload":{
       "vm-id":"http://x.x.x.x:yyyy/v2.1/servers/88b65041-81d6-41bc-b6ff-3785e461541e"
    }
  }
}

And here is the error message I see when I send payload field in request.

{
 "errors": {
   "error": [
     {
       "error-type": "protocol",
       "error-tag": "malformed-message",
       "error-message": "Error parsing input: Schema node with name vm-id was not found under (org:onap:appc:lcm?revision=2016-01-08)payload.",
       "error-info": "Schema node with name vm-id was not found under (org:onap:appc:lcm?revision=2016-01-08)payload."
     }
   ]
 }
}

Without payload field in the request payload I get Invalid URL error in APPC logs.

Am I missing anything in the request payload that is sent to APPC?

Thank you in advance!

Regards
Sirisha Gopigiri

Join onap-discuss@lists.onap.org to automatically receive all group messages.