]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
rgw: fix multi instances scaleout
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 1 Jul 2020 08:47:45 +0000 (10:47 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 3 Jul 2020 04:37:34 +0000 (06:37 +0200)
commitcdf61540d89ba6a9495b5abce868b1566b0f43af
tree28e1860f5a3b424f4d4e5595b5a459a655101132
parent503bc893fbb5fe2933f97c63534aa26d3724c0fe
rgw: fix multi instances scaleout

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

The environment file used in the rgw systemd template is rendered when
executing the `ceph-rgw` role but during a new run of the playbook (in
order to scale out rgw instances), handlers are triggered from `ceph-osd`
role which is run before `ceph-rgw`, therefore it tries to start the new
rgw daemon whereas its corresponding environment file hasn't been
rendered yet and fails like following:

```
ceph-radosgw@rgw.ceph4osd3.rgw1.service failed to run 'start-pre' task: No such file or directory
```

This commit moves the tasks generating this file in `ceph-config` role
so it is generated early.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1851906
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 7dd68b9ac1086e3c15cfad3812f1c141eadd80c0)
infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml
roles/ceph-config/tasks/main.yml
roles/ceph-config/tasks/rgw_systemd_environment_file.yml [new file with mode: 0644]
roles/ceph-rgw/tasks/common.yml
roles/ceph-rgw/tasks/start_docker_rgw.yml