← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1816698] Re: DVR-HA: Removing a router from an agent, does not clear the namespaces on the agent

 

Reviewed:  https://review.openstack.org/638566
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=d9e0bab6acf6a608ed5bf32524c7d362f052a3ac
Submitter: Zuul
Branch:    master

commit d9e0bab6acf6a608ed5bf32524c7d362f052a3ac
Author: Swaminathan Vasudevan <SVasudevan@xxxxxxxx>
Date:   Thu Feb 21 17:14:03 2019 -0800

    DVR-HA: Unbinding a HA router from agent does not clear HA interface
    
    Removing an active or a standby HA router from an agent that has a
    valid DVR serviceable port (such as DHCP), does not remove the
    HA interface associated with the Router in the SNAT namespace.
    
    When we try to add the HA router back to the agent, then it
    adds more than one HA interface to the SNAT Namespace causing
    more problems and we sometimes also see multiple active routers.
    
    This bug might have been introduced by this patch [1].
    
    Fix the problem by just adding the router namespaces without HA
    interfaces when there is no HA and re-insert the HA interfaces
    when HA router is bound to the agent into the namespace.
    
    [1] https://review.openstack.org/#/c/522362/
    Closes-Bug: #1816698
    
    Change-Id: Ie625abcb73f8185bb2bee06dcd26a01d8af0b0d1


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1816698

Title:
  DVR-HA: Removing a router from an agent, does not clear the namespaces
  on the agent

Status in neutron:
  Fix Released

Bug description:
  Removing an active or a standby ha-router from an agent, does not clear the router namespace and the Snat namespaces.
  This leads to sometimes having two Active HA routers and two 'ha-interface' in the snat namespace for DVR routers.
  This can be very easily reproduced.

  1. Create a HA-DVR router. ( minimum two node setup with 'dvr_snat' agent mode)
  2. Attach interface to the router
  3. Attach gateway to the router.
  4. Now check the l3-agent-list-hosting-router for router.
  5. Then remove the router from one of the agent ( l3-agent-router-remove )
  6. Expected result is router namespace and snat namespace to be removed. ( But it is removed).
  7. At the minimum we should clear the HA interfaces for that agent so that the HA router does not get into Active mode again.

  This bug might have been introduced by this patch.
  https://review.openstack.org/#/c/522362/7

  This bug is seen since Ocata/Pike and probably also in master branch.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1816698/+subscriptions


References