Skip to content

Commit 7a74c2a

Browse files
committed
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
1 parent dc9ef55 commit 7a74c2a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

stack.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,13 @@ elif is_service_enabled $DATABASE_BACKENDS && is_service_enabled n-net; then
13001300
$NOVA_BIN_DIR/nova-manage --config-file $NM_CONF floating create --ip_range=$TEST_FLOATING_RANGE --pool=$TEST_FLOATING_POOL
13011301
fi
13021302

1303+
# Start placement before any of the service that are likely to want
1304+
# to use it to manage resource providers.
1305+
if is_service_enabled placement; then
1306+
echo_summary "Starting Placement"
1307+
start_placement
1308+
fi
1309+
13031310
if is_service_enabled neutron; then
13041311
start_neutron
13051312
fi
@@ -1314,10 +1321,6 @@ if is_service_enabled nova; then
13141321
start_nova
13151322
create_flavors
13161323
fi
1317-
if is_service_enabled placement; then
1318-
echo_summary "Starting Placement"
1319-
start_placement
1320-
fi
13211324
if is_service_enabled cinder; then
13221325
echo_summary "Starting Cinder"
13231326
start_cinder

0 commit comments

Comments
 (0)