Skip to content

Commit

Permalink
rolling_update: fix mon+rgw/multisite collocation
Browse files Browse the repository at this point in the history
When monitors and rgw are collocated with multisite enabled, the
rolling_update playbook fails because during the workflow, we run some
radosgw-admin commands very early on the first mon even though this is
the monitor being upgraded, it means the container doesn't exist since
it was stopped.

This block is relevant only for scaling out rgw daemons or initial
deployment. In rolling_update workflow, it is not needed so let's skip
it.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1970232

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit f7166cc)
  • Loading branch information
guits committed Jun 14, 2021
1 parent 71764c3 commit 611494b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/ceph-handler/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
- name: rgw multi-instances related tasks
when:
- not docker2podman | default(false) | bool
- not rolling_update | default(false) | bool
- inventory_hostname in groups.get(rgw_group_name, [])
- handler_rgw_status | bool
block:
Expand Down

0 comments on commit 611494b

Please sign in to comment.