You are using the generic execute-graph, can you try using restconf/operations/appc-provider-lcm:stop API from swagger?
Taka, Can you please chime in if you see something wrong? From: Vikas Kumar <[email protected]> Date: Thursday, November 21, 2019 at 12:34 AM To: "PLATANIA, MARCO (MARCO)" <[email protected]>, "[email protected]" <[email protected]> Subject: Re: [onap-discuss] APPC -> RE: [onap-discuss] #appc Unable to execute stop lcm operation from APPC Thanks for the replay Marco, The URL does exist as I am able to do the stop operation with the same URL using APPC swagger and it works. The escape chars which I mentioned are not the one in the payload (which I understand that they are for double quotes) but the one which are being added when VM URL is extracted from the payload and I can see them in karaf.log. Below is the snippet from karaf.log where I can see an escape char being added in front of every forward slash in VM url which I highlighted in green(although payload looks good in logs). 2019-11-20T09:57:28,144 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = payload -- {"vm-id":"http://192.168.37.15:8774/v2.1/3d412a0caed04122a94f4cbff2258405/servers/fa452444-9a63-48ed-92b8-4a3088f9a4ad<https://urldefense.proofpoint.com/v2/url?u=http-3A__192.168.37.15-3A8774_v2.1_3d412a0caed04122a94f4cbff2258405_servers_fa452444-2D9a63-2D48ed-2D92b8-2D4a3088f9a4ad&d=DwQFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=X5RdERF0RSjz6P0j22jFTEfDrAwtrt80jMwMVmMY7tE&s=34mnaI5VBST0q8kjARV2eWTjSmJUKqQhtmJziQCXtSU&e=>", "identity-url": "http://192.168.37.15:5000/v3<https://urldefense.proofpoint.com/v2/url?u=http-3A__192.168.37.15-3A5000_v3&d=DwQFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=X5RdERF0RSjz6P0j22jFTEfDrAwtrt80jMwMVmMY7tE&s=RGnks_Gb12sFBxlnHDIP_GYqWsdfsXTLQGe_pYnXOaE&e=>", "tenant-id":"3d412a0caed04122a94f4cbff2258405", "skip-hypervisor-check":"true"} 2019-11-20T09:57:28,144 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = capabilities -- Supported 2019-11-20T09:57:28,145 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = controller-template-id -- 2019-11-20T09:57:28,145 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = CONFIGTYPE -- 2019-11-20T09:57:28,145 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = response-prefix -- tmp.flowControl. 2019-11-20T09:57:28,146 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = configuration-params -- 2019-11-20T09:57:28,146 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = vnf-host-ip-address -- 2019-11-20T09:57:28,146 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = error_code -- 500 2019-11-20T09:57:28,146 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = input.common-header.timestamp -- 2019-11-20T03:44:51.036Z 2019-11-20T09:57:28,146 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = vnf-name -- vFW_SINK_VNF-11 2019-11-20T09:57:28,147 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = tmp.vnfInfo.cloud-region.identity-url -- http://msb-iag.onap:80/api/multicloud-ocata/v0/CloudOwner_regionOne/identity/v2.0<https://urldefense.proofpoint.com/v2/url?u=http-3A__msb-2Diag.onap-3A80_api_multicloud-2Docata_v0_CloudOwner-5FregionOne_identity_v2.0&d=DwQFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=X5RdERF0RSjz6P0j22jFTEfDrAwtrt80jMwMVmMY7tE&s=P-U8RyI3dK9yPGnpvse43u67vTBA_zbG3osN6QQIXCo&e=> 2019-11-20T09:57:28,147 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = template-name -- 2019-11-20T09:57:28,151 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = error-message -- Success 2019-11-20T09:57:28,151 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = input.common-header.sub-request-id -- stop10 2019-11-20T09:57:28,151 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = SvcLogic.status -- success 2019-11-20T09:57:28,152 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = input.common-header.request-id -- OpenSTACK 2019-11-20T09:57:28,152 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = aai-vnf-type -- vFW_service/vFW_SINC 0 2019-11-20T09:57:28,152 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = request-id -- OpenSTACK 2019-11-20T09:57:28,152 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = originator-id -- 849e6c6b420 2019-11-20T09:57:28,153 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = action-identifier -- vserver-id 2019-11-20T09:57:28,155 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = STOP_STATUS -- SUCCESS 2019-11-20T09:57:28,156 | INFO | appc-dispatcher-3 | GraphExecutor | 486 - org.onap.appc.flow.controller - 1.5.2 | NEW KEY = vm-id -- http:%5C/%5C/192.168.37.15:8774%5C/v2.1%5C/3d412a0caed04122a94f4cbff2258405%5C/servers%5C/fa452444-9a63-48ed-92b8-4a3088f9a4ad ... ... ... 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:%5C/%5C/192.168.37.15:8774%5C/v2.1%5C/3d412a0caed04122a94f4cbff2258405%5C/servers%5C/fa452444-9a63-48ed-92b8-4a3088f9a4ad] is invalid When I saw logs posted by others I don't see those escape chars, so I suspect this is the reason it's failing. Below is the screen shot of APPC swagger which works fine. [cid:[email protected]] -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19539): https://lists.onap.org/g/onap-discuss/message/19539 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]] -=-=-=-=-=-=-=-=-=-=-=-
