]> 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>
Mon, 20 Jul 2020 19:23:27 +0000 (21:23 +0200)
commit518f4f579dac29252e290bf9d88a1a1162ef5605
treed34ed33252cef92d5dfff34ad3427ecf44c0b349
parent88e4dcdd8ff389464e4c7dddbe14224bf501b817
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