]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix gateway port could not retrieve for subnet
authorSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Wed, 29 Apr 2015 05:50:31 +0000 (22:50 -0700)
committerSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Mon, 20 Jul 2015 18:46:34 +0000 (18:46 +0000)
commite82b0e108332964c90e9d2cfaf3d334a92127155
tree6db3f2b539ba8ac84bad7857e14a84552b2ffe2e
parent11c0900dea4d4e691c0c68cd7b0c9cff656ce7a2
Fix gateway port could not retrieve for subnet

In DVR routers when a port is added to a router, then
the command succeeds but the l2 ovs agent raises an
error stating that it could not retrieve the gateway
port for the subnet.

The reason for this is there is mismatch in the
ip_address returned from the subnet for the gateway
port and the actual ip_address of the port that we
added to the router.

Since the subnet info was passed to "get_subnet_for_dvr"
this mismatch was seen.

Instead of passing the subnet we will be passing the
actual fixed_ips with all the details and the subnet
gateway port will be filtered based on the ip_address
in the fixed_ips passed.

Closes-Bug: #1404823

Change-Id: I87a3983951f814350e79f5e2274f4639bb6bc0f5
neutron/api/rpc/handlers/dvr_rpc.py
neutron/db/dvr_mac_db.py
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_dvr_neutron_agent.py
neutron/tests/unit/api/rpc/handlers/test_dvr_rpc.py