Bug 1729237

Summary: python3 issue in hardware-detect for RHEL8/OSP15
Product: Red Hat OpenStack Reporter: Alistair Tonner <atonner>
Component: python-hardwareAssignee: Riccardo Pittau <rpittau>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: medium Docs Contact:
Priority: medium    
Version: 15.0 (Stein)CC: atonner, bfournie, hbrock, jslagle, mburns, rpittau, sclewis
Target Milestone: z2Keywords: Triaged, ZStream
Target Release: 15.0 (Stein)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-hardware-0.22.1-0.20191202160440.bfd94c3.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-05 12:02:11 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 Alistair Tonner 2019-07-11 16:24:54 UTC
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.

Comment 6 Bob Fournier 2019-09-10 19:55:17 UTC
Fix merged 8/6, moving to POST.

Comment 10 errata-xmlrpc 2020-03-05 12:02:11 UTC
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