Thread arguments are passed as a dict of bytes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.privsep |
Fix Released
|
Undecided
|
Rodolfo Alonso |
Bug Description
Python: 3+ (not 2.x)
When using PyCharm to debug, the arguments passed to [1] are stored in a dictionary populated with bytes instead of strings. When in [2] "record" is created and updated [3], the values contained in "msg[1]" are not updated in "record"
Example of msg (in [2]):
<class 'tuple'>: (6, {b'msg': b'privsep daemon starting', b'version': b'unknown', b'project': b'unknown', b'module': b'daemon', b'lineno': 552, b'threadName': b'MainThread', b'levelno': 20, b'msecs': 759.4039440155029, b'args': (), b'exc_text': None, b'relativeCreated': 385.4489326477051, b'pathname': b'/opt/
Error:
Exception in thread privsep_reader:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/opt/stack/
self.
File "/opt/stack/
if LOG.isEnabledFo
File "/usr/lib/
if self.logger.
TypeError: unorderable types: int() >= NoneType()
References:
[1] https:/
[2] https:/
[3] https:/
Changed in oslo.privsep: | |
assignee: | nobody → Rodolfo Alonso (rodolfo-alonso-hernandez) |
description: | updated |
Fix proposed to branch: master /review. openstack. org/638216
Review: https:/