Can't get output of SoftwareDeployment resource when using HEAT_SIGNAL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Heat Templates |
Fix Committed
|
Undecided
|
Yanyan Hu |
Bug Description
When using HEAT_SIGNAL option, the output of SoftwareDeployment resource can't be returned correctly. All output attributes such as 'deploy_stdout, deploy_stderr, deploy_status_code' will be null.
In 55-heat-confg.py, the output of hooks(signal_data) will be dumped to JSON object before passed to heat client. However, heat client will dump it again before invoking _http_request.
For example, if the original output is:
{'deploy_
The first JSON dump result will be:
{"deploy_
The second JSON dump result will be:
"{\"deploy_
This is not a valid input for requests.request() for 'data' parameter. Therefore, the 'body' will be empty when heat-api accept the request and all output of SoftwareDeployment resource will be lost.
Changed in heat-templates: | |
assignee: | nobody → Yanyan Hu (yanyanhu) |
status: | New → In Progress |
An in-progress fix is here: /review. openstack. org/113473/
https:/