Hi Marco, Taka,
I am facing an issue while doing LCM Stop operation. In karaf.log it says VM 
URL is invalid (please see the log snippet below). I noticed that in my request 
additional escape chars are being added when vm url is extracted from payload.

*Below is my payload
* lcm_stop_payload.json
{
"version": "2.00",
"rpc-name": "stop",
"correlation-id": "c09ac7d1-de62-0016-2000-e63701125557-201",
"type": "request",
"body": {
"input": {
"common-header": {
"timestamp": "2019-11-20T3:44:51.36Z",
"api-ver": "2.00",
"originator-id": "849e6c6b420",
"request-id": "OpenSTACK",
"sub-request-id": "stop10",
"flags": {
"force": "TRUE",
"ttl": 60000
}
},
"action": "Stop",
"action-identifiers": {
"vnf-id": "dc4ccb80-adf1-4557-872b-4e4b3e1b5c3c",
"vserver-id": "775348eb-78c5-4150-87c7-95852e12ba45"
},
"payload": 
"{\"vm-id\":\"http://192.168.37.15:8774/v2.1/3d412a0caed04122a94f4cbff2258405/servers/775348eb-78c5-4150-87c7-95852e12ba45\";,
 \"identity-url\": 
\"http://192.168.37.15:5000/v3\",\"skip-hypervisor-check\":\"true\"}";
}
}
}

*I am making below rest call
* curl -v -H 'Content-type: application/json' -X POST 
http://localhost:30227/events/APPC-LCM-READ -d @lcm_stop_payload.json

*Below is the error string from karaf.log*

2019-11-20T09:57:28,134 | ERROR | appc-dispatcher-3 | ProviderOperation         
       | 475 - appc-iaas-adapter - 1.5.2 | APPC0041E APPC IAAS Adapter cannot 
perform requested service, VM url 
[http:\/\/192.168.37.15:8774\/v2.1\/3d412a0caed04122a94f4cbff2258405\/servers\/fa452444-9a63-48ed-92b8-4a3088f9a4ad]
 is invalid

I checked appc code and I think this is happening due to the escape chars which 
is being added when vm url is being extracted from the payload due to which 
validateVM in stopServer() might be returning false. I don't see this happening 
in logs of others who have replied. I am using Dublin release.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#19531): https://lists.onap.org/g/onap-discuss/message/19531
Mute This Topic: https://lists.onap.org/mt/31641303/21656
Mute #appc: https://lists.onap.org/mk?hashtag=appc&subid=2740164
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to