Merge "lib/neutron: Create initial topology only on controller node"
This commit is contained in:
commit
c0ef1bd05b
@ -433,6 +433,7 @@ function start_neutron_new {
|
|||||||
if is_service_enabled neutron-l3; then
|
if is_service_enabled neutron-l3; then
|
||||||
run_process neutron-l3 "$NEUTRON_BIN_DIR/$NEUTRON_L3_BINARY $NEUTRON_CONFIG_ARG"
|
run_process neutron-l3 "$NEUTRON_BIN_DIR/$NEUTRON_L3_BINARY $NEUTRON_CONFIG_ARG"
|
||||||
fi
|
fi
|
||||||
|
if is_service_enabled neutron-api; then
|
||||||
# XXX(sc68cal) - Here's where plugins can wire up their own networks instead
|
# XXX(sc68cal) - Here's where plugins can wire up their own networks instead
|
||||||
# of the code in lib/neutron_plugins/services/l3
|
# of the code in lib/neutron_plugins/services/l3
|
||||||
if type -p neutron_plugin_create_initial_networks > /dev/null; then
|
if type -p neutron_plugin_create_initial_networks > /dev/null; then
|
||||||
@ -443,6 +444,7 @@ function start_neutron_new {
|
|||||||
# Create the networks using servic
|
# Create the networks using servic
|
||||||
create_neutron_initial_network
|
create_neutron_initial_network
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
if is_service_enabled neutron-metadata-agent; then
|
if is_service_enabled neutron-metadata-agent; then
|
||||||
run_process neutron-metadata-agent "$NEUTRON_BIN_DIR/$NEUTRON_META_BINARY $NEUTRON_CONFIG_ARG"
|
run_process neutron-metadata-agent "$NEUTRON_BIN_DIR/$NEUTRON_META_BINARY $NEUTRON_CONFIG_ARG"
|
||||||
fi
|
fi
|
||||||
|
@ -157,14 +157,6 @@ function _neutron_get_ext_gw_interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function create_neutron_initial_network {
|
function create_neutron_initial_network {
|
||||||
if ! is_service_enabled q-svc && ! is_service_enabled neutron-api; then
|
|
||||||
echo "Controller services not enabled. No networks configured!"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
if [[ "$NEUTRON_CREATE_INITIAL_NETWORKS" == "False" ]]; then
|
|
||||||
echo "Network creation disabled!"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
local project_id
|
local project_id
|
||||||
project_id=$(openstack project list | grep " demo " | get_field 1)
|
project_id=$(openstack project list | grep " demo " | get_field 1)
|
||||||
die_if_not_set $LINENO project_id "Failure retrieving project_id for demo"
|
die_if_not_set $LINENO project_id "Failure retrieving project_id for demo"
|
||||||
|
3
stack.sh
3
stack.sh
@ -1269,7 +1269,10 @@ if is_service_enabled neutron; then
|
|||||||
start_neutron
|
start_neutron
|
||||||
fi
|
fi
|
||||||
# Once neutron agents are started setup initial network elements
|
# Once neutron agents are started setup initial network elements
|
||||||
|
if is_service_enabled q-svc && [[ "$NEUTRON_CREATE_INITIAL_NETWORKS" == "True" ]]; then
|
||||||
|
echo_summary "Creating initial neutron network elements"
|
||||||
create_neutron_initial_network
|
create_neutron_initial_network
|
||||||
|
fi
|
||||||
|
|
||||||
if is_service_enabled nova; then
|
if is_service_enabled nova; then
|
||||||
echo_summary "Starting Nova"
|
echo_summary "Starting Nova"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user