Bug 1709663
Summary: | CPU benchmarking fails with error "a bytes-like object is required, not 'str'" | |||
---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Dan Macpherson <dmacpher> | |
Component: | python-hardware | Assignee: | 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, pkesavar, rpittau | |
Target Milestone: | beta | Keywords: | Triaged | |
Target Release: | 15.0 (Stein) | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | python-hardware-0.20.2-0.20190618010411.1701537.el8ost | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1753653 (view as bug list) | Environment: | ||
Last Closed: | 2019-09-21 11:21:58 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
Dan Macpherson
2019-05-14 06:36:55 UTC
confirmed also upstream, can reproduce with Python 3.6 and 3.7 this is due to the fact that the output of the commands in Python 3.x is considered bytes and not text we'll have a fix ASAP Fix has been merged upstream Puddle: RHOS_TRUNK-15.0-RHEL-8-20190708.n.2 Kernel: 4.18.0-80.4.2.el8_0.x86_64 python3-hardware 0.20.2-0.20190618010411.1701537.el8ost rhelosp-15.0-trunk python3-hardware-detect 0.20.2-0.20190618010411.1701537.el8ost rhelosp-15.0-trunk -- This now functions correctly without the listed error. (manully installed code, ran command both as user and as root on undercloud and compute node) Hi folks, I retested the CPU benchmarking and it works, but it looks like the memory benchmark has the same issue: Memory Performance: 8 logical CPU to test (ETA: 350 seconds) Benchmarking memory @1K from CPU 0 for 5 seconds (1 threads) 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 981, in main bm_mem.mem_perf(hrdw) File "/usr/lib/python3.6/site-packages/hardware/benchmark/mem.py", line 152, in mem_perf block_size, 1, cpu_nb) File "/usr/lib/python3.6/site-packages/hardware/benchmark/mem.py", line 91, in run_sysbench_memory_threaded if "transferred" in line: TypeError: a bytes-like object is required, not 'str' Should I create a new BZ for that issue? Dan - yes, can you create a new BZ for this? Created a similar BZ for the memory benchmarking: https://bugzilla.redhat.com/show_bug.cgi?id=1753653 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/RHEA-2019:2811 |