Setup cellsv2 for Nova

Run "nova-manage cell_v2 simple_cell_setup --transport_url ..." after
Nova is started. This will add all compute hosts into a new cell, and
setup a db for cell0.

Change-Id: I50a955b97d0e18426406c15397bdfbc9e807d908
Depends-On: I559f9c87e89926414b368cac9442dec4eadcb89b
This commit is contained in:
Andrew Laski 2016-05-27 15:23:54 -04:00 committed by Dan Smith
parent 327f8d14b9
commit b1a4f34bfc
2 changed files with 6 additions and 0 deletions

View File

@ -937,6 +937,11 @@ function create_flavors {
fi
}
# create_cell(): Group the available hosts into a cell
function create_cell {
nova-manage cell_v2 simple_cell_setup --transport-url $(get_transport_url)
}
# Restore xtrace
$_XTRACE_LIB_NOVA

View File

@ -1263,6 +1263,7 @@ if is_service_enabled nova; then
echo_summary "Starting Nova"
start_nova
create_flavors
create_cell
fi
if is_service_enabled cinder; then
echo_summary "Starting Cinder"