Bug 684322

Summary: /sbin/ifdown fails for interfaces connected to bridge devices when NetworkManager is running
Product: Red Hat Enterprise Linux 6 Reporter: Laine Stump <laine>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: low    
Version: 6.1CC: dallan, dcbw, jyang, laine, notting, psimerda, rkhan, vbian, zpeng
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 670154 Environment:
Last Closed: 2013-02-19 17:58:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 2 RHEL Program Management 2011-04-04 01:54:48 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 3 RHEL Program Management 2011-10-07 15:59:27 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 4 Dan Williams 2013-02-19 17:58:14 UTC
Interfaces taken out of the control of NM should be unmanaged by NM by writing NM_CONTROLLED=no to an ifcfg file that contains the HWADDR of the interface, by whatever tool takes control of that interface.

Comment 5 Laine Stump 2013-02-19 21:59:30 UTC
Keep in mind that this bug was filed in the context of RHEL6, where NM is supposed to ignore all bridge, bond, and vlan devices *and* the ethernet devices attached to bridges/bonds. Nobody has any desire to take these devices out of the control of NM, but this particular version of NM is unable to control them (and has no method of informing us of this so that we could selectively decide if we needed to set some variable).

The problem described here is that NM believes that it isn't managing the device, while the shell scripts behind /sbin/ifdown think that it is, the result being that neither path in the code (either the "do it with nmcli" or the "do it with ifconfig" form) is taken. (I just checked on my RHEL6 machine and this problem still exists).

Note that neither netcf nor libvirt has ever wanted to explicitly exclude NetworkManager from managing the interfaces it creates; they do nothing that  would preclude NM management of the device once that was supported, so don't want to close that door. It doesn't make sense for us to explicitly add a setting saying "don't touch this device", when NM can already understand from the rest of the config that it is unable to deal with this device anyway.

I had thought that at one time NM would notice when an ethernet device has "BRIDGE=xxx" in its ifcfg, and from then on ignore that device just as if it had NM_CONTROLLED=no (and actually I remember it working this way - perhaps it was in a Fedora release?)