Bug #45245
closedcephadm: print iscsi container's log to stdout/stderr
0%
Description
rbd-target-api's log lives in /var/log/rbd-target-api/rbd-target-api.log inside container.
We should print the log to stdout to allow users to get the log via podman and journald.
Updated by Matthew Oliver almost 4 years ago
- Assignee set to Matthew Oliver
Ceph-iscsi logging is hardcoded to go point to /dev/log, I don't think ceph-iscsi has an option to log to stderr. But I can take a look and maybe patch it. But if that is the case we need to raise a bug/feature for ceph-iscsi.
Let me take a look.
Updated by Matthew Oliver almost 4 years ago
OK so if it's just needing access to the logs via something like journald and journalctl then that should currently work. We should be writing logs to /dev/log which is mounted into the container. If it isn't then maybe we have another permissions issue.
^^ I say that, because I can see the logs via journalctl on my host, but I am running it as a --priviliged container, as this is the same env I was testing stuff for the other bug.
If we need to have it logging to stderr, then I've got some code that should work that I can push up as a PR the ceph-iscsi if that's what we need. Just want to confirm before we do anything.
Updated by Sebastian Wagner almost 4 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 35013
Updated by Sebastian Wagner almost 4 years ago
- Status changed from Fix Under Review to Resolved
- Target version set to v15.2.4