telemetry-tempest-plugin: aodh tempest test fails when running with python3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Aodh |
New
|
Undecided
|
yatin |
Bug Description
aodh tempest tests failed on python3 with below Error, Detected while testing python3 with Fedora in [1]:-
ft1.1: setUpClass (telemetry_
File "/usr/lib/
six.
File "/usr/lib/
raise value
File "/usr/lib/
cls.
File "/usr/lib/
gnocchi_
File "/usr/lib/
type=
File "/usr/lib/
body = self.deserializ
File "/usr/lib/
return json.loads(
TypeError: a bytes-like object is required, not 'str'
The "body" in Traceback contains byte object, and replace do not work with it, need to fix it to work with both python2 and python3.
Simple reproducer:- python3 -c "a=b'abc'; a.replace('a','x')"
Fix: python3 -c "a=b'abc'; a.decode(
Changed in aodh: | |
assignee: | nobody → yatin (yatinkarel) |
Fix Proposed to branch: master /review. openstack. org/#/c/ 627401/
Review: https:/