]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/node-proxy: fix "ceph orch hardware status --category criticals"
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 10 Feb 2026 14:59:55 +0000 (15:59 +0100)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 19 Feb 2026 12:54:56 +0000 (12:54 +0000)
commit1b5d4e0b89fc7b3c525d03a03a861ca40f49e9a0
treee9299c47481da64df92fee3529e8b16aa1417074
parent3df4f06aa32e7fb083601c451dc54efbe274c07a
mgr/node-proxy: fix "ceph orch hardware status --category criticals"

The criticals path was using the wrong data shape:
node-proxy sends status as:

  component -> sys_id -> member

 but the code assumed:

  sys_id -> component -> member

This fixes get_critical_from_host() and _criticals_table() to iterate
in the correct order and build the criticals result with the right
nesting.

Fixes: https://tracker.ceph.com/issues/74749
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit c6dae52d9dc9cfa7d88fc9ddc6d000835ecab9cf)
src/pybind/mgr/cephadm/agent.py
src/pybind/mgr/cephadm/inventory.py
src/pybind/mgr/orchestrator/module.py