Browse code

Make tempest L3 capable plugin aware

With this patch, the public network config in tempest.conf will be
done for the plugins that support L3.

This is required to enable third-party CI for stable/havana

Conflicts:

lib/neutron
lib/tempest

Change-Id: I820fe300fac45ff92d1281ff0c43ebc137783210
(cherry picked from commit afbc631cb8c89316bbecbf0f2c601103304e1994)

Tomoe Sugihara authored on 2013/11/15 05:02:47
Showing 2 changed files
... ...
@@ -110,6 +110,15 @@ Q_ALLOW_OVERLAPPING_IP=${Q_ALLOW_OVERLAPPING_IP:-True}
110 110
 Q_USE_DEBUG_COMMAND=${Q_USE_DEBUG_COMMAND:-False}
111 111
 # The name of the default q-l3 router
112 112
 Q_ROUTER_NAME=${Q_ROUTER_NAME:-router1}
113
+
114
+# The next two variables are configured by plugin
115
+# e.g.  _configure_neutron_l3_agent or lib/neutron_plugins/*
116
+#
117
+# The plugin supports L3.
118
+Q_L3_ENABLED=${Q_L3_ENABLED:-False}
119
+# L3 routers exist per tenant
120
+Q_L3_ROUTER_PER_TENANT=${Q_L3_ROUTER_PER_TENANT:-False}
121
+
113 122
 # List of config file names in addition to the main plugin config file
114 123
 # See _configure_neutron_common() for details about setting it up
115 124
 declare -a Q_PLUGIN_EXTRA_CONF_FILES
... ...
@@ -14,6 +14,7 @@
14 14
 # - ``PUBLIC_NETWORK_NAME``
15 15
 # - ``Q_USE_NAMESPACE``
16 16
 # - ``Q_ROUTER_NAME``
17
+# - ``Q_L3_ENABLED``
17 18
 # - ``VIRT_DRIVER``
18 19
 # - ``LIBVIRT_TYPE``
19 20
 # - ``KEYSTONE_SERVICE_PROTOCOL``, ``KEYSTONE_SERVICE_HOST`` from lib/keystone
... ...
@@ -186,7 +187,7 @@ function configure_tempest() {
186 186
         tenant_networks_reachable=true
187 187
     fi
188 188
 
189
-    if is_service_enabled q-l3; then
189
+    if [ "$Q_L3_ENABLED" = "True" ]; then
190 190
         public_network_id=$(neutron net-list | grep $PUBLIC_NETWORK_NAME | \
191 191
             awk '{print $2}')
192 192
         if [ "$Q_USE_NAMESPACE" == "False" ]; then