|
...
|
...
|
@@ -110,6 +110,10 @@ Q_USE_DEBUG_COMMAND=${Q_USE_DEBUG_COMMAND:-False}
|
|
110
|
110
|
Q_ROUTER_NAME=${Q_ROUTER_NAME:-router1}
|
|
111
|
111
|
# nova vif driver that all plugins should use
|
|
112
|
112
|
NOVA_VIF_DRIVER=${NOVA_VIF_DRIVER:-"nova.virt.libvirt.vif.LibvirtGenericVIFDriver"}
|
|
|
113
|
+Q_NOTIFY_NOVA_PORT_STATUS_CHANGE=${Q_NOTIFY_NOVA_PORT_STATUS_CHANGE:-True}
|
|
|
114
|
+Q_NOTIFY_NOVA_ON_PORT_DATA_CHANGES=${Q_NOTIFY_NOVA_PORT_CHANGE:-True}
|
|
|
115
|
+VIF_PLUGGING_IS_FATAL=${VIF_PLUGGING_IS_FATAL:-True}
|
|
|
116
|
+VIF_PLUGGING_TIMEOUT=${VIF_PLUGGING_TIMEOUT:-300}
|
|
113
|
117
|
|
|
114
|
118
|
# The next two variables are configured by plugin
|
|
115
|
119
|
# e.g. _configure_neutron_l3_agent or lib/neutron_plugins/*
|
|
...
|
...
|
@@ -313,6 +317,9 @@ function create_nova_conf_neutron {
|
|
313
|
313
|
if is_service_enabled q-meta; then
|
|
314
|
314
|
iniset $NOVA_CONF DEFAULT service_neutron_metadata_proxy "True"
|
|
315
|
315
|
fi
|
|
|
316
|
+
|
|
|
317
|
+ iniset $NOVA_CONF DEFAULT vif_plugging_is_fatal "$VIF_PLUGGING_IS_FATAL"
|
|
|
318
|
+ iniset $NOVA_CONF DEFAULT vif_plugging_timeout "$VIF_PLUGGING_TIMEOUT"
|
|
316
|
319
|
}
|
|
317
|
320
|
|
|
318
|
321
|
# create_neutron_cache_dir() - Part of the _neutron_setup_keystone() process
|
|
...
|
...
|
@@ -754,6 +761,16 @@ function _configure_neutron_service {
|
|
754
|
754
|
iniset $NEUTRON_CONF DEFAULT ${I/=/ }
|
|
755
|
755
|
done
|
|
756
|
756
|
|
|
|
757
|
+ # Configuration for neutron notifations to nova.
|
|
|
758
|
+ iniset $NEUTRON_CONF DEFAULT notify_nova_port_status_change $Q_NOTIFY_NOVA_PORT_STATUS_CHANGE
|
|
|
759
|
+ iniset $NEUTRON_CONF DEFAULT notify_nova_on_port_data_changes $Q_NOTIFY_NOVA_ON_PORT_DATA_CHANGES
|
|
|
760
|
+ iniset $NEUTRON_CONF DEFAULT nova_url "$NOVA_SERVICE_PROTOCOL://$NOVA_SERVICE_HOST:$NOVA_SERVICE_PORT/v2"
|
|
|
761
|
+ iniset $NEUTRON_CONF DEFAULT nova_admin_username nova $NOVA_USER
|
|
|
762
|
+ iniset $NEUTRON_CONF DEFAULT nova_admin_password $SERVICE_PASSWORD
|
|
|
763
|
+ ADMIN_TENANT_ID=$(openstack project list | awk "/ service / { print \$2 }")
|
|
|
764
|
+ iniset $NEUTRON_CONF DEFAULT nova_admin_tenant_id $ADMIN_TENANT_ID
|
|
|
765
|
+ iniset $NEUTRON_CONF DEFAULT nova_admin_auth_url "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_AUTH_PORT/v2.0"
|
|
|
766
|
+
|
|
757
|
767
|
# Configure plugin
|
|
758
|
768
|
neutron_plugin_configure_service
|
|
759
|
769
|
}
|