From: spisarski Date: Mon, 31 Jul 2017 21:13:33 +0000 (-0600) Subject: Fixed failing router test on Aricent pod. X-Git-Tag: opnfv-5.0.0~28 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F85%2F38485%2F1;p=snaps.git 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 --- 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