overcloud deploy --config-download returns 0 even when Ansible fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Critical
|
James Slagle |
Bug Description
Failed Ansible tasks during openstack overcloud deploy with --config-download option don't result in the deploy command failure. The command still says "Overcloud configuration completed" and returns 0. E.g. this example from CI:
2017-11-27 16:58:14 | TASK [clone kubespray repo] *******
2017-11-27 16:58:20 | fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msgHost 192.168.24.11 not found in /home/zuul/
2017-11-27 16:58:20 | END return value: 0
2017-11-27 16:58:20 | ": "Failed to find required executable git in paths: :/sbin:
2017-11-27 16:58:20 |
2017-11-27 16:58:20 | NO MORE HOSTS LEFT *******
2017-11-27 16:58:20 |
2017-11-27 16:58:20 | PLAY RECAP *******
2017-11-27 16:58:20 | 192.168.24.3 : ok=83 changed=33 unreachable=0 failed=0
2017-11-27 16:58:20 | localhost : ok=4 changed=0 unreachable=0 failed=1
2017-11-27 16:58:20 |
2017-11-27 16:58:20 |
2017-11-27 16:58:20 |
2017-11-27 16:58:20 | Overcloud configuration completed.
2017-11-27 16:58:20 | Overcloud Endpoint: http://
2017-11-27 16:58:20 | Overcloud Deployed
2017-11-27 16:58:20 | + status_code=0
2017-11-27 16:58:20 | + openstack stack list
2017-11-27 16:58:20 | + grep -q overcloud
2017-11-27 16:58:25 | + grep -Eq '(CREATE|
2017-11-27 16:58:25 | + openstack stack list
2017-11-27 16:58:29 | + exit 0
Changed in tripleo: | |
status: | Fix Committed → Fix Released |
this should be fixed by: https:/ /review. openstack. org/#/c/ 523237/
i had already fixed this prior to this bug being filed.