BarbicanSecrets.create_symmetric_and_delete: TypeError: Object of type 'bytes' is not JSON serializable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
rally-openstack commit hash: 992419828496abe
With python3 create_
test scenario BarbicanSecrets
args position 0
args values:
{
"args": {
"payload": "rally_data",
"algorithm": "aes",
"bit_length": 256,
"mode": "cbc"
},
"runner": {
"times": 2,
"concurrency": 1
},
"contexts": {
"users": {
"tenants": 1,
"
}
},
"sla": {
"failure_rate": {
"max": 0
}
},
"hooks": []
}
-------
Task 5a46c709-
-------
TypeError: Object of type 'bytes' is not JSON serializable
Traceback (most recent call last):
File "/snap/
getattr(
File "/snap/
payload_
File "/snap/
return func(instance, *args, **kwargs)
File "/snap/
f = func(self, *args, **kwargs)
File "/snap/
val.store()
File "/snap/
return func(self, *args)
File "/snap/
response = self._api.
File "/snap/
return super(_HTTPClient, self).post(path, *args, **kwargs).json()
File "/snap/
return self.request(url, 'POST', **kwargs)
File "/snap/
resp = super(_HTTPClient, self).request(
File "/snap/
return self.session.
File "/snap/
kwargs['data'] = self._json.
File "/snap/
chunks = self.iterencode(o, _one_shot=True)
File "/snap/
return _iterencode(o, 0)
File "/snap/
return super(_JSONEncoder, self).default(o)
File "/snap/
o._
TypeError: Object of type 'bytes' is not JSON serializable
-------
TypeError: Object of type 'bytes' is not JSON serializable
Traceback (most recent call last):
File "/snap/
getattr(
File "/snap/
payload_
File "/snap/
return func(instance, *args, **kwargs)
File "/snap/
f = func(self, *args, **kwargs)
File "/snap/
val.store()
File "/snap/
return func(self, *args)
File "/snap/
response = self._api.
File "/snap/
return super(_HTTPClient, self).post(path, *args, **kwargs).json()
File "/snap/
return self.request(url, 'POST', **kwargs)
File "/snap/
resp = super(_HTTPClient, self).request(
File "/snap/
return self.session.
File "/snap/
kwargs['data'] = self._json.
File "/snap/
chunks = self.iterencode(o, _one_shot=True)
File "/snap/
return _iterencode(o, 0)
File "/snap/
return super(_JSONEncoder, self).default(o)
File "/snap/
o._
TypeError: Object of type 'bytes' is not JSON serializable
-------
+------
| Response Times (sec) |
+------
| Action | Min (sec) | Median (sec) | 90%ile (sec) | 95%ile (sec) | Max (sec) | Avg (sec) | Success | Count |
+------
| barbican.
| total | 0.434 | 0.472 | 0.502 | 0.506 | 0.51 | 0.472 | 0.0% | 2 |
| -> duration | 0.434 | 0.472 | 0.502 | 0.506 | 0.51 | 0.472 | 0.0% | 2 |
| -> idle_duration | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0% | 2 |
+------
Load duration: 0.953127
Full duration: 8.319369
Reviewed: https:/ /review. opendev. org/717759 /git.openstack. org/cgit/ openstack/ rally-openstack /commit/ ?id=63639762299 66b726d1fb05f75 e1b37a61d684f4
Committed: https:/
Submitter: Zuul
Branch: master
commit 6363976229966b7 26d1fb05f75e1b3 7a61d684f4
Author: Andrey Kurilin <email address hidden>
Date: Mon Apr 6 16:50:53 2020 +0300
[py3] Fix BarbicanSecrets .create_ symmetric_ and_delete
Change-Id: I81709ae6ec87cb a194945cd38859e 0f54a7482f7
Closes-Bug: #1819285