The so orchestrationRequests API fails to return responseBody

Description

The API http://so:8080/onap/so/infra/orchestrationRequests/v5/?filter=requestId:EQUALS:23df1f60-07f4-4f55-98f4-76a3e62a8038 fails to return the responseBody populated by http://so-request-db-adapter:8083/services/RequestsDbAdapter

This feature worked in Casablanca.

The following API is used to publish json payload to a responseBody.

curl --location --request POST 'http://so-request-db-adapter:8083/services/RequestsDbAdapter' \ > --header 'Content-Type: application/soap+xml' \ > --header 'X-From-App-Id: vCE-model/1.0.0' \ > --header 'Authorization: Basic YnBlbDpwYXNzd29yZDEk' \ > --data-raw '<soapenv:Envelope > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:ns="http://org.onap.so/requestsdb"> > <soapenv:Header/> > <soapenv:Body> > <ns:updateInfraRequest xmlns:ns="http://org.onap.so/requestsdb"> > <requestId>23df1f60-07f4-4f55-98f4-76a3e62a8038</requestId> > <lastModifiedBy>vCE-model/1.0.0</lastModifiedBy> > <statusMessage>Joey Test 1</statusMessage> > <requestStatus>FAILED</requestStatus> > <progress>75</progress> > <responseBody>{"error-reports": [{"source": "basic_config", "report": "test 1"}]} > </responseBody> > </ns:updateInfraRequest> > </soapenv:Body> > </soapenv:Envelope> > > > '

The following API is used to fetch the responseBody, but fails to include it.

curl -X GET 'http://so:8080/onap/so/infra/orchestrationRequests/v5/?filter=requestId:EQUALS:23df1f60-07f4-4f55-98f4-76a3e62a8038' -H 'Accept: application/json' -H 'Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==' { "requestList": [ { "request": { ... "requestStatus": { "percentProgress": 75, "requestState": "FAILED", "statusMessage": "STATUS: Error Source: UNKNOWN, Error Message: Joey Test 1 FLOW STATUS: ActivateVnfBB has failed. TASK INFORMATION: Task name is null.", "timestamp": "Fri, 25 Sep 2020 14:16:55 GMT" }, "requestType": "createInstance", "startTime": "Thu, 24 Sep 2020 13:09:31 GMT" } } ] }

This show the response body was persisted.

select STATUS_MESSAGE, RESPONSE_BODY from infra_active_requests WHERE REQUEST_ID='23df1f60-07f4-4f55-98f4-76a3e62a8038'\G *************************** 1. row *************************** STATUS_MESSAGE: Joey Test 1 RESPONSE_BODY: {"error-reports": [{"source": "basic_config", "report": "test 1"}]} 1 row in set (0.00 sec) MariaDB [requestdb]>

The following logs show the orchestrationRequests API collects the responseBody when building the response but it just does not return it.

fb723ed|o.o.l.filter.spring.SpringClientPayloadFilter - ===========================request begin================================================ 2020-09-25T15:49:03.786Z|e82a7648-ac2b-4548-b027-c1868fb723ed|o.o.l.filter.spring.SpringClientPayloadFilter - URI : http://so-request-db-adapter.frank:8083/infraActiveRequests/getOrchestrationFiltersFromInfraActive/ 2020-09-25T15:49:03.786Z|e82a7648-ac2b-4548-b027-c1868fb723ed|o.o.l.filter.spring.SpringClientPayloadFilter - Method : POST 2020-09-25T15:49:03.787Z|e82a7648-ac2b-4548-b027-c1868fb723ed|o.o.l.filter.spring.SpringClientPayloadFilter - Headers : [Accept:"application/json", Authorization:"Basic YnBlbDpwYXNzd29yZDEk", Content-Type:"application/json", Content-Length:"63", X-ONAP-RequestID:"e82a7648-ac2b-4548-b027-c1868fb723ed", X-RequestID:"e82a7648-ac2b-4548-b027-c1868fb723ed", X-TransactionID:"e82a7648-ac2b-4548-b027-c1868fb723ed", X-ECOMP-RequestID:"e82a7648-ac2b-4548-b027-c1868fb723ed", X-ONAP-PartnerName:"SO.APIH", X-InvocationID:"73a01c76-e7a1-4736-9765-41ac31732048"] 2020-09-25T15:49:03.787Z|e82a7648-ac2b-4548-b027-c1868fb723ed|o.o.l.filter.spring.SpringClientPayloadFilter - Request body: {"requestId":["EQUALS","23df1f60-07f4-4f55-98f4-76a3e62a8038"]} 2020-09-25T15:49:03.788Z|e82a7648-ac2b-4548-b027-c1868fb723ed|o.o.l.filter.spring.SpringClientPayloadFilter - ==========================request end================================================ 2020-09-25T15:49:03.835Z|e82a7648-ac2b-4548-b027-c1868fb723ed|o.o.l.filter.spring.SpringClientPayloadFilter - ============================response begin========================================== 2020-09-25T15:49:03.836Z|e82a7648-ac2b-4548-b027-c1868fb723ed|o.o.l.filter.spring.SpringClientPayloadFilter - Status code : 200 OK 2020-09-25T15:49:03.837Z|e82a7648-ac2b-4548-b027-c1868fb723ed|o.o.l.filter.spring.SpringClientPayloadFilter - Status text : 2020-09-25T15:49:03.837Z|e82a7648-ac2b-4548-b027-c1868fb723ed|o.o.l.filter.spring.SpringClientPayloadFilter - Headers : [X-Content-Type-Options:"nosniff", X-XSS-Protection:"1; mode=block", Cache-Control:"no-cache, no-store, max-age=0, must-revalidate", Pragma:"no-cache", Expires:"0", X-Frame-Options:"DENY", Content-Type:"application/json;charset=UTF-8", Transfer-Encoding:"chunked", Date:"Fri, 25 Sep 2020 15:49:03 GMT"] 2020-09-25T15:49:03.839Z|e82a7648-ac2b-4548-b027-c1868fb723ed|o.o.l.filter.spring.SpringClientPayloadFilter - Response body: [{"requestId":"23df1f60-07f4-4f55-98f4-76a3e62a8038","requestStatus":"FAILED","statusMessage":"Joey Test 1","flowStatus":"ActivateVnfBB has failed.","progress":75,... "responseBody":"{\"error-reports\": [{\"source\": \"basic_config\", \"report\": \"test 1\"}]}\n ... 2020-09-25T15:49:03.839Z|e82a7648-ac2b-4548-b027-c1868fb723ed|o.o.l.filter.spring.SpringClientPayloadFilter - =======================response end================================================= 2020-09-25T15:49:03.863Z|e82a7648-ac2b-4548-b027-c1868fb72

Environment

None

Activity

Show:

Former user September 29, 2020 at 5:51 PM
Edited

After some further investigation it was determine that this was a downstream change and this feature has been removed since casablanca.

Done

Details

Assignee

Reporter

Affects versions

Priority

Created September 28, 2020 at 4:09 PM
Updated September 29, 2020 at 5:53 PM
Resolved September 29, 2020 at 5:51 PM

Flag notifications