aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/profile/base/nova/api.pp
diff options
context:
space:
mode:
authorEmilien Macchi <emilien@redhat.com>2017-02-09 14:34:13 -0500
committerEmilien Macchi <emilien@redhat.com>2017-02-09 23:00:42 -0500
commitbb63f514d22ea82d17947a5972b4da16e66b5a36 (patch)
tree14d38fb79d44fb331d1affc470fb17d6fbc43da0 /manifests/profile/base/nova/api.pp
parent3b00ffc728b47e132b3ed8bc460f8697ddb32047 (diff)
Run nova-cell_v2-discover_hosts at step 5
We need to run nova-cell_v2-discover_hosts at the very end of the deployment because nova database needs to be aware of all registred compute hosts. 1. Move keystone resources management at step 3. 2. Move nova-compute service at step 4. 3. Move nova-placement-api at step 3. 5. Run nova-cell_v2-discover_hosts at step 5 on one nova-api node. 6. Run neutron-ovs-agent at step 5 to avoid racy deployments where it starts before neutron-server when doing HA deployments. With that change, we expect Nova aware of all compute services deployed in TripleO during an initial deployment. Depends-On: If943157b2b4afeb640919e77ef0214518e13ee15 Change-Id: I6f2df2a83a248fb5dc21c2bd56029eb45b66ceae Related-Bug: #1663273 Related-Bug: #1663458
Diffstat (limited to 'manifests/profile/base/nova/api.pp')
-rw-r--r--manifests/profile/base/nova/api.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/profile/base/nova/api.pp b/manifests/profile/base/nova/api.pp
index 99911d2..5f3fd5c 100644
--- a/manifests/profile/base/nova/api.pp
+++ b/manifests/profile/base/nova/api.pp
@@ -117,6 +117,13 @@ class tripleo::profile::base::nova::api (
if hiera('nova_enable_db_purge', true) {
include ::nova::cron::archive_deleted_rows
}
+ # At step 5, we consider all nova-compute services started and registred to nova-conductor
+ # So we want to update Nova Cells database to be aware of these hosts by executing the
+ # nova-cell_v2-discover_hosts command again.
+ # Doing it on a single nova-api node to avoid race condition.
+ if $sync_db {
+ Exec<| title == 'nova-cell_v2-discover_hosts' |> { refreshonly => false }
+ }
}
}