From 628d98a92c83cc66db08f788995eacdcb39a27b0 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Tue, 24 Oct 2017 13:44:11 -0400 Subject: [PATCH] ceph-osd add the CEPH_VOLUME_DEBUG env var to all ceph-volume commands Signed-off-by: Alfredo Deza --- roles/ceph-osd/tasks/scenarios/lvm.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/ceph-osd/tasks/scenarios/lvm.yml b/roles/ceph-osd/tasks/scenarios/lvm.yml index ed666f3cc..4282828d5 100644 --- a/roles/ceph-osd/tasks/scenarios/lvm.yml +++ b/roles/ceph-osd/tasks/scenarios/lvm.yml @@ -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' -- 2.39.5