From: Guillaume Abrioux Date: Thu, 10 Jun 2021 18:09:55 +0000 (+0200) Subject: rolling_update: fix mon+rgw/multisite collocation X-Git-Tag: v6.0.9~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9b57f33e78a3b30bd86cd9d1a51ce1aaab82e2b9;p=ceph-ansible.git rolling_update: fix mon+rgw/multisite collocation 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 (cherry picked from commit f7166cccbfa206f07a1ecca8d3eba0fe9d396c3a) --- diff --git a/roles/ceph-handler/tasks/main.yml b/roles/ceph-handler/tasks/main.yml index a8c76f519..40157c70f 100644 --- a/roles/ceph-handler/tasks/main.yml +++ b/roles/ceph-handler/tasks/main.yml @@ -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: