]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: describe libvirt client logging 10542/head
authorKen Dreyer <kdreyer@redhat.com>
Tue, 2 Aug 2016 15:30:10 +0000 (09:30 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 4 Aug 2016 18:30:24 +0000 (12:30 -0600)
Describe how to configure logging and the admin socket for debugging RBD
libvirt clients.

Thanks to Jason Dillman <jdillama@redhat.com> on ceph-devel for this
information.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
doc/rbd/libvirt.rst

index 9a8ad5784112b0a8f7f792486c4abc43a32414e0..b0a3dbda3c7ba5ac5b296a9a4edf8411840baf78 100644 (file)
@@ -95,6 +95,18 @@ To configure Ceph for use with ``libvirt``, perform the following steps:
    **NOTE:** You can also use `rbd create`_ to create an image, but we
    recommend ensuring that QEMU is working properly.
 
+.. tip:: Optionally, if you wish to enable debug logs and the admin socket for
+   this client, you can add the following section to ``/etc/ceph/ceph.conf``::
+
+       [client.libvirt]
+       log file = /var/log/ceph/qemu-guest-$pid.log
+       admin socket = /var/run/ceph/$cluster-$type.$id.$pid.$cctid.asok
+
+   The ``client.libvirt`` section name should match the cephx user you created
+   above. If SELinux or AppArmor is enabled, note that this could prevent the
+   client process (qemu via libvirt) from writing the logs or admin socket to
+   the destination locations (``/var/log/ceph`` or ``/var/run/ceph``).
+
 
 
 Preparing the VM Manager