Bug 1729282
Summary: | Beaker-system-scan inventories disks twice for witherspoon power9 systems. 8335-GTH (ibm,witherspoon) 8335-GTC (ibm,witherspoon) | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | sdoherty |
Component: | inventory | Assignee: | beaker-dev-list |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | develop | CC: | bpeck, cbouchar, jbastian, mastyk, pbunyan, sdoherty, tklohna |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | ppc64le | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-07-26 12:08:01 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: |
Description
sdoherty
2019-07-11 18:36:54 UTC
All testing using RHEL-8.0.0 BaseOS ppc64le https://beaker.engineering.redhat.com/jobs/3667063 https://beaker.engineering.redhat.com/jobs/3667457 This was reported a couple years ago against the Garrison POWER systems too. See bug 1493491. This patch fixes the issue. Hopefully it doesn't break other systems! [root@ibm-p9wr-07 ~]# diff -u /usr/lib/python3.6/site-packages/systemscan/main.py{.ORIG,} --- /usr/lib/python3.6/site-packages/systemscan/main.py.ORIG 2019-07-25 14:15:23.038204006 -0400 +++ /usr/lib/python3.6/site-packages/systemscan/main.py 2019-07-25 14:16:58.644141206 -0400 @@ -451,7 +451,7 @@ disklist = [] - for disk in inventory.xpath('.//node[@class="disk"]'): + for disk in inventory.xpath('.//node[@class="disk" and @id!="medium"]'): diskinfo = {} if disk.find('size') is None: continue # probably an optical drive :::::::::::: :: Before :: :::::::::::: ~]# beaker-system-scan -d ... 'Disk': {'Disks': [{'model': 'ST1000NX0313', 'phys_sector_size': 4096, 'sector_size': 512, 'size': '1000204886016'}, {'model': None, 'phys_sector_size': 512, 'sector_size': 512, 'size': '1000204886016'}, {'model': 'ST1000NX0313', 'phys_sector_size': 4096, 'sector_size': 512, 'size': '1000204886016'}, {'model': None, 'phys_sector_size': 512, 'sector_size': 512, 'size': '1000204886016'}]}, ... ::::::::::: :: After :: ::::::::::: ~]# beaker-system-scan -d ... 'Disk': {'Disks': [{'model': 'ST1000NX0313', 'phys_sector_size': 4096, 'sector_size': 512, 'size': '1000204886016'}, {'model': 'ST1000NX0313', 'phys_sector_size': 4096, 'sector_size': 512, 'size': '1000204886016'}]}, ... Patch submitted to Gerrit for review: https://gerrit.beaker-project.org/6620 |