Skip to content

Commit

Permalink
update: fail the playbook if straw2 conversion failed
Browse files Browse the repository at this point in the history
It's better to fail the playbook so the user is aware the straw2
migration has failed.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit c396122)
  • Loading branch information
guits authored and dsavineau committed Jul 9, 2021
1 parent 361f373 commit a14a3e5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions infrastructure-playbooks/rolling_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1094,12 +1094,16 @@
command: "{{ ceph_cmd }} --cluster {{ cluster }} osd setcrushmap -i /etc/ceph/{{ cluster }}-crushmap"
changed_when: false

- name: switching to straw2 buckets failed
debug:
- name: inform that the switch to straw2 buckets failed
fail:
msg: >
"An attempt to switch to straw2 bucket was made but failed.
Check the cluster status."
- name: remove crushmap backup
file:
path: /etc/ceph/{{ cluster }}-crushmap
state: absent

- name: show ceph status
hosts: "{{ mon_group_name|default('mons') }}"
Expand Down

0 comments on commit a14a3e5

Please sign in to comment.