From 19c3fdc53a3d7cabca8f9510b1ff0981c926e5d2 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Tue, 2 Aug 2016 09:57:24 -0600 Subject: [PATCH] ceph-common: client settings are for libvirt Prior to this change, each ceph cluster node would end up with several "qemu-client-$pid.log" files owned by root. The [client] section would capture *all* client activity (for example the "ceph health" command, etc), not just librbd-in-qemu. Restrict this section to libvirt clients only so that we don't generate these spurious log files for other Ceph client traffic. Signed-off-by: Ken Dreyer --- roles/ceph-common/templates/ceph.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-common/templates/ceph.conf.j2 b/roles/ceph-common/templates/ceph.conf.j2 index 12370bdbe..aa383c217 100644 --- a/roles/ceph-common/templates/ceph.conf.j2 +++ b/roles/ceph-common/templates/ceph.conf.j2 @@ -15,7 +15,7 @@ max open files = {{ max_open_files }} {% if common_single_host_mode is defined %} osd crush chooseleaf type = 0 {% endif %} -[client] +[client.libvirt] admin socket = {{ rbd_client_admin_socket_path }}/$cluster-$type.$id.$pid.$cctid.asok # must be writable by QEMU and allowed by SELinux or AppArmor log file = {{ rbd_client_log_file }} # must be writable by QEMU and allowed by SELinux or AppArmor