Bug 481557
| Summary: | ifdown of vlan iface which is a bridge member, does not take vlan iface down | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Dan Kenigsberg <danken> | ||||
| Component: | initscripts | Assignee: | initscripts Maintenance Team <initscripts-maint-list> | ||||
| Status: | CLOSED ERRATA | QA Contact: | BaseOS QE <qe-baseos-auto> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 5.3 | CC: | apevec, harald, mvadkert, notting, ovirt-maint | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2009-09-02 11:13:47 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: | |||||||
| Attachments: |
|
||||||
Looks OK. initscripts-8.86.1-1 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/initscripts-8.86.1-1 initscripts-8.86.2-1 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/initscripts-8.86.2-1 initscripts-8.86.3-1 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report. Please test the erratum candidate: http://people.redhat.com/harald/downloads/initscripts/initscripts-8.45.26.1.el5/ Can't reproduce this bug with initscripts-8.45.25-1.el5 and bridge-utils-1.1-2:
[root@intel-d3c4702-01 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0.7
DEVICE=eth0.7
ONBOOT=yes
VLAN=yes
BOOTPROTO=none
BRIDGE=br0
[root@intel-d3c4702-01 ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge
ONBOOT=yes
GATEWAYDEV=none
[root@intel-d3c4702-01 ~]# service network restart
Shutting down interface br0: [ OK ]
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... done. [ OK ]
Bringing up interface eth0.7: [ OK ]
Bringing up interface br0: [ OK ]
[root@intel-d3c4702-01 ~]# ifconfig eth0.7
eth0.7 Link encap:Ethernet HWaddr 00:13:20:F3:F0:C5
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:18540 (18.1 KiB)
[root@intel-d3c4702-01 ~]# ifdown eth0.7
[root@intel-d3c4702-01 ~]# ifconfig eth0.7
eth0.7 Link encap:Ethernet HWaddr 00:13:20:F3:F0:C5
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:18540 (18.1 KiB)
The device is down, failed to reproduce, any idea if anything went wrong?
(In reply to comment #9) > The device is down, failed to reproduce, any idea if anything went wrong? what went wrong is my liberal use of the terms 'up' and 'down'. if you define eth0.7 with no relation to any bridge, bring it up, and finally ifdown, the vlan interface is removed. not shown at all by ifconfig. this is in contrast to what used to be the case if eth0.7 was enslaved to a bridge: eth0.7 still exists after ifdown. added RHTS test CoreOS/initscripts/Regression/bz481557-ifdown-does-not-take-vlan-down An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-1344.html |
Created attachment 329973 [details] continue ifdow after iface is removed from bridge Description of problem: if a vlan device (say eth0.7) is a member of a bridge (say br0), ifdown eth0.7 removes eth0.7 from br0, but does not take eth0.7 interface down. To do that, you have to manually vconfig rem eth0.7. Version-Release number of selected component (if applicable): 8.45.25-1.el5 (but also in Fedora's initscripts-8.86-1) How reproducible: always. Steps to Reproduce: 1. in /etc/sysconfig/network-scripts/ifcfg-eth0.7 have DEVICE=eth0.7 ONBOOT=yes VLAN=yes BOOTPROTO=none BRIDGE=br0 2. in /etc/sysconfig/network-scripts/ifcfg-br0 DEVICE=br0 TYPE=Bridge ONBOOT=yes GATEWAYDEV=none 3. service network restart 4. ifdown eth0.7 Actual results: ifconfig eth0.7 showing it's still up Expected results: eth0.7 down. Additional info: the reason for this is that /etc/sysconfig/network-scripts/ifdown stops all processing after it disconnected eth0.7 from br0.