Merge "[ironic] Remove useless tasks"

This commit is contained in:
Zuul 2022-11-09 12:08:54 +00:00 committed by Gerrit Code Review
commit f65b1f9163
2 changed files with 0 additions and 29 deletions
ansible/roles/ironic/tasks

@ -12,8 +12,6 @@
name:
- ironic_api
- ironic_inspector
# TODO(yoctozepto): Remove ironic_ipxe entry in Zed.
- ironic_ipxe
- ironic_http
register: container_facts
@ -47,8 +45,6 @@
timeout: 1
state: stopped
when:
# TODO(yoctozepto): Remove ironic_ipxe entry in Zed.
- container_facts['ironic_ipxe'] is not defined
- container_facts['ironic_http'] is not defined
- inventory_hostname in groups['ironic-http']

@ -27,33 +27,8 @@
run_once: true
when: not ironic_upgrade_skip_wait_check | bool
# TODO(yoctozepto): Remove this task in Zed.
- name: Remove old Ironic containers
become: true
kolla_docker:
action: "stop_and_remove_container"
common_options: "{{ docker_common_options }}"
name: "{{ item }}"
with_items:
# NOTE(yoctozepto): Removing conductor to avoid it
# thinking that the tftp and http servers are available.
- ironic_conductor
- ironic_pxe
- ironic_ipxe
- include_tasks: rolling_upgrade.yml
when: ironic_enable_rolling_upgrade | bool
- include_tasks: legacy_upgrade.yml
when: not ironic_enable_rolling_upgrade | bool
# TODO(yoctozepto): Remove this task in Zed.
- name: Remove old Ironic volumes
become: true
kolla_docker:
action: "remove_volume"
common_options: "{{ docker_common_options }}"
name: "{{ item }}"
with_items:
- ironic_pxe
- ironic_ipxe