osd: fix bad activation for dmcrypt

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 <seb@redhat.com>
pull/2186/head
Sébastien Han 2017-11-16 14:55:08 +01:00
parent cc264d6ba6
commit 80d3a242d0
1 changed files with 2 additions and 0 deletions

View File

@ -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