]> git-server-git.apps.pok.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 05:38:44 +0000 (07:38 +0200)
commita802fa2810e50e87f61e3a64c27f8826ba6aa250
treee99ace707d23eb34deed9e66b02fcd402811fdb4
parentf83f798206566b714adbc55e2543cbd9529897fa
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>
roles/ceph-handler/tasks/main.yml
roles/ceph-rgw/tasks/pre_requisite.yml