Commit bf5d0b73 authored by Guillaume Abrioux's avatar Guillaume Abrioux Committed by Dimitri Savineau
Browse files

update: fail the playbook if straw2 conversion failed

It's better to fail the playbook so the user is aware the straw2
migration has failed.
Signed-off-by: default avatarGuillaume Abrioux <>
(cherry picked from commit c396122a)
parent e0b6bb96
......@@ -1082,12 +1082,16 @@
command: "{{ ceph_cmd }} --cluster {{ cluster }} osd setcrushmap -i /etc/ceph/{{ cluster }}-crushmap"
changed_when: false
- name: switching to straw2 buckets failed
- name: inform that the switch to straw2 buckets failed
msg: >
"An attempt to switch to straw2 bucket was made but failed.
Check the cluster status."
- name: remove crushmap backup
path: /etc/ceph/{{ cluster }}-crushmap
state: absent
- name: show ceph status
hosts: "{{ mon_group_name|default('mons') }}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment