wrapper.py fails if no /dev/log exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.rootwrap |
Fix Released
|
Undecided
|
Thierry Carrez |
Bug Description
Dear Stackers,
Apparently, a nice little bug is present in the wrapper.py, preventing things to go smooth in case journald crashed its "/dev/log" socket (systemctl restart systemd-
Apparently, there's no try/catch for the logging, and this results in the following stack-trace being issued:
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
config.
File "/usr/lib/
facility=
File "/usr/lib64/
self.
File "/usr/lib64/
self.
File "/usr/lib64/
return getattr(
socket.error: [Errno 2] No such file or directory
It might be good to set some catcher in order to either allow the command to go through without logging, or at least report "hey you need to restart journald socket".
The current situation might lead in a complete locking of nova functions due to a peak in the errors, that might deactivate nova-compute on said node… Not a really good situation, to be honnest :(.
Thank you in advance!
Cheers,
C.
Fix proposed to branch: master /review. openstack. org/522567
Review: https:/