-
Bug
-
Resolution: Done
-
Highest
-
Dublin Release
-
Integration-SB-00
When testing vCPE rescust service instantiation, SO workflow fails when updating Generic VNF orchestration status in AAI. AAI logs seems to show the update was successful, but SO workflow throws exception of "Response Code null".
2019-05-25T03:29:31.928Z|| o.o.so.logging.jaxrs.filter.PayloadLoggingFilter - Making POST (overridden to PATCH) request to: https://aai.onap:8443/aai/v15/network/generic-vnfs/generic-vnf/56142a0d-65ec-4568-bae6-d24a35d23427 Request Headers: {Authorization=[Basic YWFpQGFhaS5vbmFwLm9yZzpkZW1vMTIzNDU2IQ==], X-FromAppId=[MSO], X-TransactionId=[], X-HTTP-Method-Override=[PATCH], Accept=[application/json], Content-Type=[application/merge-patch+json], X-ONAP-RequestID=[1492ec50-cbbd-4038-ba44-82e3ca1dbba0], X-ONAP-InvocationID=[582e79ad-24b9-438f-ad16-56007e705977], X-ONAP-PartnerName=[SO]} 2019-05-25T03:29:31.930Z|| o.o.so.logging.jaxrs.filter.PayloadLoggingFilter - {"vnf-id":"56142a0d-65ec-4568-bae6-d24a35d23427","orchestration-status":"Active"} 2019-05-25T03:29:32.898Z|| o.onap.so.bpmn.common.scripts.UpdateAAIGenericVnf - Error occurred attempting to update Generic VNF in AAI, Response Code null 2019-05-25T03:29:32.899Z|| o.onap.so.bpmn.common.scripts.UpdateAAIGenericVnf - Workflow Exception occurred when Updating GenericVnf:
On AAI resource translog.log shows the request and response in the 2nd query of the following:
2019-05-25T03:29:29.180+0000|2019-05-25T03:29:29.561+0000|7921292e-aaad-4480-a541-a5d17b6093b4||qtp1219402581-35958||PATCH /aai/v16/network/generic-vnfs/generic-vnf/56142a0d-65ec-4568-bae6-d24a35d23427?resource-version=1558754948666|openECOMP|COMPLETE||||DEBUG||10.42.9.6|381|aai-resources||org.onap.aai.interceptors.post.ResponseTransactionLogging|||||||co=openECOMP:{"transactionId":"7921292e-aaad-4480-a541-a5d17b6093b4","status":"200","rqstDate":"190525-03:29:29:180","respDate":"190525-03:29:29:559","sourceId":"openECOMP:7921292e-aaad-4480-a541-a5d17b6093b4","resourceId":"https://aai.onap:8443/aai/v16/network/generic-vnfs/generic-vnf/56142a0d-65ec-4568-bae6-d24a35d23427?resource-version=1558754948666","resourceType":"PATCH","rq://jira.onap.org/browse/SO-1927tBuf":"{\"ID\":\"2-aai-resources-190525-03:29:29:180-65232\",\"Http-Method\":\"PATCH\",\"Content-Type\":\"application/merge-patch+json\",\"Headers\":\"{X-AAI-SSL-Client-C=[], X-AAI-SSL=[1], X-AAI-SSL-Issuer=[], User-Agent=[Java/1.8.0_212], X-AAI-SSL-Client-ST=[], X-AAI-SSL-Client-OU=[], Authorization=[Basic c2RuY0BzZG5jLm9uYXAub3JnOmRlbW8xMjM0NTYh], X-AAI-SSL-Client-CN=[], Content-Length=[60], Content-Type=[application/merge-patch+json], X-AAI-SSL-Client-NotBefore=[], X-FromAppId=[openECOMP], Accept=[application/json], X-AAI-SSL-Client-Verify=[0], Connection=[close], X-Forwarded-Proto=[https, https], Host=[aai.onap:8443], Pragma=[no-cache], X-Forwarded-Port=[51174], X-AAI-SSL-Client-DN=[], Cache-Control=[no-cache], X-AAI-SSL-Client-NotAfter=[], X-Forwarded-For=[10.42.10.31], X-TransactionId=[robot12], X-AAI-SSL-ClientCert-Base64=[], X-AAI-SSL-Client-O=[], X-AAI-SSL-Client-L=[]}\",\"Payload\":\"{\\\"resource-version\\\":\\\"1558754948666\\\",\\\"prov-status\\\":\\\"NVTPROV\\\"}\"}","respBuf":"{\"ID\":\"2-aai-resources-190525-03:29:29:180-65232\",\"Content-Type\":null,\"Response-Code\":200,\"Headers\":\"{vertex-id=[360632], Content-Type=[application/json], X-AAI-TXID=[2-aai-resources-190525-03:29:29:180-65232]}\",\"Entity\":\"\"}"} 2019-05-25T03:29:32.356+0000|2019-05-25T03:29:33.265+0000|ae8ec811-a8af-4084-bb7e-2791f6af66f2||qtp1219402581-35958||POST /aai/v15/network/generic-vnfs/generic-vnf/56142a0d-65ec-4568-bae6-d24a35d23427|MSO|COMPLETE||||DEBUG||10.42.9.6|909|aai-resources||org.onap.aai.interceptors.post.ResponseTransactionLogging|||||||co=MSO:{"transactionId":"ae8ec811-a8af-4084-bb7e-2791f6af66f2","status":"200","rqstDate":"190525-03:29:32:355","respDate":"190525-03:29:33:265","sourceId":"MSO:ae8ec811-a8af-4084-bb7e-2791f6af66f2","resourceId":"https://aai.onap:8443/aai/v15/network/generic-vnfs/generic-vnf/56142a0d-65ec-4568-bae6-d24a35d23427","resourceType":"PATCH","rqstBuf":"{\"ID\":\"0-aai-resources-190525-03:29:32:355-68938\",\"Http-Method\":\"POST\",\"Content-Type\":\"application/merge-patch+json\",\"Headers\":\"{X-AAI-SSL-Client-C=[], X-AAI-SSL=[1], X-AAI-SSL-Issuer=[], User-Agent=[Apache-CXF/3.2.6], X-AAI-SSL-Client-ST=[], X-AAI-SSL-Client-OU=[], Authorization=[Basic YWFpQGFhaS5vbmFwLm9yZzpkZW1vMTIzNDU2IQ==], X-AAI-SSL-Client-CN=[], Content-Length=[81], Content-Type=[application/merge-patch+json], X-AAI-SSL-Client-NotBefore=[], X-FromAppId=[MSO], Accept=[application/json], X-ONAP-InvocationID=[582e79ad-24b9-438f-ad16-56007e705977], X-AAI-SSL-Client-Verify=[0], X-Forwarded-Proto=[https, https], Connection=[close], Host=[aai.onap:8443], Pragma=[no-cache], X-Forwarded-Port=[58694], X-AAI-SSL-Client-DN=[], X-ONAP-PartnerName=[SO], X-HTTP-Method-Override=[PATCH], Cache-Control=[no-cache], X-AAI-SSL-Client-NotAfter=[], X-Forwarded-For=[10.42.10.45], X-TransactionId=[], X-AAI-SSL-ClientCert-Base64=[], X-ONAP-RequestID=[1492ec50-cbbd-4038-ba44-82e3ca1dbba0], X-AAI-SSL-Client-O=[], X-AAI-SSL-Client-L=[]}\",\"Payload\":\"{\\\"vnf-id\\\":\\\"56142a0d-65ec-4568-bae6-d24a35d23427\\\",\\\"orchestration-status\\\":\\\"Active\\\"}\"}","respBuf":"{\"ID\":\"0-aai-resources-190525-03:29:32:355-68938\",\"Content-Type\":null,\"Response-Code\":200,\"Headers\":\"{vertex-id=[360632], Content-Type=[application/json], X-AAI-TXID=[0-aai-resources-190525-03:29:32:355-68938]}\",\"Entity\":\"\"}"}
It seems to me the HTTP method should be PATCH rather than POST as shown in AAI log.