tripleo-upgrade/tasks/update/overcloud_update_prepare.yml
Yurii Prokulevych 1d03dfbd80 Address ansible-lint issues
Co-Authored-By: Sergii Golovatiuk <sgolovat@redhat.com>

Change-Id: I9367af823058ef5f4edd5e671cdbb971f0451422
2018-12-20 14:55:38 +01:00

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