RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 682387 - assumes all ethernet devices are named ethX
Summary: assumes all ethernet devices are named ethX
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sblim-cmpi-network
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Vitezslav Crhonek
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On: 682386
Blocks: 682269
TreeView+ depends on / blocked
 
Reported: 2011-03-05 02:37 UTC by Bill Nottingham
Modified: 2017-12-06 10:26 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 682386
Environment:
Last Closed: 2017-12-06 10:26:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch (4.26 KB, patch)
2013-05-14 09:12 UTC, Vitezslav Crhonek
no flags Details | Diff

Description Bill Nottingham 2011-03-05 02:37:35 UTC
+++ This bug was initially created as a clone of Bug #682386 +++

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.

cmpiOSBase_NetworkPortImplementsIPEndpoint.c:CMPIInstance * _assoc_get_networkPort_INST()
...
  ptr = CMGetCharPtr(name);
  if( strstr(ptr,"eth") != NULL ) { targetClass = _RefLeftClassEth; }
  else if( strstr(ptr,"tr") != NULL ) { targetClass = _RefLeftClassTr; }
  else if( strstr(ptr,"lo") != NULL ) { targetClass = _RefLeftClassLo; }
  else { goto exit; }
...

cmpiOSBase_NetworkPortImplementsIPEndpointProvider.c:CMPIStatus OSBase_NetworkPortImplementsIPEndpointProviderAssociators( CMPIAssociationMI * mi,
...
        if( strcasecmp(resultClass,_RefLeftClassEth) == 0 &&
            strstr(ptr,"eth") != NULL ) {
          _RefLeftClass = _RefLeftClassEth;
        }
        else if( strcasecmp(resultClass,_RefLeftClassTr) == 0 &&
                 strstr(ptr,"tr") != NULL ) {
          _RefLeftClass = _RefLeftClassTr;
        }
        else if( strcasecmp(resultClass,_RefLeftClassLo) == 0 &&
                 strstr(ptr,"lo") != NULL ) {
          _RefLeftClass = _RefLeftClassLo;
        }
        else { goto exit; }
...
same in
CMPIStatus OSBase_NetworkPortImplementsIPEndpointProviderAssociatorNames( CMPIAssociationMI * mi,

OSBase_CommonNetwork.c:int enum_all_netPorts( struct netPortList ** lptr ) {

...
      if(hdchk && hdchk[0]) {
        if( strstr(hdchk[0], "Ethernet") != NULL ) { type = 1; }
        if( strstr(hdchk[0], "Token Ring") != NULL ) { type = 2; }
        if( strstr(hdchk[0], "Local Loopback") != NULL ) { type = 3; }
      }
      else {
        if( strstr(port,"eth") != NULL ) { type = 1; }
        if( strstr(port,"tr")  != NULL ) { type = 2; }
        if( strstr(port,"lo")  != NULL ) { type = 3; }
      }
...
Version-Release number of selected component (if applicable):

sblim-cmpi-network-1.4.0

How reproducible:

Via code inspection.

Comment 2 RHEL Program Management 2011-03-05 02:58:34 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 Vitezslav Crhonek 2013-05-14 09:12:31 UTC
Created attachment 747567 [details]
Proposed patch

Patch still not accepted by upstream:

http://sourceforge.net/p/sblim/bugs/2217/

Comment 4 RHEL Program Management 2013-10-14 01:09:04 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 unable to address this
request at this time.

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

Comment 6 Jan Kurik 2017-12-06 10:26:59 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/


Note You need to log in before you can comment on or make changes to this bug.