Bug 1715914

Summary: enhance redfish finder to support parsing of multiple type 42 blocks in smbios
Product: Red Hat Enterprise Linux 8 Reporter: Neil Horman <nhorman>
Component: redfish-finderAssignee: Neil Horman <nhorman>
Status: CLOSED ERRATA QA Contact: Rachel Sibley <rasibley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.1CC: core-kernel-mgr, tbowling
Target Milestone: rc   
Target Release: 8.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 20:53:59 UTC Type: Enhancement
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:    
Bug Blocks: 1671421    

Description Neil Horman 2019-05-31 15:39:03 UTC
DMTF has recently updated the spec to allow for multiple type 42 blocks in SMBIOS.  Enhance redfish finder to parse them all and merge them

Comment 2 Neil Horman 2019-07-01 16:15:59 UTC
https://src.osci.redhat.com/rpms/redfish-finder/pull-request/1

Ready to merge when the bz is approved

Comment 5 Rachel Sibley 2019-09-25 16:37:24 UTC
Verified redfish-finder service starts successfully and entry is added to /etc/hosts

~]# rpm -q redfish-finder
redfish-finder-0.3-3.el8.noarch

~]# systemctl enable redfish-finder
Created symlink /etc/systemd/system/multi-user.target.wants/redfish-finder.service → /usr/lib/systemd/system/redfish-finder.service.

~]# 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; enabled; vendor preset: disabled)
   Active: active (exited) since Wed 2019-09-25 12:29:48 EDT; 22s ago
 Main PID: 20455 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 26213)
   Memory: 0B
   CGroup: /system.slice/redfish-finder.service

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

~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
<redacted>  redfish-localhost XCC-7X09-0123456789

Comment 7 errata-xmlrpc 2019-11-05 20:53:59 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:3351