← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2049590] Re: Restore the device namespace if "set_netns" fails

 

Reviewed:  https://review.opendev.org/c/openstack/neutron/+/905836
Committed: https://opendev.org/openstack/neutron/commit/e234a7aeab72958a74e5d9540253d48aa6915816
Submitter: "Zuul (22348)"
Branch:    master

commit e234a7aeab72958a74e5d9540253d48aa6915816
Author: Rodolfo Alonso Hernandez <ralonsoh@xxxxxxxxxx>
Date:   Tue Jan 16 02:36:27 2024 +0000

    If method ``set_netns`` fails, restore previous device namespace
    
    If the ``IpLinkCommand.set_netns`` fails, the method restores the
    previous device namespace before raising the exception.
    
    Closes-Bug: #2049590
    Change-Id: I73b36ef161441b52922d888c11a144eafe8a7ed0


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

Title:
  Restore the device namespace if "set_netns" fails

Status in neutron:
  Fix Released

Bug description:
  If the method ``IpLinkCommand.set_netns`` [1] fails, the device
  namespace should keep the previous value.

  [1]https://github.com/openstack/neutron/blob/12115302944293b7d6b022f5acb68fe9c649a53e/neutron/agent/linux/ip_lib.py#L479

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



References