Open amanda11 opened 4 years ago
A similar problems was seen on all messages in the st2 logs on python 3, and the fix was https://github.com/StackStorm/st2/pull/5058. It is therefore probable that it is a similar problem whereby a logger method that is over-ridden has different return tuples for python3 and python 2.
SUMMARY
Error messages generated by sensor result in "unknown file" instead of module names on python 3 systems, e.g.
2020-10-15 08:22:43,653 139699041297216 ERROR (unknown file) [-] File "/opt/stackstorm/packs/openstack/sensors/messaging_sensor.py", line 52, in poll
STACKSTORM VERSION
3.3dev and 3.2.0
OS, environment, install method
Ubuntu 18.04, Single node install from ansible.
Steps to reproduce the problem
One easy way to get an exception from sensor:
Expected Results
Log the exception message in the test should not report "unknown file" for module.
Actual Results
"unknown file" is reported on the ERROR lines, eg