The debug flag should print request and response
The requests and response (include body) and the authentication should be printed when a use use the debug flag ( like any other openstack service )
for example :
mistral execution-list --limit 5
DEBUG (session) REQ: curl -g -i -X GET http://
INFO (connectionpool) Starting new HTTP connection (1): 10.1.20.5
DEBUG (connectionpool) "GET /v2.0 HTTP/1.1" 200 336
DEBUG (session) RESP: [200] date: Tue, 17 Nov 2015 12:42:44 GMT vary: X-Auth-Token content-length: 336 content-type: application/json x-openstack-
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-
DEBUG (v2) Making authentication request to http://
DEBUG (connectionpool) "POST /v2.0/tokens HTTP/1.1" 200 4626
DEBUG (httpclient) HTTP GET http://
DEBUG (session) RESP: [200] date: Tue, 17 Nov 2015 12:42:44 GMT content-length: 14 content-type: application/json; charset=UTF-8 x-openstack-
RESP BODY:
{
"next": "http://
"executions": [
{
"state_info": "Failure caused by error in task 'delete_vm': Failed to run action [action_
"created_at": "2015-11-17 12:31:36",
"
"
"updated_at": "2015-11-17 12:31:58",
"state": "ERROR",
"params": "{}",
"output": "{}",
"input": "{\"instance_id\": \"123\"}",
"id": "37498d6c-
}
]
}
Blueprint information
- Status:
- Complete
- Approver:
- Renat Akhmerov
- Priority:
- Medium
- Drafter:
- Limor Stotland
- Direction:
- Approved
- Assignee:
- Sharat Sharma
- Definition:
- Superseded
- Series goal:
- Accepted for ocata
- Implementation:
- Not started
- Milestone target:
- None
- Started by
- Completed by
- Renat Akhmerov