| ... | ... |
@@ -305,6 +305,9 @@ function configure_neutron_nova_new {
|
| 305 | 305 |
|
| 306 | 306 |
iniset $NOVA_CONF DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver |
| 307 | 307 |
|
| 308 |
+ # optionally set options in nova_conf |
|
| 309 |
+ neutron_plugin_create_nova_conf |
|
| 310 |
+ |
|
| 308 | 311 |
if is_service_enabled neutron-metadata-agent; then |
| 309 | 312 |
iniset $NOVA_CONF neutron service_metadata_proxy "True" |
| 310 | 313 |
fi |
| ... | ... |
@@ -146,6 +146,14 @@ function _neutron_get_ext_gw_interface {
|
| 146 | 146 |
} |
| 147 | 147 |
|
| 148 | 148 |
function create_neutron_initial_network {
|
| 149 |
+ if ! is_service_enabled q-svc && ! is_service_enabled neutron-api; then |
|
| 150 |
+ echo "Controller services not enabled. No networks configured!" |
|
| 151 |
+ return |
|
| 152 |
+ fi |
|
| 153 |
+ if [[ "$NEUTRON_CREATE_INITIAL_NETWORKS" == "False" ]]; then |
|
| 154 |
+ echo "Network creation disabled!" |
|
| 155 |
+ return |
|
| 156 |
+ fi |
|
| 149 | 157 |
local project_id |
| 150 | 158 |
project_id=$(openstack project list | grep " demo " | get_field 1) |
| 151 | 159 |
die_if_not_set $LINENO project_id "Failure retrieving project_id for demo" |
| ... | ... |
@@ -1267,10 +1267,7 @@ if is_service_enabled neutron; then |
| 1267 | 1267 |
start_neutron |
| 1268 | 1268 |
fi |
| 1269 | 1269 |
# Once neutron agents are started setup initial network elements |
| 1270 |
-if is_service_enabled q-svc && [[ "$NEUTRON_CREATE_INITIAL_NETWORKS" == "True" ]]; then |
|
| 1271 |
- echo_summary "Creating initial neutron network elements" |
|
| 1272 |
- create_neutron_initial_network |
|
| 1273 |
-fi |
|
| 1270 |
+create_neutron_initial_network |
|
| 1274 | 1271 |
|
| 1275 | 1272 |
if is_service_enabled nova; then |
| 1276 | 1273 |
echo_summary "Starting Nova" |