]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Add RBD client logs support 212/head
authorSébastien Han <sebastien.han@enovance.com>
Mon, 23 Feb 2015 14:28:27 +0000 (15:28 +0100)
committerSébastien Han <sebastien.han@enovance.com>
Mon, 23 Feb 2015 14:28:27 +0000 (15:28 +0100)
The path must be writable by QEMU and allowed by SELinux or AppArmor

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
roles/ceph-common/defaults/main.yml
roles/ceph-common/templates/ceph.conf.j2

index 05f76e8894bbbe68f107c00f0a1e29ad66575954..967aaf63b9362ebdee5c9e3e40763895e154a7dd 100644 (file)
@@ -58,6 +58,7 @@ max_open_files: 131072
 \r
 # Logging\r
 disable_in_memory_logs: true # set this to false while enabling the options below\r
+rbd_client_log_file: /var/log/qemu/qemu-guest-$pid.log # must be writable by QEMU and allowed by SELinux or AppArmor\r
 \r
 # Debug logs\r
 enable_debug_global: false\r
index 88f09a1c922cf8541ad40eec0b57028b9f996187..2c49a2b97950e9343445105a85264e0141c2ed23 100644 (file)
@@ -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 }}