]> 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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 6 Oct 2020 08:31:34 +0000 (10:31 +0200)
commit2a3b563c7ee912f7feaf284cf89751eaf568b2cc
treefd36752fa2471bde600b01d5695def17baec8f2c
parent5db74194b2fadc63f20cf7ae4bcf80977b64b34a
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