Browse code

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

Andrew Laski authored on 2016/05/28 04:23:54
Showing 2 changed files
... ...
@@ -937,6 +937,11 @@ function create_flavors {
937 937
     fi
938 938
 }
939 939
 
940
+# create_cell(): Group the available hosts into a cell
941
+function create_cell {
942
+    nova-manage cell_v2 simple_cell_setup --transport-url $(get_transport_url)
943
+}
944
+
940 945
 # Restore xtrace
941 946
 $_XTRACE_LIB_NOVA
942 947
 
... ...
@@ -1263,6 +1263,7 @@ if is_service_enabled nova; then
1263 1263
     echo_summary "Starting Nova"
1264 1264
     start_nova
1265 1265
     create_flavors
1266
+    create_cell
1266 1267
 fi
1267 1268
 if is_service_enabled cinder; then
1268 1269
     echo_summary "Starting Cinder"