---
- name: import tasks from l3_agent_connectivity_check_start_script
  import_tasks: ../common/l3_agent_connectivity_check_start_script.yml

- name: run minor update converge step
  shell: |
        set -o pipefail
        bash {{ overcloud_update_converge_script }} 2>&1 {{ timestamper_cmd }} > \
          {{ working_dir }}/overcloud_update_converge.log
  register: overcloud_converge_update
  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_composable_failed_update_converge.log

    - name: was the overcloud update converge successful.
      fail: msg="Overcloud update converge step failed... :("
  when: overcloud_converge_update.rc != 0

- name: import tasks from l3_agent_connectivity_check_stop_script
  import_tasks: ../common/l3_agent_connectivity_check_stop_script.yml
