This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1466081 - Update binding: host_id for network:router_gateway interfaces
Update binding: host_id for network:router_gateway interfaces
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron (Show other bugs)
10.0 (Newton)
x86_64 Linux
urgent Severity urgent
: z4
: 10.0 (Newton)
Assigned To: Daniel Alvarez Sanchez
Alexander Stafeyev
: Reopened, Triaged, ZStream
Depends On:
  Show dependency treegraph
Reported: 2017-06-28 20:22 EDT by Ajay Kalambur
Modified: 2017-09-06 13:17 EDT (History)
13 users (show)

See Also:
Fixed In Version: openstack-neutron-9.3.1-7.el7ost
Doc Type: Bug Fix
Doc Text:
The networking-vpp mechanism driver was not able to correctly set up the router interface when a neutron HA router fails over. This was because the host_id property of the ports owned by a router gateway were not updated to the new host. This fix updates the host_id property on a failover.
Story Points: ---
Clone Of:
Last Closed: 2017-09-06 13:17:18 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ajay Kalambur 2017-06-28 20:22:02 EDT
Description of problem:

When a neutron HA router fails over, the l3 agent where the router is now master informs neutron server of this transition. Thus the router port bindings (router port's binding:host_id) are  updated to point to the correct server.

networking-vpp mechanism driver ( depends on this to provide the L2 plumbing for the router interface on the new control server. 

There is a bug in the 
def _update_router_port_bindings(self, context, states, host) method in neutron/db/ which prevents gateway ports from being identified and updated.

A bug fix has been applied to upstream neutron and is present in 
and master@

The current version of neutron in OSP10 is openstack-neutron.noarch 1:9.2.0-6.el7ost and it does not have it.

This bug request is to make the fix available.

Version-Release number of selected component (if applicable):
openstack-neutron.noarch 1:9.2.0-6.el7ost
Comment 1 Assaf Muller 2017-06-29 09:44:53 EDT
This will be automatically included in the next OSP 10 rebase and minor release.
Comment 2 Assaf Muller 2017-06-29 20:14:39 EDT
I see that you've attached a sev1 case. Can you help explain why is it a sev1? What is the impact of the issue? As far as I can tell the API will return an out of date host for the external router port binding, but there is no other effect. In any case, if it's indeed an urgent severity issue for the customer and they cannot wait for the next OSP 10 release (Estimated to be around 1 month) then you can always ask for a hotfix.
Comment 3 Ajay Kalambur 2017-06-30 11:35:01 EDT
Hi Assaf,

This is a sev1 bug because it breaks the HA implementation of neutron routers when using VPP as the mechanism driver (

"I can tell the API will return an out of date host for the external router port binding, but there is no other effect"

It is not only an API update but an ML2 update_port_precommit() call is also made as part of this. Thus when a HA failover event happens on the neutron router, VPP depends on ML2 to make this call, to rebind all the router ports to the new correct host. 

With this bug, router gateway interfaces are not rebound correctly and the new (master) neutron router is not able to forward packets to the external world.

Hence we would need this fix to be backported as soon as possible.
Comment 20 errata-xmlrpc 2017-09-06 13:17:18 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

Note You need to log in before you can comment on or make changes to this bug.