Merge "Run online migration tasks from external_update_tasks too."

This commit is contained in:
Zuul 2020-10-24 00:08:55 +00:00 committed by Gerrit Code Review
commit 476088bc47
3 changed files with 12 additions and 3 deletions

View File

@ -389,7 +389,7 @@ outputs:
- { 'path': /var/log/containers/httpd/cinder-api, 'setype': container_file_t, 'mode': '0750' }
external_upgrade_tasks:
- when: step|int == 1
block:
block: &cinder_online_db_migration
- name: Online data migration for Cinder
command: "{{ container_cli }} exec cinder_api cinder-manage db online_data_migrations"
delegate_to: "{{ groups['cinder_api'][0] }}"
@ -411,6 +411,9 @@ outputs:
- cinder_api
- cinder_api_cron
tripleo_delegate_to: "{{ groups['cinder_api'] | default([]) }}"
external_update_tasks:
- when: step|int == 1
block: *cinder_online_db_migration
external_deploy_tasks:
- name: Clean up legacy Cinder keystone catalog entries
become: true

View File

@ -292,7 +292,7 @@ outputs:
- { 'path': /var/log/containers/httpd/ironic-api, 'setype': container_file_t, 'mode': '0750' }
external_upgrade_tasks:
- when: step|int == 1
block:
block: &ironic_online_db_migration
- name: Online data migration for Ironic
command: "{{ container_cli }} exec ironic_api ironic-dbsync --config-file /etc/ironic/ironic.conf online_data_migrations"
delegate_to: "{{ groups['ironic_api'][0] }}"
@ -300,3 +300,6 @@ outputs:
tags:
- online_upgrade
- online_upgrade_ironic
external_update_tasks:
- when: step|int == 1
block: *ironic_online_db_migration

View File

@ -204,7 +204,7 @@ outputs:
state: yes
external_upgrade_tasks:
- when: step|int == 1
block:
block: &nova_online_db_migration
- name: Online data migration for Nova
command: "{{ container_cli }} exec nova_conductor nova-manage db online_data_migrations"
delegate_to: "{{ groups['nova_conductor'][0] }}"
@ -226,3 +226,6 @@ outputs:
tripleo_containers_to_stop:
- nova_conductor
tripleo_delegate_to: "{{ groups['nova_conductor'] | default([]) }}"
external_update_tasks:
- when: step|int == 1
block: *nova_online_db_migration