]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
OSDMonitor: exclude destroyed OSDs from "ceph node ls" output
authorNitzan Mordechai <nmordech@redhat.com>
Tue, 11 Mar 2025 15:37:07 +0000 (15:37 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Wed, 12 Mar 2025 07:09:21 +0000 (07:09 +0000)
commit97c43c728dc8e702ce19bc14f6aa9a4790c8415b
treebf908a1f415a032be962e9f90433a83af762888f
parentae31ae0d925d104ec5397b736f8791a4c26ce9a1
OSDMonitor: exclude destroyed OSDs from "ceph node ls" output

After destroying an OSD, the command "ceph node ls" still listed the destroyed OSD,
causing confusion. This fix ensures that the status of the OSD is checked before
adding it to the output, aligning its behavior with "ceph osd tree," which already
displays the correct status.

Fixes: https://tracker.ceph.com/issues/70400
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
src/mon/OSDMonitor.cc