Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1717383

Summary: AttributeError: 'USBNetDevice' object has no attribute 'name' when starting redfish-finder service [rhel-8.0.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: Oneata Mircea Teodor <toneata>
Component: redfish-finderAssignee: Neil Horman <nhorman>
Status: CLOSED ERRATA QA Contact: Rachel Sibley <rasibley>
Severity: high Docs Contact:
Priority: high    
Version: 8.0CC: ahuang12, bhu, core-kernel-mgr, jkachuck, nhorman, rasibley, Smahmoud, tbowling, toneata
Target Milestone: rcKeywords: ZStream
Target Release: 8.1Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1687111 Environment:
Last Closed: 2019-10-02 14:30:17 UTC Type: Bug
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: 1687111    
Bug Blocks: 1660905, 1666894, 1671421    

Comment 4 Neil Horman 2019-06-26 16:51:22 UTC
ok, so this is a request for 8.0 zstream?  i ask because the target release is for 8.1.  Also, I thought z-stream bugs are supposed to be created automatically by setting the zstream flag in the bug that fixed the issue for y-stream and having that get aproved.  This seems like its going out of process

Comment 8 Rachel Sibley 2019-09-25 16:24:50 UTC
Verified as fixed with z-stream build, redfish-finder service starts successfully

Before:
================
~]# rpm -q redfish-finder
redfish-finder-0.2-1.el8.noarch

~]#  systemctl start redfish-finder
Job for redfish-finder.service failed because the control process exited with error code.
See "systemctl status redfish-finder.service" and "journalctl -xe" for details.

~]# systemctl status redfish-finder
● redfish-finder.service - Redfish host api discovery service
   Loaded: loaded (/usr/lib/systemd/system/redfish-finder.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2019-09-25 12:09:28 EDT; 13s ago
  Process: 18508 ExecStart=/usr/bin/redfish-finder (code=exited, status=1/FAILURE)
 Main PID: 18508 (code=exited, status=1/FAILURE)

Sep 25 12:09:28  redfish-finder[18508]:   File "/usr/bin/redfish-finder", line 453, in main
Sep 25 12:09:28  redfish-finder[18508]:     conn = nmConnection(smbios_info.device)
Sep 25 12:09:28  redfish-finder[18508]:   File "/usr/bin/redfish-finder", line 350, in __init__
Sep 25 12:09:28  redfish-finder[18508]:     self.cmdlinedown = "nmcli con down id " + self.ifc.getifcname()
Sep 25 12:09:28  redfish-finder[18508]:   File "/usr/bin/redfish-finder", line 50, in getifcname
Sep 25 12:09:28  redfish-finder[18508]:     return self.name
Sep 25 12:09:28  redfish-finder[18508]: AttributeError: 'USBNetDevice' object has no attribute 'name'
Sep 25 12:09:28  systemd[1]: redfish-finder.service: Main process exited, code=exited, status=1/FAILURE
Sep 25 12:09:28  systemd[1]: redfish-finder.service: Failed with result 'exit-code'.
Sep 25 12:09:28  systemd[1]: Failed to start Redfish host api discovery service.

After:
=================
~]# rpm -q redfish-finder
redfish-finder-0.3-1.el8_0.noarch

~]#  systemctl stop redfish-finder
~]#  systemctl start redfish-finder
~]#  systemctl status redfish-finder
● redfish-finder.service - Redfish host api discovery service
   Loaded: loaded (/usr/lib/systemd/system/redfish-finder.service; disabled; vendor preset: disabled)
   Active: active (exited) since Wed 2019-09-25 12:21:25 EDT; 4s ago
  Process: 19757 ExecStart=/usr/bin/redfish-finder (code=exited, status=0/SUCCESS)
 Main PID: 19757 (code=exited, status=0/SUCCESS)

Sep 25 12:21:25  redfish-finder[19757]: Error: no active connection provided.
Sep 25 12:21:25  redfish-finder[19757]: Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/A>
Sep 25 12:21:25  redfish-finder[19757]: redfish-finder: Getting dmidecode info
Sep 25 12:21:25  redfish-finder[19757]: redfish-finder: Building NetworkManager connection info
Sep 25 12:21:25  redfish-finder[19757]: redfish-finder: Obtaining OS config info
Sep 25 12:21:25  redfish-finder[19757]: redfish-finder: Converting SMBIOS Host Config to NetworkManager Connection info
Sep 25 12:21:25  redfish-finder[19757]: redfish-finder: Applying NetworkManager connection configuration changes
Sep 25 12:21:25  redfish-finder[19757]: redfish-finder: Adding redfish host info to OS config
Sep 25 12:21:25  redfish-finder[19757]: redfish-finder: Done, BMC is now reachable via hostname redfish-localhost
Sep 25 12:21:25  systemd[1]: Started Redfish host api discovery service.

Comment 10 errata-xmlrpc 2019-10-02 14:30:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2956