Fixed failing router test on Aricent pod. 85/38485/1
authorspisarski <s.pisarski@cablelabs.com>
Mon, 31 Jul 2017 21:13:33 +0000 (15:13 -0600)
committerspisarski <s.pisarski@cablelabs.com>
Mon, 31 Jul 2017 21:13:33 +0000 (15:13 -0600)
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>
snaps/openstack/create_router.py

index 335be2c..209f9d2 100644 (file)
@@ -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