Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ceph.conf: enable logging for ceph clients #608

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 20, 2021

  1. ceph.conf: enable logging for ceph clients

    Enable 'log to syslog' and 'err to stderr' for ceph clients.
    
    Currently the default configuration disables "log to syslog" for ceph
    primarily targeting the ceph OSD units which log to files in
    /var/log/ceph instead. However this value is also used by ceph clients
    and as a result even with an error a ceph client such as libvirt/qemu
    will not log errors *anywhere* making issues such as failure to connect
    to a ceph cluster or invalid keyrings difficult to diagnose. Hence we
    always enable 'log to syslog' for ceph clients.
    
    We could alternatively enable log to a file, however, there are apparmor
    and permissions issues that mean access to /var/log/ceph is not
    guaranteed and in some cases multiple PIDs may write to this file
    creating many different files so syslog seems like the best choice.
    (Reference: juju#204)
    
    Also enable 'err to stderr' which it makes it more likely the error is
    surfaced in other important locations such as
    /var/log/libvirt/qemu/instance-*.log and on the command line.
    
    Partial-Bug: #1786874
    lathiat committed May 20, 2021
    Configuration menu
    Copy the full SHA
    e950c46 View commit details
    Browse the repository at this point in the history