From a44f1212c38ae01894e4a825fa69b2512e363dba Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Fri, 6 Oct 2023 17:52:55 +0200 Subject: [PATCH] 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 --- playbooks/os-nova-install.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/playbooks/os-nova-install.yml b/playbooks/os-nova-install.yml index 71393d94d9..60c22b91ce 100644 --- a/playbooks/os-nova-install.yml +++ b/playbooks/os-nova-install.yml @@ -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