Browse code

Merge "Don't skip cellsv2 setup for cellsv1"

Jenkins authored on 2017/01/14 07:52:16
Showing 1 changed files
... ...
@@ -949,7 +949,11 @@ function create_cell {
949 949
     if ! is_service_enabled n-cell; then
950 950
         nova-manage cell_v2 simple_cell_setup --transport-url $(get_transport_url)
951 951
     else
952
-        echo 'Skipping cellsv2 setup for this cellsv1 configuration'
952
+        # NOTE(danms): map_cell0 always returns 1 right now; remove this when that is fixed
953
+        (nova-manage cell_v2 map_cell0 || true)
954
+        nova-manage --config-file $NOVA_CELLS_CONF  --verbose cell_v2 map_cell_and_hosts \
955
+                --transport-url $(get_transport_url child_cell) --name 'cell1'
956
+        nova-manage db sync
953 957
     fi
954 958
 }
955 959