---
- name: start l3 agent connectivity check
  shell: |
    source {{ overcloud_rc }}
    {{ l3_agent_connectivity_check_start_script }}
  when: l3_agent_connectivity_check
  async: 21660
  poll: 0

- name: run docker upgrade converge step
  shell: |
    source {{ undercloud_rc }}
    bash {{ overcloud_converge_upgrade_script }} &> overcloud_converge_upgrade.log
  register: overcloud_converge_upgrade
  ignore_errors: yes

- name: print stack failures
  shell: |
    source {{ undercloud_rc }}
    openstack stack failures list overcloud
  when: overcloud_converge_upgrade.rc != 0

- fail: msg="Overcloud upgrade converge step failed... :("
  when: overcloud_converge_upgrade.rc != 0

- name: stop l3 agent connectivity check
  shell: |
    source {{ overcloud_rc }}
    {{ l3_agent_connectivity_check_stop_script }}
  when: l3_agent_connectivity_check
