Description of problem: hardware-detect -H --benchmark disk Fails with the following error: Benchmarking storage vda for 10 seconds in read mode with blocksize=1M Traceback (most recent call last): File "/bin/hardware-detect", line 10, in <module> sys.exit(main()) File "/usr/lib/python3.6/site-packages/hardware/detect.py", line 944, in main destructive=args.benchmark_disk_destructive) File "/usr/lib/python3.6/site-packages/hardware/benchmark/disk.py", line 167, in disk_perf "read", "1M", running_time, RAMP_TIME) File "/usr/lib/python3.6/site-packages/hardware/benchmark/disk.py", line 92, in run_fio if ('MYJOB-' in line) and ('pid=' in line): TypeError: a bytes-like object is required, not 'str' Version-Release number of selected component (if applicable): Red Hat Enterprise Linux release 8.0 (Ootpa) Red Hat OpenStack Platform release 15.0.0 Beta (Stein) python3-hardware-detect.noarch 0.20.2-0.20190618010411.1701537.el8ost @rhelosp-15.0 How reproducible: consistent. Steps to Reproduce: 1.connect to vm in overcloud 2. install python3-hardware-detect 3. hardware-detect -H --benchmark disk Actual results: Expected results: script should return correct results Additional info: See also: BZ# 1670606 Red Hat OpenStack python-hardware lhh As this issue was seen while verifying the above bug.
Fix merged 8/6, moving to POST.
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-2020:0710