Open killermoehre opened 3 weeks ago
@killermoehre We need run/systemd/journal/socket
in all OpenStack service containers?
@killermoehre We need
run/systemd/journal/socket
in all OpenStack service containers?
Yes, because that's where the messages are logged to.
Alternative would be to run full systemd in the container instead oft the simple init process.
oslo.log
has support to log intosystemd-journald
, which adds more metadata and a unified log interface.For this to work,
systemd-python
has to be available inside the container,/run/systemd/journal/socket
needs to be bind-mounted inside the container andoslo.log
needs aBy logging into the journal we gain structured, easy-to-ship logs and don't have to hassle with custom log rotation.
The same is true for
ceph
, which logs already tosd-journald
if possible.