summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2017-07-31 15:13:33 -0600
committerspisarski <s.pisarski@cablelabs.com>2017-07-31 15:13:33 -0600
commitf9a9c6eb7e11ba70e39b5b05b4dbba743bf3fd02 (patch)
tree19e3ac1ab3948a6b9ca39d5dfd4a42bfda1b110f
parentc4eba6eaaa2f8e0a0ca40c40907fc9e04a65e6d9 (diff)
Fixed failing router test on Aricent pod.
Removed project ID from network lookup for the router_external network as the test test_create_router_admin_user_to_new_project() as the OpenStackRouter object was including its own project ID to the API call causing the network lookup to fail. Note: this is the only pod where this bug has reared it's ugly head. Change-Id: I159252b3f3c3bc418f9947710e9e97d8471ec538 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
-rw-r--r--snaps/openstack/create_router.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/snaps/openstack/create_router.py b/snaps/openstack/create_router.py
index 335be2c..209f9d2 100644
--- a/snaps/openstack/create_router.py
+++ b/snaps/openstack/create_router.py
@@ -253,8 +253,7 @@ class RouterSettings:
if self.admin_state_up is not None:
out['admin_state_up'] = self.admin_state_up
if self.external_gateway:
- ext_net = neutron_utils.get_network(neutron, self.external_gateway,
- project_id)
+ ext_net = neutron_utils.get_network(neutron, self.external_gateway)
if ext_net:
ext_gw['network_id'] = ext_net.id
out['external_gateway_info'] = ext_gw