summaryrefslogtreecommitdiff
path: root/tempest
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-04-08 20:40:13 +0000
committerGerrit Code Review <review@openstack.org>2015-04-08 20:40:13 +0000
commitb9423e8d5a4180402bca2de291fb68ecfb4be215 (patch)
treeddabf66ad6d5c1f3e1daacdcae16530c7b192c1a /tempest
parentbe86708fcfbf2ab172b488ffb7c546109f2f7330 (diff)
parent700711ea0337b8acf9505b582f75b8a73caed0e8 (diff)
downloadtempest-b9423e8d5a4180402bca2de291fb68ecfb4be215.tar.gz
Merge "Fix fixed_network bug 1439634 - ipsec issue"
Diffstat (limited to 'tempest')
-rw-r--r--tempest/test.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tempest/test.py b/tempest/test.py
index da936b4ef..258599995 100644
--- a/tempest/test.py
+++ b/tempest/test.py
@@ -445,7 +445,12 @@ class BaseTestCase(testtools.testcase.WithAttributes,
# Make sure isolated_creds exists and get a network client
networks_client = cls.get_client_manager().networks_client
isolated_creds = getattr(cls, 'isolated_creds', None)
- if credentials.is_admin_available():
+ # In case of nova network, isolated tenants are not able to list the
+ # network configured in fixed_network_name, even if the can use it
+ # for their servers, so using an admin network client to validate
+ # the network name
+ if (not CONF.service_available.neutron and
+ credentials.is_admin_available()):
admin_creds = isolated_creds.get_admin_creds()
networks_client = clients.Manager(admin_creds).networks_client
return fixed_network.get_tenant_network(isolated_creds,