43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
---
|
|
- name: import tasks from l3_agent_connectivity_check_start_script
|
|
import_tasks: ../common/l3_agent_connectivity_check_start_script.yml
|
|
|
|
- name: collect log for the current stage - serial
|
|
include_tasks: ../common/trigger_log.yml
|
|
vars:
|
|
log_current_stage: "before_oc_update_run_{{ oc_current_role[0] }}"
|
|
when:
|
|
- not overcloud_batch_update|bool
|
|
- log_stages|bool
|
|
|
|
- name: run overcloud minor update in each of the roles/hostgroups
|
|
async: 25200
|
|
poll: 0
|
|
shell: |
|
|
set -o pipefail
|
|
{{ overcloud_update_run_script_base }}-{{ oc_running_role }}.sh 2>&1 {{ timestamper_cmd }} >> \
|
|
{{ overcloud_update_run_script_base }}-{{ oc_running_role }}.log
|
|
args:
|
|
chdir: "{{ working_dir }}"
|
|
executable: /usr/bin/bash
|
|
loop: "{{ oc_current_role }}"
|
|
loop_control:
|
|
loop_var: "oc_running_role"
|
|
register: overcloud_update_nodes
|
|
ignore_errors: true
|
|
|
|
- name: was the overcloud minor update successful?
|
|
async_status:
|
|
jid: "{{ async_result_item.ansible_job_id }}"
|
|
loop: "{{ overcloud_update_nodes.results }}"
|
|
loop_control:
|
|
loop_var: "async_result_item"
|
|
register: async_poll_results
|
|
until: async_poll_results.finished
|
|
retries: 25200
|
|
|
|
- name: import tasks from l3_agent_connectivity_check_stop_script
|
|
import_tasks: ../common/l3_agent_connectivity_check_stop_script.yml
|
|
vars:
|
|
current_stage_error: "{{ update_loss_threshold }}"
|