]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
rgw: support switching from single-site to multisite
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 6 Jan 2021 09:37:12 +0000 (10:37 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 6 Jan 2021 15:29:59 +0000 (10:29 -0500)
commit46fac7db28af6935d254bd21558d9754536cfb30
tree6242d983177008631bfaae874d76021e42238102
parent9587c5b15cd13d6adbd9e3782bffe293a84e8e65
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 513c8cfe551da78ea89d2513dffebd9649bfeb44)
roles/ceph-handler/tasks/main.yml
roles/ceph-rgw/tasks/multisite.yml [new file with mode: 0644]