Bug 1173435

Summary: deleting netns ends in Device or resource busy and blocks further namespace usage
Product: [Community] RDO Reporter: Tsuyoshi Nagata <nagata3333333>
Component: iprouteAssignee: Phil Sutter <psutter>
Status: CLOSED EOL QA Contact: Shai Revivo <srevivo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: IcehouseCC: breeler, fdinitto, ishii.hironobu, jorton, lhh, lpeer, majopela, nyechiel, oblaut, pasik, rhos-maint, sclewis, srevivo, thozza, tmlcoch
Target Milestone: ---Keywords: Patch, ZStream
Target Release: Juno   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1062685 Environment:
Last Closed: 2016-05-19 15:57:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1062685    
Bug Blocks: 1051028, 1051036, 1080561    

Description Tsuyoshi Nagata 2014-12-12 07:17:10 UTC
+++ This bug was initially created as a clone of Bug #1062685 +++

Description of problem:

   

Version-Release number of selected component (if applicable):


How reproducible:

100%

Steps to Reproduce:
1. ip netns add netns_one
2. ip netns add netns_two
3. ip link add name if_one type veth peer name if_one_peer
4. ip link add name if_two type veth peer name if_two_peer
5. ip link set dev if_one_peer netns netns_one
6.  ip link set dev if_two_peer netns netns_two

7. ip netns exec netns_one bash

# in other terminal:

8. ip netns delete netns_two


Actual results:
> # => Cannot remove /var/run/netns/netns_two: Device or resource busy

Expected results:
Correct removal of the netns_two


Additional info:

Original description here:
http://permalink.gmane.org/gmane.linux.network/240875

Upstream iproute patch:
https://git.kernel.org/cgit/linux/kernel/git/shemminger/iproute2.git/commit/?id=58a3e8270fe72f8ed92687d3a3132c2a708582dd

--- Additional comment from Miguel Angel Ajo on 2014-02-10 04:31:05 EST ---

Rising priority to high, since it's blocking 2 bugs with high priority.

--- Additional comment from Petr Ĺ abata on 2014-02-10 08:33:41 EST ---

Patch available and seems to work.

--- Additional comment from Miguel Angel Ajo on 2014-02-10 09:57:11 EST ---

I confirm that it also happens if you omit steps 3,4,5,6.

--- Additional comment from Miguel Angel Ajo on 2014-03-24 03:34:40 EDT ---

Please, this is an important bugfix we need for Thu 2014-04-03 , when we dev freeze RHOS 4.0 A4. Without this fix high availability will have severe problems.

--- Additional comment from Ofer Blaut on 2014-04-22 05:21:41 EDT ---

Tested on iproute-2.6.32-130.el6ost.netns.3.x86_64
using steps 1,2,7,8

--- Additional comment from errata-xmlrpc on 2014-05-29 16:00:04 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.

http://rhn.redhat.com/errata/RHBA-2014-0576.html

Comment 1 Tsuyoshi Nagata 2014-12-12 07:22:11 UTC
the iproute-2.6.32-130.el6ost.netns.2 in the OpenStack icehouse repo.
https://repos.fedorapeople.org/repos/openstack/openstack-icehouse/epel-6/iproute-2.6.32-130.el6ost.netns.2.src.rpm

I need same solution as 130.el6ost.netns.3 .

Comment 6 Chandan Kumar 2016-05-19 15:57:08 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.