mirror of https://github.com/ceph/ceph-ansible.git
d65c7b4035
When collocating OSDs with other daemon, `num_osds` is incorrectly calculated
because `ceph-config` is called multiple times.
Indeed, the following code:
```
num_osds: "{{ lvm_list.stdout | default('{}') | from_json | length | int + num_osds | default(0) | int }}"
```
makes `num_osds` be incremented each time `ceph-config` is called.
We have to reset it in order to get the correct number of expected OSDs.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
ceph-client | ||
ceph-common | ||
ceph-config | ||
ceph-container-common | ||
ceph-container-engine | ||
ceph-crash | ||
ceph-dashboard | ||
ceph-defaults | ||
ceph-facts | ||
ceph-fetch-keys | ||
ceph-grafana | ||
ceph-handler | ||
ceph-infra | ||
ceph-iscsi-gw | ||
ceph-mds | ||
ceph-mgr | ||
ceph-mon | ||
ceph-nfs | ||
ceph-node-exporter | ||
ceph-osd | ||
ceph-prometheus | ||
ceph-rbd-mirror | ||
ceph-rgw | ||
ceph-rgw-loadbalancer | ||
ceph-validate |