| ... | ... |
@@ -664,6 +664,10 @@ function init_nova_cells {
|
| 664 | 664 |
$NOVA_BIN_DIR/nova-manage --config-file $NOVA_CELLS_CONF db sync |
| 665 | 665 |
$NOVA_BIN_DIR/nova-manage --config-file $NOVA_CELLS_CONF cell create --name=region --cell_type=parent --username=$RABBIT_USERID --hostname=$RABBIT_HOST --port=5672 --password=$RABBIT_PASSWORD --virtual_host=/ --woffset=0 --wscale=1 |
| 666 | 666 |
$NOVA_BIN_DIR/nova-manage cell create --name=child --cell_type=child --username=$RABBIT_USERID --hostname=$RABBIT_HOST --port=5672 --password=$RABBIT_PASSWORD --virtual_host=child_cell --woffset=0 --wscale=1 |
| 667 |
+ |
|
| 668 |
+ # Creates the single cells v2 cell for the child cell (v1) nova db. |
|
| 669 |
+ nova-manage --config-file $NOVA_CELLS_CONF cell_v2 create_cell \ |
|
| 670 |
+ --transport-url $(get_transport_url child_cell) --name 'cell1' |
|
| 667 | 671 |
fi |
| 668 | 672 |
} |
| 669 | 673 |
|
| ... | ... |
@@ -720,6 +724,10 @@ function init_nova {
|
| 720 | 720 |
# Run online migrations on the new databases |
| 721 | 721 |
# Needed for flavor conversion |
| 722 | 722 |
$NOVA_BIN_DIR/nova-manage --config-file $NOVA_CONF db online_data_migrations |
| 723 |
+ |
|
| 724 |
+ # create the cell1 cell for the main nova db where the hosts live |
|
| 725 |
+ nova-manage cell_v2 create_cell --transport-url $(get_transport_url) \ |
|
| 726 |
+ --name 'cell1' |
|
| 723 | 727 |
fi |
| 724 | 728 |
|
| 725 | 729 |
create_nova_cache_dir |
| ... | ... |
@@ -970,17 +978,6 @@ function create_flavors {
|
| 970 | 970 |
fi |
| 971 | 971 |
} |
| 972 | 972 |
|
| 973 |
-# create_cell(): Group the available hosts into a cell |
|
| 974 |
-function create_cell {
|
|
| 975 |
- if ! is_service_enabled n-cell; then |
|
| 976 |
- nova-manage cell_v2 simple_cell_setup --transport-url $(get_transport_url) |
|
| 977 |
- else |
|
| 978 |
- nova-manage --config-file $NOVA_CELLS_CONF --verbose cell_v2 map_cell_and_hosts \ |
|
| 979 |
- --transport-url $(get_transport_url child_cell) --name 'cell1' |
|
| 980 |
- nova-manage db sync |
|
| 981 |
- fi |
|
| 982 |
-} |
|
| 983 |
- |
|
| 984 | 973 |
# Restore xtrace |
| 985 | 974 |
$_XTRACE_LIB_NOVA |
| 986 | 975 |
|
| ... | ... |
@@ -1364,7 +1364,7 @@ check_libs_from_git |
| 1364 | 1364 |
# Do this late because it requires compute hosts to have started |
| 1365 | 1365 |
if is_service_enabled n-api; then |
| 1366 | 1366 |
if is_service_enabled n-cpu; then |
| 1367 |
- create_cell |
|
| 1367 |
+ $TOP_DIR/tools/discover_hosts.sh |
|
| 1368 | 1368 |
else |
| 1369 | 1369 |
# Some CI systems like Hyper-V build the control plane on |
| 1370 | 1370 |
# Linux, and join in non Linux Computes after setup. This |