]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: fix osd size reported in 'orch ls'
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 22 Sep 2021 07:35:54 +0000 (09:35 +0200)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 2 Nov 2021 09:01:21 +0000 (10:01 +0100)
commit0609eef21b45bb8e05ba7bc80b8892cd824ff783
tree3565a64cdf185b82951c2b7a874c1c41c2890a8a
parent813d2e34d84a0545ac6a3b82773adba44a5156ee
cephadm: fix osd size reported in 'orch ls'

The current code enforces ('running osds' + 1), see [1].
Let's simply print the number of running osds instead of a
meaningless calculation.

[1] https://github.com/ceph/ceph/commit/1c0a0a6f6153dc555085f263f161666cd171964a#diff-4f2fb7d330e74b64ac41457b7c7a723cd78db86433e0b0c398874531e5a7e39eR1852-R1859

Fixes: https://tracker.ceph.com/issues/50928
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 97219591dab8f54f239ccfb1891c45b01e7bec79)
src/pybind/mgr/orchestrator/module.py