summaryrefslogtreecommitdiffstats
path: root/lib/ansible
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2017-08-31 13:17:01 -0400
committerTim Rozet <trozet@redhat.com>2017-08-31 13:17:01 -0400
commit5398acb7f2fa497e0666912b97b6e41cf87d3d14 (patch)
tree7a6abb9bf85d25a6c46483afd1ee9e3e6ea8fd8d /lib/ansible
parent1ae72825a39a3b457ebdbeccfeadf3de6ce9018f (diff)
Adds showing overcloud failures
Change-Id: Ic09a9b6d57d2ab05562f64a75f9732f76ac61bb7 Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'lib/ansible')
-rw-r--r--lib/ansible/playbooks/deploy_overcloud.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ansible/playbooks/deploy_overcloud.yml b/lib/ansible/playbooks/deploy_overcloud.yml
index 3313bc87..a16c81f5 100644
--- a/lib/ansible/playbooks/deploy_overcloud.yml
+++ b/lib/ansible/playbooks/deploy_overcloud.yml
@@ -48,8 +48,12 @@
- compute
- name: Configure DNS server for ctlplane network
shell: "{{ stackrc }} && openstack subnet set ctlplane-subnet {{ dns_server_args }}"
- - name: Execute Overcloud Deployment
- shell: "{{ stackrc }} && bash deploy_command"
+ - block:
+ - name: Execute Overcloud Deployment
+ shell: "{{ stackrc }} && bash deploy_command"
+ rescue:
+ - name: Show overcloud failures
+ shell: "{{ stackrc }} && openstack stack failures list overcloud --long"
- name: Show Keystone output
shell: "{{ overcloudrc }} && {{ item }}"
when: debug