From 7a74c2ab24dc7083996df5c9ed7baf89cbf219f3 Mon Sep 17 00:00:00 2001 From: Chris Dent Date: Mon, 5 Jun 2017 16:06:06 +0000 Subject: [PATCH] Start placement before services that might like to use it Otherwise those services, notably n-cpu, will try to register resource providers before placement is ready. Change-Id: I89fd4fa42baf3d19ee209c59cd85b97adb97c58b Closes-Bug: #1695634 --- stack.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/stack.sh b/stack.sh index 048acf8e52..24f534d2a5 100755 --- a/stack.sh +++ b/stack.sh @@ -1300,6 +1300,13 @@ elif is_service_enabled $DATABASE_BACKENDS && is_service_enabled n-net; then $NOVA_BIN_DIR/nova-manage --config-file $NM_CONF floating create --ip_range=$TEST_FLOATING_RANGE --pool=$TEST_FLOATING_POOL fi +# Start placement before any of the service that are likely to want +# to use it to manage resource providers. +if is_service_enabled placement; then + echo_summary "Starting Placement" + start_placement +fi + if is_service_enabled neutron; then start_neutron fi @@ -1314,10 +1321,6 @@ if is_service_enabled nova; then start_nova create_flavors fi -if is_service_enabled placement; then - echo_summary "Starting Placement" - start_placement -fi if is_service_enabled cinder; then echo_summary "Starting Cinder" start_cinder