How to increase debugging level for RBD logs in OpenStack services like Glance, Cinder and Nova?

Solution Verified - Updated

Environment

  • Red Hat Open Stack Platform 5, 6. 7, 8. 9, 10.
  • Red Hat Ceph Storage 1.2.3, 1.3 , 2.0.

Issue

  • How to increase debugging level for RBD logs in OpenStack services like Glance, Cinder and Nova?

Resolution

  • Check if the Ceph cluster is in a healthy status, using :
# ceph -s
  • If the cluster is in a HEALTHY state, add the following in the [client] section in /etc/ceph/ceph.conf:
debug ms = 1
debug rbd = 20
log to file = true
log file = /var/log/[openstack service name]/ceph-$pid.log
  • As an example, for the 'glance' service , add the following in /etc/ceph/ceph.conf:
debug ms = 1
debug rbd = 20
log to file = true
log file = /var/log/glance/ceph-$pid.log
  • This should increase the log levels, and the logs should be present in /var/log/[openstack service name]/ceph-{PID}.log.
SBR
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.