Migrate introspection data for undercloud upgrade
As we've disabled swift on the undercloud, migrate introspection data from swift to database when doing undercloud upgrade. Change-Id: Ia1b4fda4a15e6f3a2fc75661420a561078b18a59
This commit is contained in:
parent
0dc522bbc7
commit
a1e464a3d4
|
@ -112,6 +112,17 @@ outputs:
|
||||||
register: os_net_config_upgrade
|
register: os_net_config_upgrade
|
||||||
failed_when: os_net_config_upgrade.rc not in [0,2]
|
failed_when: os_net_config_upgrade.rc not in [0,2]
|
||||||
changed_when: os_net_config_upgrade.rc == 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 deprecated and the VIPs are now deployed by
|
# Keepalived was deprecated and the VIPs are now deployed by
|
||||||
# os-net-config.
|
# os-net-config.
|
||||||
# When Keepalived is stopped, it brings down the VIPs which is
|
# When Keepalived is stopped, it brings down the VIPs which is
|
||||||
|
|
Loading…
Reference in New Issue