debug: Run 'openstack stack failures list' upon overcloud failures

The new 'openstack stack failures list' will help us to track down what
went wrong in overcloud deployment, update or delete.

Change-Id: Ie536334990ad933776b53b73b5439315c15b0637
This commit is contained in:
Brad P. Crochet 2016-09-13 09:00:05 -04:00
parent ea4e081d57
commit 9c7bea637d
1 changed files with 1 additions and 1 deletions

View File

@ -41,5 +41,5 @@ if [ -e ~/stackrc ] ; then
# taking an excessive amount of time
openstack stack event list --nested-depth 2 -f json overcloud | $TRIPLEO_ROOT/tripleo-ci/scripts/heat-deploy-times.py | tee /var/log/heat-deploy-times.log || echo 'Failed to process resource deployment times. This is expected for stable/liberty.'
# useful to see what failed when puppet fails
for failed_deployment in $(heat resource-list --nested-depth 5 overcloud | grep FAILED | grep 'StructuredDeployment ' | cut -d '|' -f3); do heat deployment-show $failed_deployment; done;
openstack stack failures list --long overcloud || :
fi