]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
rgw: fix multi instances scaleout in baremetal
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 23 Sep 2020 15:47:20 +0000 (17:47 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Tue, 6 Oct 2020 13:21:58 +0000 (09:21 -0400)
commit52826caa51e4358aa45f852f5fd10bce71074b2d
treef3dd66e092297a9482d67e6b6f74f7223fd404f0
parentb13f0d12e78b10b2ea74b881074a752852e3a538
rgw: fix multi instances scaleout in baremetal

When rgw and osd are collocated, the current workflow prevents from
scaling out the radosgw_num_instances parameter when rerunning the
playbook in baremetal deployments.

When ceph-osd notifies handlers, it means rgw handlers are triggered
too. The issue with this is that they are triggered before the role
ceph-rgw is run.
In the case a scaleout operation is expected on `radosgw_num_instances`
it causes an issue because keyrings haven't been created yet so the new
instances won't start.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1881313
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit a802fa2810e50e87f61e3a64c27f8826ba6aa250)
roles/ceph-handler/tasks/main.yml
roles/ceph-rgw/tasks/pre_requisite.yml