Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Moves undercloud upgrade introspection data migration to step …
Browse files Browse the repository at this point in the history
…1" into stable/wallaby
  • Loading branch information
Zuul authored and openstack-gerrit committed Jul 9, 2021
2 parents 2888fe0 + 81373cb commit 08dd2fc
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions deployment/undercloud/undercloud-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ outputs:
- step|int == 0
- ansible_facts['distribution_major_version'] is version('8', '>=')
- dnf_module_list|length > 0
- name: migrate existing introspection data
shell: >
{{ container_cli }} exec -u root ironic_inspector ironic-inspector-migrate-data
--from swift --to database --config-file /etc/ironic-inspector/inspector.conf
become: true
register: ironic_inspector_migrate_data_result
when:
- step|int == 1
failed_when:
- ironic_inspector_migrate_data_result.rc is defined # do not fail in dry run mode
- ironic_inspector_migrate_data_result.rc not in [0, 125] # ignore if container not running
- name: Special treatment for OpenvSwitch
tripleo_ovs_upgrade:
when:
Expand Down Expand Up @@ -111,17 +122,6 @@ outputs:
register: os_net_config_upgrade
failed_when: os_net_config_upgrade.rc not in [0,2]
changed_when: os_net_config_upgrade.rc == 2
- name: migrate existing introspection data
shell: >
{{ container_cli }} exec -u root ironic_inspector ironic-inspector-migrate-data
--from swift --to database --config-file /etc/ironic-inspector/inspector.conf
become: true
register: ironic_inspector_migrate_data_result
when:
- step|int == 3
failed_when:
- ironic_inspector_migrate_data_result.rc is defined # do not fail in dry run mode
- ironic_inspector_migrate_data_result.rc not in [0, 125] # ignore if container not running
# Keepalived was removed and the VIPs are now deployed by
# os-net-config.
# When Keepalived is stopped, it brings down the VIPs which is
Expand Down

0 comments on commit 08dd2fc

Please sign in to comment.