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
This commit is contained in:
Mohammed Naser 2018-06-20 16:47:30 -04:00
parent 9d558a5922
commit 4aa6c50056

View File

@ -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"