mirror of https://github.com/ceph/ceph-ansible.git
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
parent
cc264d6ba6
commit
80d3a242d0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue