6 - name: stop ceph-osd daemons
8 name: "ceph-osd@{{ item }}"
10 with_items: "{{ osd_ids }}"
18 command: "ceph --cluster {{ cluster }} osd purge osd.{{ item }} --yes-i-really-mean-it"
19 with_items: "{{ osd_ids }}"
26 - name: zap devices used for OSDs
27 command: "ceph-volume --cluster {{ cluster }} lvm zap {{ item }} --destroy"
28 with_items: "{{ devices }}"
32 - name: batch create devices again
33 command: "ceph-volume --cluster {{ cluster }} lvm batch --yes --{{ osd_objectstore|default('bluestore') }} {{ '--dmcrypt' if dmcrypt|default(false) else '' }} {{ devices | join(' ') }}"
37 - name: ensure batch create is idempotent
38 command: "ceph-volume --cluster {{ cluster }} lvm batch --yes --{{ osd_objectstore|default('bluestore') }} {{ '--dmcrypt' if dmcrypt|default(false) else '' }} {{ devices | join(' ') }}"
44 - name: check batch idempotency
46 msg: "lvm batch failed idempotency check"
49 - "'strategy changed' not in batch_cmd.stdout"
51 - name: run batch --report to see if devices get filtered
52 command: "ceph-volume --cluster {{ cluster }} lvm batch --report --format=json --{{ osd_objectstore|default('bluestore') }} {{ '--dmcrypt' if dmcrypt|default(false) else '' }} {{ devices | join(' ') }}"
58 - name: check batch --report idempotency
60 msg: "lvm batch --report failed idempotency check"
63 - "'strategy changed' not in batch_cmd.stdout"