From b1a4f34bfc6adb9ab4577520601c44e8ccff277d Mon Sep 17 00:00:00 2001 From: Andrew Laski Date: Fri, 27 May 2016 15:23:54 -0400 Subject: [PATCH] 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 --- lib/nova | 5 +++++ stack.sh | 1 + 2 files changed, 6 insertions(+) diff --git a/lib/nova b/lib/nova index af5d1222a0..4c079f46b9 100644 --- a/lib/nova +++ b/lib/nova @@ -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 diff --git a/stack.sh b/stack.sh index 68e3d936b8..948475a270 100755 --- a/stack.sh +++ b/stack.sh @@ -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"