]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-osd add the CEPH_VOLUME_DEBUG env var to all ceph-volume commands
authorAlfredo Deza <adeza@redhat.com>
Tue, 24 Oct 2017 17:44:11 +0000 (13:44 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 25 Oct 2017 10:50:22 +0000 (06:50 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
roles/ceph-osd/tasks/scenarios/lvm.yml

index ed666f3cc0607ca6da105c38f79927ea3494590a..4282828d5db0ef5c8bfdfecd187b2a492756e2d0 100644 (file)
@@ -1,6 +1,8 @@
 ---
 - name: use ceph-volume to create filestore osds with dedicated journals
   command: "ceph-volume lvm create --filestore --data {{ item.data_vg }}/{{ item.data }} --journal {{ item.journal }}"
+  environment:
+    CEPH_VOLUME_DEBUG: 1
   with_items: "{{ lvm_volumes }}"
   when:
     - item.journal_vg is not defined
@@ -8,6 +10,8 @@
 
 - name: use ceph-volume to create filestore osds with dedicated lv journals
   command: "ceph-volume lvm create --filestore --data {{ item.data_vg }}/{{ item.data }} --journal {{item.journal_vg }}/{{ item.journal }}"
+  environment:
+    CEPH_VOLUME_DEBUG: 1
   with_items: "{{ lvm_volumes }}"
   when:
     - item.journal_vg is defined
@@ -15,6 +19,8 @@
 
 - name: use ceph-volume to create bluestore osds with db and wal
   command: "ceph-volume lvm create --bluestore --data {{ item.data_vg }}/{{ item.data }} --block.wal {{ item.wal_vg }}/{{ item.wal }} --block.db {{ item.block_vg }}/{{ item.block }}"
+  environment:
+    CEPH_VOLUME_DEBUG: 1
   with_items: "{{ lvm_volumes }}"
   when:
     - osd_objectstore == 'bluestore'
@@ -25,6 +31,8 @@
 
 - name: use ceph-volume to create bluestore osds with db only
   command: "ceph-volume lvm create --bluestore --data {{ item.data_vg }}/{{ item.data }} --block.db {{ item.block_vg }}/{{ item.block }}"
+  environment:
+    CEPH_VOLUME_DEBUG: 1
   with_items: "{{ lvm_volumes }}"
   when:
     - osd_objectstore == 'bluestore'
@@ -35,6 +43,8 @@
 
 - name: use ceph-volume to create bluestore osds with wal only
   command: "ceph-volume lvm create --bluestore --data {{ item.data_vg }}/{{ item.data }} --block.wal {{ item.wal_vg }}/{{ item.wal }}"
+  environment:
+    CEPH_VOLUME_DEBUG: 1
   with_items: "{{ lvm_volumes }}"
   when:
     - osd_objectstore == 'bluestore'
@@ -45,6 +55,8 @@
 
 - name: use ceph-volume to create bluestore osds with just a data device
   command: "ceph-volume lvm create --bluestore --data {{ item.data_vg }}/{{ item.data }}"
+  environment:
+    CEPH_VOLUME_DEBUG: 1
   with_items: "{{ lvm_volumes }}"
   when:
     - osd_objectstore == 'bluestore'