From 80d3a242d0134de5790a015b40c8af1e37a2322b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Thu, 16 Nov 2017 14:55:08 +0100 Subject: [PATCH] osd: fix bad activation for dmcrypt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We were activating dmcrypt devices with the wrong command. Basically the first task execute the wrong activate command. The task fails but continues because of the 'failed_when: false'. Then the right activation sequence is being done by the next task. Signed-off-by: Sébastien Han --- roles/ceph-osd/tasks/activate_osds.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/ceph-osd/tasks/activate_osds.yml b/roles/ceph-osd/tasks/activate_osds.yml index 2fd449ed1..13ea874e2 100644 --- a/roles/ceph-osd/tasks/activate_osds.yml +++ b/roles/ceph-osd/tasks/activate_osds.yml @@ -11,6 +11,7 @@ register: activate_osd_disk when: - not osd_auto_discovery + - not dmcrypt - name: activate osd(s) when device is a disk (dmcrypt) command: ceph-disk activate --dmcrypt {{ item | regex_replace('^(\/dev\/cciss\/c[0-9]{1}d[0-9]{1})$', '\\1p') }}1 @@ -45,3 +46,4 @@ failed_when: false when: - not osd_auto_discovery + - not dmcrypt