Bug 682366

Summary: assumes all ethernet devices are named ethX
Product: Red Hat Enterprise Linux 6 Reporter: Bill Nottingham <notting>
Component: mysqlAssignee: Michal Schorm <mschorm>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: low    
Version: 6.1CC: byte, databases-maint, hhorak, praiskup, psklenar, rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 682365 Environment:
Last Closed: 2017-04-10 08:22:54 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:
Bug Depends On: 682365    
Bug Blocks: 682269, 947775, 1070830, 1159820    

Description Bill Nottingham 2011-03-05 00:13:46 UTC
+++ This bug was initially created as a clone of Bug #682365 +++

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.

my_gethwaddr.c:

  strnmov(ifr.ifr_name, "eth0", sizeof(ifr.ifr_name) - 1);

  do
  {
    if (ioctl(fd, SIOCGIFHWADDR, &ifr) >= 0)
    {
      memcpy(to, &ifr.ifr_hwaddr.sa_data, ETHER_ADDR_LEN);
      res= memcmp(to, zero_array, ETHER_ADDR_LEN) ? 0 : 1;
    }
  } while (res && (errno == 0 || errno == ENODEV) && ifr.ifr_name[3]++ < '6');

Now, since this is only used to initialize the UUID (afaict), and there is fallback code for that, it may not be critical to fix this. Filing for completeness.

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

mysql-5.5.8

How reproducible:

By inspection.

Comment 2 RHEL Program Management 2011-03-05 00:38:26 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. 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. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 3 Tom Lane 2012-02-14 17:37:03 UTC
This has been dealt with in Fedora, so will show up in RHEL7.  Do we really need to fix it in RHEL6?

Comment 4 Honza Horak 2013-10-18 08:21:43 UTC
Just FTR, MariaDB upstream used a bit different approach as a fix than we did in Bug #682365, so in case we're gonna fix it for RHEL-6, we should look at the MariaDB's solution as well.

http://bazaar.launchpad.net/~maria-captains/maria/5.5/view/head:/mysys/my_gethwaddr.c#L85