1d03dfbd80
Co-Authored-By: Sergii Golovatiuk <sgolovat@redhat.com> Change-Id: I9367af823058ef5f4edd5e671cdbb971f0451422
29 lines
1.0 KiB
YAML
29 lines
1.0 KiB
YAML
---
|
|
- name: setup HEAT outputs via update prepare
|
|
shell: |
|
|
set -o pipefail
|
|
source {{ undercloud_rc }}
|
|
bash {{ overcloud_update_prepare_script }} 2>&1 {{ timestamper_cmd }} > \
|
|
{{ working_dir }}/overcloud_update_prepare.log
|
|
register: overcloud_update_prepare
|
|
ignore_errors: true
|
|
|
|
- block:
|
|
- name: print stack failures
|
|
shell: |
|
|
set -o pipefail
|
|
source {{ undercloud_rc }}
|
|
openstack stack failures list --long {{ overcloud_stack_name }} {{ timestamper_cmd }} | \
|
|
tee {{ working_dir }}/overcloud_failed_update_prepare.log
|
|
|
|
- name: print resource list
|
|
shell: |
|
|
set -o pipefail
|
|
source {{ undercloud_rc }}
|
|
openstack stack resource list --filter status=FAILED --nested-depth 5 {{ overcloud_stack_name }} {{ timestamper_cmd }} | \
|
|
tee {{ working_dir }}/overcloud_failed_prepare_resources.log
|
|
|
|
- name: was the overcloud update prepare successful.
|
|
fail: msg="Overcloud minor update preparation step failed..."
|
|
when: overcloud_update_prepare.rc != 0
|