Bug 682368

Summary: mii-tool will only iterate over ethX interfaces
Product: Red Hat Enterprise Linux 6 Reporter: Bill Nottingham <notting>
Component: net-toolsAssignee: Jiri Popelka <jpopelka>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: urgent Docs Contact:
Priority: high    
Version: 6.1CC: asersen, azelinka, iprikryl, jpopelka, ovasik, rvokal
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: net-tools-1.60-105.el6 Doc Type: Bug Fix
Doc Text:
Unless a device name was specified on the command line, the mii-tool utility automatically checked Ethernet interfaces from eth0 to eth7. Similarly, running the mii-diag or ether-wake utility without the device name caused it to use eth0 by default. However, Red Hat Enterprise Linux 6.1 introduces the possibility to use arbitrary names for these network interfaces. Because of this, the mii-tool, mii-diag, and ether-wake utilities have been adapted to require a device name to be specified on the command line.
Story Points: ---
Clone Of: 682367 Environment:
Last Closed: 2011-05-19 14:03:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 682367    
Bug Blocks: 682269    

Description Bill Nottingham 2011-03-05 00:21:56 UTC
+++ This bug was initially created as a clone of Bug #682367 +++

Description of problem:

Network devices can have arbitrary names, and due to
http://fedoraproject.org/wiki/Features/ConsistentNetworkDeviceNaming, will have
different names in Fedora 15.

mii-tool, if passed no arguments, will only iterate across devices named ethX.

...
    /* No remaining args means show all interfaces. */
    if (optind == argc) {
        ret = 1;
        for (i = 0; i < MAX_ETH; i++) {
            sprintf(s, "eth%d", i);
            ret &= do_one_xcvr(skfd, s, 1);
        }
...
etc.


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

net-tools-1.60

How reproducible:

By inspection.

Additional info:

It does say the program is obsolete. We could just remove it?

Comment 2 Jiri Popelka 2011-03-11 10:18:29 UTC
Without any argument it just don't print anything for
device with name other than ethX.
When passing device name as argument mii-tool works as expected.

So I think this isn't a blocker/exception and therefore can be moved to 6.2

Comment 13 Jaromir Hradilek 2011-04-04 15:10:44 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Unless a device name was specified on the command line, the mii-tool utility automatically checked Ethernet interfaces from eth0 to eth7. Similarly, running the mii-diag or ether-wake utility without the device name caused it to use eth0 by default. However, Red Hat Enterprise Linux 6.1 introduces the possibility to use arbitrary names for these network interfaces. Because of this, the mii-tool, mii-diag, and ether-wake utilities have been adapted to require a device name to be specified on the command line.

Comment 14 errata-xmlrpc 2011-05-19 14:03:19 UTC
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-2011-0690.html