rgw: support switching from single-site to multisite

When collocating rgw with either a mon, mgr or osd, switching from
single site to a multisite rgw setup failed because of the handlers
triggered between the ansible play of the collocated daemon and the play
of the rgw. Since the multisite changes are not yet applied the handlers
fail.
The idea here is to ensure we run the multisite configuration from the
ceph-handler role before the restart happens, this way it won't complain
because of non existing multisite configuration.

(Note: this is also valid when simply changing a multisite configuration)

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

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 513c8cfe55)
pull/6172/head
Guillaume Abrioux 2021-01-06 10:37:12 +01:00 committed by Dimitri Savineau
parent 607ef5a7d2
commit 290d3ef369
2 changed files with 9 additions and 0 deletions

View File

@ -63,3 +63,9 @@
name: ceph-rgw name: ceph-rgw
tasks_from: pre_requisite.yml tasks_from: pre_requisite.yml
when: not containerized_deployment | bool when: not containerized_deployment | bool
- name: import_role ceph-rgw
import_role:
name: ceph-rgw
tasks_from: multisite.yml
when: rgw_multisite | bool

View File

@ -0,0 +1,3 @@
---
- name: include_tasks multisite
include_tasks: multisite/main.yml