For the logfile I proposed a new charm-helpers commit here to enable 'log to syslog' and 'err to stderr' (instead of 'log to file') in ceph.conf to solve the logging issue. Full description at the link. https://github.com/juju/charm-helpers/pull/608
For the admin socket, it's more complicated, so I will do it separately. Currently /run/ceph is managed by systemd-tmpfiles /usr/lib/tmpfiles.d/ceph.conf and is creates as '0770' ceph:ceph which libvirt/qemu process cannot write to. I think probably this should switch to a world writable tmpdir like /var/log/ceph but am evaluating that change. We could potentially write to an alternative location but then the 'ceph' command wont find it automatically and we need to specify th epath manually. After making that change whatever it is there is also code in the various charms around /var/run/ceph and /run/ceph including charm code that does a chgrp to kvm (that doesn't survive a reboot) that needs cleaning up from old bugs like https://bugs.launchpad.net/charm-cinder-ceph/+bug/1779676. Also on focal /run/ceph exists in apparmor but on bionic it doesn't (see: bug #1779674) and also the charm versions of the apparmor profiles that override the packages versions might need a sync.
For the logfile I proposed a new charm-helpers commit here to enable 'log to syslog' and 'err to stderr' (instead of 'log to file') in ceph.conf to solve the logging issue. Full description at the link. /github. com/juju/ charm-helpers/ pull/608
https:/
For the admin socket, it's more complicated, so I will do it separately. Currently /run/ceph is managed by systemd-tmpfiles /usr/lib/ tmpfiles. d/ceph. conf and is creates as '0770' ceph:ceph which libvirt/qemu process cannot write to. I think probably this should switch to a world writable tmpdir like /var/log/ceph but am evaluating that change. We could potentially write to an alternative location but then the 'ceph' command wont find it automatically and we need to specify th epath manually. After making that change whatever it is there is also code in the various charms around /var/run/ceph and /run/ceph including charm code that does a chgrp to kvm (that doesn't survive a reboot) that needs cleaning up from old bugs like https:/ /bugs.launchpad .net/charm- cinder- ceph/+bug/ 1779676. Also on focal /run/ceph exists in apparmor but on bionic it doesn't (see: bug #1779674) and also the charm versions of the apparmor profiles that override the packages versions might need a sync.