Commit 31a0f265 authored by Guillaume Abrioux's avatar Guillaume Abrioux
Browse files

config: reset num_osds



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: default avatarGuillaume Abrioux <gabrioux@redhat.com>
parent 5b86ac88
......@@ -14,6 +14,10 @@
# running osds
- not rolling_update | bool
block:
- name: reset num_osds
set_fact:
num_osds: 0
- name: count number of osds for lvm scenario
set_fact:
num_osds: "{{ lvm_volumes | length | int }}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment