]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSDMonitor: exclude destroyed OSDs from "ceph node ls" output 62326/head
authorNitzan Mordechai <nmordech@redhat.com>
Tue, 11 Mar 2025 15:37:07 +0000 (15:37 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Sun, 16 Mar 2025 09:42:33 +0000 (09:42 +0000)
commitaa3443679f251a6eff876e75aa4a09890785a8df
treeb9ab07ab505a49f78211830a4a9bae1339f57819
parent7f91f1e933ceac65415d89f78161c9cd87d9e73b
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>
(cherry picked from commit 97c43c728dc8e702ce19bc14f6aa9a4790c8415b)
src/mon/OSDMonitor.cc