ironic-python-agent/releasenotes/notes/lshw-no-memory-bank-size-05ea71987362986e.yaml
Zane Bitter ed791d9778 Fix getting memory size in some lshw output
Due to a regression in lshw introduced by
https://github.com/lyonel/lshw/pull/60, there are some versions in the
wild that do not return sizes for memory banks <32GiB. In those cases,
work around the problem by looking at the top-level size (if available)
to find the total size. Previously we assumed that we only needed the
top-level size when there was no list of memory banks.

The issue is fixed upstream by https://github.com/lyonel/lshw/pull/65,
but the erroneous patch is still present in the lshw-B.02.19.2-5.el8
package in CentOS 8.4 and 8.5.

Change-Id: I6eb5981d28b9ae368239af0c1d0ec32ff79d95b3
Story: #2008865
Task: 42395
2021-04-29 14:41:11 -04:00

10 lines
459 B
YAML

---
fixes:
- |
The lshw package version B.02.19.2-5 on CentOS 8.4 and 8.5 contains a `bug
<https://bugzilla.redhat.com/show_bug.cgi?id=1955250>`_ that prevents the
size of individual memory banks from being reported, with the result that
the total memory size would be reported as 0 in some places. The total
memory size is now taken from lshw's total memory size output (which does
not suffer from the same problem) when available.