Merge "Remove pre-upgrade best-effort online data migrations"
This commit is contained in:
commit
8ab702a94f
@ -356,23 +356,6 @@ outputs:
|
||||
Log files from cinder containers can be found under
|
||||
/var/log/containers/cinder and /var/log/containers/httpd/cinder-api.
|
||||
ignore_errors: true
|
||||
upgrade_tasks:
|
||||
- when: step|int == 0
|
||||
tags: common
|
||||
block:
|
||||
- name: set is_cinder_api_bootstrap_node fact
|
||||
set_fact: is_cinder_api_bootstrap_node={{cinder_api_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
||||
- name: Ensure all online data migrations for Cinder have been applied
|
||||
shell: |
|
||||
if {{ container_cli }} ps | grep cinder_api; then
|
||||
{{ container_cli }} exec cinder_api cinder-manage db online_data_migrations
|
||||
# handle situation when container_cli is podman but
|
||||
# the containers are still under docker
|
||||
elif docker ps | grep cinder_api; then
|
||||
docker exec cinder_api cinder-manage db online_data_migrations
|
||||
fi
|
||||
tags: pre-upgrade
|
||||
when: is_cinder_api_bootstrap_node|bool
|
||||
external_upgrade_tasks:
|
||||
- when: step|int == 1
|
||||
block:
|
||||
|
@ -277,23 +277,6 @@ outputs:
|
||||
Log files from ironic containers can be found under
|
||||
/var/log/containers/ironic and /var/log/containers/httpd/ironic-*.
|
||||
ignore_errors: true
|
||||
upgrade_tasks:
|
||||
- when: step|int == 0
|
||||
tags: common
|
||||
block:
|
||||
- name: set is_ironic_api_bootstrap_node fact
|
||||
set_fact: is_ironic_api_bootstrap_node={{ironic_api_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
||||
- name: Ensure all online data migrations for Ironic have been applied
|
||||
shell: |
|
||||
if {{ container_cli }} ps | grep ironic_api; then
|
||||
{{ container_cli }} exec ironic_api ironic-dbsync --config-file /etc/ironic/ironic.conf online_data_migrations
|
||||
# handle situation when container_cli is podman but
|
||||
# the containers are still under docker
|
||||
elif docker ps | grep ironic_api; then
|
||||
docker exec ironic_api ironic-dbsync --config-file /etc/ironic/ironic.conf online_data_migrations
|
||||
fi
|
||||
tags: pre-upgrade
|
||||
when: is_ironic_api_bootstrap_node|bool
|
||||
external_upgrade_tasks:
|
||||
- when: step|int == 1
|
||||
block:
|
||||
|
@ -438,23 +438,6 @@ outputs:
|
||||
- opendev-validation-nova
|
||||
command: "{{ container_cli }} exec nova_api /openstack/healthcheck"
|
||||
host_prep_tasks: {get_attr: [NovaApiLogging, host_prep_tasks]}
|
||||
upgrade_tasks:
|
||||
- when: step|int == 0
|
||||
tags: common
|
||||
block:
|
||||
- name: set is_nova_api_bootstrap_node fact
|
||||
set_fact: is_nova_api_bootstrap_node={{nova_api_short_bootstrap_node_name|lower == ansible_hostname|lower}}
|
||||
- name: Ensure all online data migrations for Nova have been applied
|
||||
shell: |
|
||||
if {{ container_cli }} ps | grep nova_api; then
|
||||
{{ container_cli }} exec nova_api nova-manage db online_data_migrations
|
||||
# handle situation when container_cli is podman but
|
||||
# the containers are still under docker
|
||||
elif docker ps | grep nova_api; then
|
||||
docker exec nova_api nova-manage db online_data_migrations
|
||||
fi
|
||||
tags: pre-upgrade
|
||||
when: is_nova_api_bootstrap_node|bool
|
||||
external_upgrade_tasks:
|
||||
- when: step|int == 1
|
||||
block:
|
||||
|
Loading…
x
Reference in New Issue
Block a user