Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pyghmi for openSUSE:Factory checked in at 2026-09-08 16:55:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyghmi (Old) and /work/SRC/openSUSE:Factory/.python-pyghmi.new.1265 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyghmi" Tue Sep 8 16:55:39 2026 rev:31 rq:1376152 version:1.6.19 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyghmi/python-pyghmi.changes 2026-07-07 21:03:54.275721177 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyghmi.new.1265/python-pyghmi.changes 2026-09-08 16:57:57.621596961 +0200 @@ -1,0 +2,7 @@ +Mon Sep 7 09:53:39 UTC 2026 - Dirk Müller <[email protected]> + +- update to 1.6.19: + * Enhance SEL handling + * xFix missing params to get_cpu_inventory function + +------------------------------------------------------------------- Old: ---- pyghmi-1.6.18.tar.gz New: ---- pyghmi-1.6.19.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyghmi.spec ++++++ --- /var/tmp/diff_new_pack.IRrlRZ/_old 2026-09-08 16:57:58.691641555 +0200 +++ /var/tmp/diff_new_pack.IRrlRZ/_new 2026-09-08 16:57:58.693641639 +0200 @@ -17,7 +17,7 @@ Name: python-pyghmi -Version: 1.6.18 +Version: 1.6.19 Release: 0 Summary: General Hardware Management Initiative (IPMI and others) License: Apache-2.0 ++++++ pyghmi-1.6.18.tar.gz -> pyghmi-1.6.19.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyghmi-1.6.18/ChangeLog new/pyghmi-1.6.19/ChangeLog --- old/pyghmi-1.6.18/ChangeLog 2026-06-15 16:42:22.000000000 +0200 +++ new/pyghmi-1.6.19/ChangeLog 2026-07-13 16:04:45.000000000 +0200 @@ -1,6 +1,12 @@ CHANGES ======= +1.6.19 +------ + +* Enhance SEL handling +* xFix missing params to get\_cpu\_inventory function + 1.6.18 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyghmi-1.6.18/PKG-INFO new/pyghmi-1.6.19/PKG-INFO --- old/pyghmi-1.6.18/PKG-INFO 2026-06-15 16:42:23.165653000 +0200 +++ new/pyghmi-1.6.19/PKG-INFO 2026-07-13 16:04:45.488546100 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: pyghmi -Version: 1.6.18 +Version: 1.6.19 Summary: Python General Hardware Management Initiative (IPMI and others) Home-page: http://github.com/openstack/pyghmi/ Author: Jarrod Johnson diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyghmi-1.6.18/pyghmi/ipmi/events.py new/pyghmi-1.6.19/pyghmi/ipmi/events.py --- old/pyghmi-1.6.18/pyghmi/ipmi/events.py 2026-06-15 16:41:31.000000000 +0200 +++ new/pyghmi-1.6.19/pyghmi/ipmi/events.py 2026-07-13 16:04:12.000000000 +0200 @@ -516,15 +516,28 @@ selentry = bytearray(origselentry) event = {} event['record_id'] = struct.unpack_from('<H', origselentry[:2])[0] - if selentry[2] == 2 or (0xc0 <= selentry[2] <= 0xdf): + if selentry[2] < 0xe0 and len(selentry) >= 7: # Either standard, or at least the timestamp is standard event['timecode'] = struct.unpack_from('<I', buffer(selentry[3:7]) )[0] - if selentry[2] == 2: # ipmi defined standard format - self._decode_standard_event(selentry[7:], event) + if selentry[2] < 0xc0: # ipmi defined standard format + try: + self._decode_standard_event(selentry[7:], event) + except Exception: + for key in list(event): + if key not in ('record_id', 'timecode'): + del event[key] + event['oemdata'] = selentry[3:] elif 0xc0 <= selentry[2] <= 0xdf: event['oemid'] = selentry[7:10] event['oemdata'] = selentry[10:] + elif selentry[2] == 0xf0: + # Linux kernel panic + event['event'] = 'Linux kernel panic: {0}'.format( + selentry[5:16].partition(b'\x00')[0].decode( + 'utf-8', 'replace')) + event['severity'] = pygconst.Health.Critical + return event elif selentry[2] >= 0xe0: # In this class of OEM message, all bytes are OEM, interpretation # is wholly left up to the OEM layer, using the OEM ID of the BMC diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyghmi-1.6.18/pyghmi/ipmi/oem/generic.py new/pyghmi-1.6.19/pyghmi/ipmi/oem/generic.py --- old/pyghmi-1.6.18/pyghmi/ipmi/oem/generic.py 2026-06-15 16:41:31.000000000 +0200 +++ new/pyghmi-1.6.19/pyghmi/ipmi/oem/generic.py 2026-07-13 16:04:12.000000000 +0200 @@ -140,7 +140,9 @@ to apply some transform to some field to suit their conventions. """ event['oem_handler'] = None - evdata = event['event_data_bytes'] + evdata = event.get('event_data_bytes') + if not evdata: + return if evdata[0] & 0b11000000 == 0b10000000: event['oem_byte2'] = evdata[1] if evdata[0] & 0b110000 == 0b100000: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyghmi-1.6.18/pyghmi/redfish/oem/lenovo/smm3.py new/pyghmi-1.6.19/pyghmi/redfish/oem/lenovo/smm3.py --- old/pyghmi-1.6.18/pyghmi/redfish/oem/lenovo/smm3.py 2026-06-15 16:41:31.000000000 +0200 +++ new/pyghmi-1.6.19/pyghmi/redfish/oem/lenovo/smm3.py 2026-07-13 16:04:12.000000000 +0200 @@ -101,15 +101,16 @@ url = '/redfish/v1/Chassis/chassis1/Oem/Lenovo/Nodes/{}'.format(nodeid) self._do_web_request(url, parms, method='PATCH') - def _get_cpu_inventory(self, withids=False): + def _get_cpu_inventory(self, onlynames=False, withids=False, urls=None): # Empty generator: no CPU inventory items for this OEM handler. yield from () - def _get_mem_inventory(self, withids=False): + + def _get_mem_inventory(self, onlyname=False, withids=False, urls=None): # Empty generator: no memory inventory items for this OEM handler. yield from () - def _get_adp_inventory(self, withids=False, urls=None): + def _get_adp_inventory(self, onlyname=False, withids=False, urls=None): # Empty generator: no adapter inventory items for this OEM handler. yield from () diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyghmi-1.6.18/pyghmi/redfish/oem/lenovo/xcc.py new/pyghmi-1.6.19/pyghmi/redfish/oem/lenovo/xcc.py --- old/pyghmi-1.6.18/pyghmi/redfish/oem/lenovo/xcc.py 2026-06-15 16:41:31.000000000 +0200 +++ new/pyghmi-1.6.19/pyghmi/redfish/oem/lenovo/xcc.py 2026-07-13 16:04:12.000000000 +0200 @@ -1893,7 +1893,7 @@ for umd in adp.get('unmanagedDisks', []): yield 'Disk {0}'.format(umd['slotNo']), bdata - def _get_cpu_inventory(self): + def _get_cpu_inventory(self, onlynames=False, withids=False, urls=None): procdata = self.get_cached_data('lenovo_cached_proc') if not procdata: if self.wc: @@ -1910,7 +1910,7 @@ yield ('Processor {0}'.format(proc['processors_name']), procinfo) - def _get_mem_inventory(self): + def _get_mem_inventory(self, onlyname=False, withids=False, urls=None): memdata = self.get_cached_data('lenovo_cached_memory') if not memdata: if self.wc: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyghmi-1.6.18/pyghmi.egg-info/PKG-INFO new/pyghmi-1.6.19/pyghmi.egg-info/PKG-INFO --- old/pyghmi-1.6.18/pyghmi.egg-info/PKG-INFO 2026-06-15 16:42:23.000000000 +0200 +++ new/pyghmi-1.6.19/pyghmi.egg-info/PKG-INFO 2026-07-13 16:04:45.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: pyghmi -Version: 1.6.18 +Version: 1.6.19 Summary: Python General Hardware Management Initiative (IPMI and others) Home-page: http://github.com/openstack/pyghmi/ Author: Jarrod Johnson diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyghmi-1.6.18/pyghmi.egg-info/pbr.json new/pyghmi-1.6.19/pyghmi.egg-info/pbr.json --- old/pyghmi-1.6.18/pyghmi.egg-info/pbr.json 2026-06-15 16:42:23.000000000 +0200 +++ new/pyghmi-1.6.19/pyghmi.egg-info/pbr.json 2026-07-13 16:04:45.000000000 +0200 @@ -1 +1 @@ -{"git_version": "255f327", "is_release": true} \ No newline at end of file +{"git_version": "fb75c22", "is_release": true} \ No newline at end of file
