Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hardware-detect fails on ppc64le due to KeyError #80

Closed
tbreeds opened this issue Apr 2, 2019 · 1 comment
Closed

hardware-detect fails on ppc64le due to KeyError #80

tbreeds opened this issue Apr 2, 2019 · 1 comment
Assignees
Labels
bug multi-architecture Issues that impact non x86_64 systems

Comments

@tbreeds
Copy link
Collaborator

tbreeds commented Apr 2, 2019

Vendor ID isn't in the lscpu output:

[root@ibm-p9wr-13 ~]# LANG=en_US.UTF-8 lscpu -x
Architecture:        ppc64le
Byte Order:          Little Endian
CPU(s):              144
On-line CPU(s) mask: ffffffffffffffffffffffffffffffffffff
Thread(s) per core:  4
Core(s) per socket:  18
Socket(s):           2
NUMA node(s):        6
Model:               2.2 (pvr 004e 1202)
Model name:          POWER9, altivec supported
CPU max MHz:         3800.0000
CPU min MHz:         2300.0000
L1d cache:           32K
L1i cache:           32K
L2 cache:            512K
L3 cache:            10240K
NUMA node0 CPU(s):   ffffffffffffffffff
NUMA node8 CPU(s):   ffffffffffffffffff000000000000000000
NUMA node252 CPU(s): 0
NUMA node253 CPU(s): 0
NUMA node254 CPU(s): 0
NUMA node255 CPU(s): 0

Which causes

[root@ibm-p9wr-13 ~]# hardware-detect
/bin/sh: cli64: command not found
Info: detect_areca: No controller found
Cannot find megacli on the system
read_smart: Reading S.M.A.R.T information on /dev/sdb
read_smart_ata: Found S.M.A.R.T information on /dev/sdb
read_smart: Reading S.M.A.R.T information on /dev/sda
read_smart_ata: Found S.M.A.R.T information on /dev/sda
connect: Connection refused 
Failed to connect to lldpad - clif_open: Connection refused
connect: Connection refused
Failed to connect to lldpad - clif_open: Connection refused
connect: Connection refused
Failed to connect to lldpad - clif_open: Connection refused
connect: Connection refused
Failed to connect to lldpad - clif_open: Connection refused
connect: Connection refused
Failed to connect to lldpad - clif_open: Connection refused
connect: Connection refused
Failed to connect to lldpad - clif_open: Connection refused
connect: Connection refused
Failed to connect to lldpad - clif_open: Connection refused
connect: Connection refused
Failed to connect to lldpad - clif_open: Connection refused
connect: Connection refused
Failed to connect to lldpad - clif_open: Connection refused
connect: Connection refused
Failed to connect to lldpad - clif_open: Connection refused
Traceback (most recent call last):
  File "/usr/bin/hardware-detect", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python3.6/site-packages/hardware/detect.py", line 997, in main
    _main(options)
  File "/usr/lib/python3.6/site-packages/hardware/detect.py", line 924, in _main
    if not detect_system(hrdw):
  File "/usr/lib/python3.6/site-packages/hardware/detect.py", line 666, in detect_system
    get_cpus(hw_lst)
  File "/usr/lib/python3.6/site-packages/hardware/detect.py", line 725, in get_cpus
    processor), 'vendor', lscpu['Vendor ID']))
KeyError: 'Vendor ID'
[root@ibm-p9wr-13 ~]# 
@tbreeds tbreeds self-assigned this Apr 2, 2019
@tbreeds tbreeds added bug multi-architecture Issues that impact non x86_64 systems labels Apr 2, 2019
@tbreeds
Copy link
Collaborator Author

tbreeds commented Apr 10, 2019

I clearly messed something up as I expected the merge of #81 to close this

@tbreeds tbreeds closed this as completed Apr 10, 2019
openstack-gerrit pushed a commit to openstack/ironic-python-agent that referenced this issue Apr 15, 2019
hardware had a bug in ppc64le (and a slightly different bug on aarch64)
this creates a regression and means that introspection on those
architectures fail.

Update the minimum required version to 0.20.1 to get the bugfix

Change-Id: I583dd9f164eae33f7c8cac4505df76e57415aa93
See: redhat-cip/hardware#80
openstack-gerrit pushed a commit to openstack/openstack that referenced this issue Apr 15, 2019
* Update ironic-python-agent from branch 'master'
  - Update minimum hardware version
    
    hardware had a bug in ppc64le (and a slightly different bug on aarch64)
    this creates a regression and means that introspection on those
    architectures fail.
    
    Update the minimum required version to 0.20.1 to get the bugfix
    
    Change-Id: I583dd9f164eae33f7c8cac4505df76e57415aa93
    See: redhat-cip/hardware#80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug multi-architecture Issues that impact non x86_64 systems
Projects
None yet
Development

No branches or pull requests

1 participant