Run nova db post setup from nova playbook

We need to run specific tasks, like online migrations or cells discovery
after all tasks have finished against nova conductor hosts.

This can't be done with the role logic, as we run computes the last,
and delegation to conductors does not work nicely since handlers are
not delegated.

Closes-Bug: #2034583
Change-Id: Ic4486cf90310dc81af15b9297e84c078e612c0c2
(cherry picked from commit a44f1212c3)
This commit is contained in:
Dmitriy Rabotyagov 2023-10-06 17:52:55 +02:00 committed by Dmitriy Rabotyagov
parent 6187ce0cfd
commit 29c33cece6

View File

@ -232,3 +232,18 @@
- role: "openstack.osa.system_crontab_coordination"
tags:
- crontab
- name: Finalize nova setup
hosts: nova_conductor[0]
gather_facts: false
user: root
environment: "{{ deployment_environment_variables | default({}) }}"
vars_files:
- "defaults/{{ install_method }}_install.yml"
tasks:
- name: Running db_post_setup tasks from the role
import_role:
name: os_nova
tasks_from: nova_db_post_setup.yml
tags:
- nova