msg: "lvm batch failed idempotency check"
when:
- batch_cmd.rc != 0
- - "'strategy changed' not in batch_cmd.stdout"
+ - "'strategy changed' not in batch_cmd.stderr"
- name: run batch --report to see if devices get filtered
command: "ceph-volume --cluster {{ cluster }} lvm batch --report --format=json --{{ osd_objectstore|default('bluestore') }} {{ '--dmcrypt' if dmcrypt|default(false) else '' }} {{ devices | join(' ') }}"
fail:
msg: "lvm batch --report failed idempotency check"
when:
- - batch_cmd.rc != 0
- - "'strategy changed' not in batch_cmd.stdout"
+ - report_cmd.rc != 0
+ - "'strategy changed' not in report_cmd.stderr"
msg: "lvm batch failed idempotency check"
when:
- batch_cmd.rc != 0
- - "'strategy changed' not in batch_cmd.stdout"
+ - "'strategy changed' not in batch_cmd.stderr"
- name: run batch --report to see if devices get filtered
command: "ceph-volume --cluster {{ cluster }} lvm batch --report --format=json --{{ osd_objectstore|default('bluestore') }} {{ '--dmcrypt' if dmcrypt|default(false) else '' }} {{ devices[:2] | join(' ') }} --db-devices {{ devices[2:] | join(' ') }}"
fail:
msg: "lvm batch --report failed idempotency check"
when:
- - batch_cmd.rc != 0
- - "'strategy changed' not in batch_cmd.stdout"
+ - report_cmd.rc != 0
+ - "'strategy changed' not in report_cmd.stderr"