Adds showing overcloud failures 75/40775/1
authorTim Rozet <trozet@redhat.com>
Thu, 31 Aug 2017 17:17:01 +0000 (13:17 -0400)
committerTim Rozet <trozet@redhat.com>
Thu, 31 Aug 2017 17:17:01 +0000 (13:17 -0400)
Change-Id: Ic09a9b6d57d2ab05562f64a75f9732f76ac61bb7
Signed-off-by: Tim Rozet <trozet@redhat.com>
lib/ansible/playbooks/deploy_overcloud.yml

index 3313bc8..a16c81f 100644 (file)
         - 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