summaryrefslogtreecommitdiffstats
path: root/manifests/profile/base/nova/api.pp
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-02-10 14:40:59 +0000
committerGerrit Code Review <review@openstack.org>2017-02-10 14:40:59 +0000
commite12dbec87f646c1065aea8e25d13aa50ef139e18 (patch)
tree00f6a3baa369ed865f10b3928c26ab71d782428e /manifests/profile/base/nova/api.pp
parenta56459e2e172b1ca536c95a15c2d793b532c09ed (diff)
parentbb63f514d22ea82d17947a5972b4da16e66b5a36 (diff)
Merge "Run nova-cell_v2-discover_hosts at step 5"
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 b039506..27b47b2 100644
--- a/manifests/profile/base/nova/api.pp
+++ b/manifests/profile/base/nova/api.pp
@@ -119,6 +119,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 }
+ }
}
}