d65c814286
Currently, the jobs only collect log at the end of the update. Add some log collection during the update to the /var/log/extra directory of each host to get information before the update and during the update to ease debugging. Change-Id: I2c4b59b2ab8f8b0d64c9982b528d927d3f6f2436
30 lines
790 B
YAML
30 lines
790 B
YAML
---
|
|
- name: Ensure we skip Rhel Enforcement
|
|
include_tasks: ../common/skip_rhel_enforcement.yaml
|
|
when: not ( enforce_rhel|bool )
|
|
|
|
- name: create undercloud update script
|
|
template:
|
|
src: undercloud_upgrade.sh.j2
|
|
dest: "{{ undercloud_update_script }}"
|
|
mode: 0775
|
|
force: true
|
|
|
|
- name: create update workaround scripts for undercloud
|
|
template:
|
|
src: workarounds.sh.j2
|
|
dest: "{{ working_dir }}/{{ item }}.sh"
|
|
mode: 0775
|
|
force: true
|
|
loop:
|
|
- 'pre_undercloud_update_workarounds'
|
|
- 'post_undercloud_update_workarounds'
|
|
when: updates_workarounds|bool
|
|
|
|
- name: collect log for the current stage - batch
|
|
include_tasks: ../common/create_log_collection_scripts.yml
|
|
vars:
|
|
log_current_stage: 'before_undercloud_update'
|
|
when:
|
|
- log_stages|bool
|