Don't skip cellsv2 setup for cellsv1
Since cellsv2 setup is no longer optional, we can't even exclude cellsv1 from this step. Since cellsv1 users can't use the simple command, this does the individual steps as needed. Depends-On: Icfbb17cce8ce8b03dc8b7b4ffb202db01e5218a6 Change-Id: I3c9101a34b2bb0804fc4deda62dbb8637e7b8f94
This commit is contained in:
parent
72bfe17b6a
commit
e194330f27
6
lib/nova
6
lib/nova
@ -948,7 +948,11 @@ function create_cell {
|
||||
if ! is_service_enabled n-cell; then
|
||||
nova-manage cell_v2 simple_cell_setup --transport-url $(get_transport_url)
|
||||
else
|
||||
echo 'Skipping cellsv2 setup for this cellsv1 configuration'
|
||||
# NOTE(danms): map_cell0 always returns 1 right now; remove this when that is fixed
|
||||
(nova-manage cell_v2 map_cell0 || true)
|
||||
nova-manage --config-file $NOVA_CELLS_CONF --verbose cell_v2 map_cell_and_hosts \
|
||||
--transport-url $(get_transport_url child_cell) --name 'cell1'
|
||||
nova-manage db sync
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user