From 68e470c6b8b271b82af6a2cb84aa61c6b5651d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 23 Feb 2015 15:28:27 +0100 Subject: [PATCH] Add RBD client logs support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The path must be writable by QEMU and allowed by SELinux or AppArmor Signed-off-by: Sébastien Han --- roles/ceph-common/defaults/main.yml | 1 + roles/ceph-common/templates/ceph.conf.j2 | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/ceph-common/defaults/main.yml b/roles/ceph-common/defaults/main.yml index 05f76e889..967aaf63b 100644 --- a/roles/ceph-common/defaults/main.yml +++ b/roles/ceph-common/defaults/main.yml @@ -58,6 +58,7 @@ max_open_files: 131072 # Logging disable_in_memory_logs: true # set this to false while enabling the options below +rbd_client_log_file: /var/log/qemu/qemu-guest-$pid.log # must be writable by QEMU and allowed by SELinux or AppArmor # Debug logs enable_debug_global: false diff --git a/roles/ceph-common/templates/ceph.conf.j2 b/roles/ceph-common/templates/ceph.conf.j2 index 88f09a1c9..2c49a2b97 100644 --- a/roles/ceph-common/templates/ceph.conf.j2 +++ b/roles/ceph-common/templates/ceph.conf.j2 @@ -64,7 +64,8 @@ [client] rbd cache = true rbd cache writethrough until flush = true - admin socket = /var/run/ceph/$cluster-$type.$id.$pid.$cctid.asok + admin socket = /var/run/ceph/$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 [mon] mon osd down out interval = {{ mon_osd_down_out_interval }}