← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1649092] Re: Cleaning snat namespace didn't unplug external device

 

Reviewed:  https://review.openstack.org/409528
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=fd3eebbec4ae95019a7135679248b753c391504e
Submitter: Jenkins
Branch:    master

commit fd3eebbec4ae95019a7135679248b753c391504e
Author: Quan Tian <tianquan@xxxxxxxxxx>
Date:   Sun Dec 11 02:14:44 2016 +0800

    Unplug external device when delete snat namespace
    
    [1] allow us to identify the stale snat namespace and delete the
    namespace when the gateway is cleared as the agent restarts. But Method
    SnatNamespace.delete unplugs 'sg-XXX' devices only, leads to stale
    port remaining in ovs bridge.
    
    This patch identify the stale external device and unplug it.
    
    [1] https://review.openstack.org/#/c/326729/
    
    Change-Id: I27fff32aeeecdc599a578637f390dc1d73f0171b
    Closes-Bug: #1649092


** 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/1649092

Title:
  Cleaning snat namespace didn't unplug external device

Status in neutron:
  Fix Released

Bug description:
  [1] allow us to identify the stale snat namespace and delete the
  namespace when the gateway is cleared as the agent restarts.

  But method SnatNamespace.delete unplugs 'sg-XXX' devices only, leads
  to stale port remains in ovs bridge.

  [1] https://review.openstack.org/#/c/326729/

  
  How to reproduce:

  - create a distributed router, set its router gateway, bind a subnet to it
  - stop the l3 agent hosting the router
  - clear the router’s gateway
  - start the stopped l3 agent, device "sg-XXXX" and snat namespace will be cleaned, stale device “qg-XXXX” will remain.

  $ sudo ovs-vsctl list port qg-749cbaab-13
  _uuid               : 7f116611-4885-4813-a938-a9aebf2723ac
  bond_downdelay      : 0
  bond_fake_iface     : false
  bond_mode           : []
  bond_updelay        : 0
  external_ids        : {}
  fake_bridge         : false
  interfaces          : [81e93ffd-ce76-4c75-8522-5ff5e9a4c1c0]
  lacp                : []
  mac                 : []
  name                : "qg-749cbaab-13"
  other_config        : {net_uuid="eaad0784-47dd-4263-82e1-419e7f3d8e3f", network_type=vxlan, physical_network=None, segmentation_id="101", tag="7"}
  qos                 : []
  statistics          : {}
  status              : {}
  tag                 : 4095
  trunks              : []
  vlan_mode           : []

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


References