Hi Team,

I have just started using ONAP environment and CDS (Frankfurt release) and I 
recently encounter an issue with ComponentRemoteAnsibleExecutor. The issue is 
that the CDS gives a 200 OK response when there is a failure on the awx 
playbook (inside "payload" section of CDS response, it has ' 
"ansible-command-status": "failed"  ' as I defined in CBA, but status code is 
200,' I have attached the CDS response below). I was expecting status code to 
be 500 in this case.

Is there a way I can resolve this without directly modify 
ComponentRemoteAnsibleExecutor codes?

Below is the CDS response I am getting:

"status": {
"code": 200,
"eventType": "EVENT_COMPONENT_EXECUTED",
"timestamp": "2020-11-16T23:10:15.261Z",
"errorMessage": null,
"message": "success"
},
"payload": {
"config-deploy-response": {
"ansible-command-status": "failed",
"ansible-command-logs": "playbook results...."
}
}

I will appreciate if anyone could provide me with some suggestion

Thanks

Allen


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22471): https://lists.onap.org/g/onap-discuss/message/22471
Mute This Topic: https://lists.onap.org/mt/78320150/21656
Mute #cds:https://lists.onap.org/g/onap-discuss/mutehashtag/cds
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to