From 4aa6c5005697ee8acc0d104f07b3c9a55d044b7a Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Wed, 20 Jun 2018 16:47:30 -0400 Subject: [PATCH] Setup service users and endpoints before database setup As part of the nova-status upgrade check process, it makes sure that the credentials setup for the service are working. Because we run that in nova_db_setup.yml, it means that the endpoints and users don't exist yet and it cannot validate it. This instead sets up the service much earlier in order to make sure that Nova can find it. Change-Id: Idf14240a9843a55575fd1816c78ba9d4a8a19632 --- tasks/main.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 9f72d92a..5dd6aebd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -77,6 +77,13 @@ tags: - nova-config +- include_tasks: nova_service_setup.yml + when: + - "nova_services['nova-conductor']['group'] in group_names" + - "inventory_hostname == ((groups['nova_conductor'] | intersect(ansible_play_hosts)) | list)[0]" + tags: + - nova-config + - include_tasks: nova_db_setup.yml when: - "nova_services['nova-conductor']['group'] in group_names" @@ -115,13 +122,6 @@ tags: - nova-config -- include_tasks: nova_service_setup.yml - when: - - "nova_services['nova-conductor']['group'] in group_names" - - "inventory_hostname == ((groups['nova_conductor'] | intersect(ansible_play_hosts)) | list)[0]" - tags: - - nova-config - - include_tasks: nova_compute.yml when: - "nova_services['nova-compute']['group'] in group_names"