]> 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>
Wed, 18 Feb 2026 08:52:38 +0000 (09:52 +0100)
commitc6dae52d9dc9cfa7d88fc9ddc6d000835ecab9cf
tree21376a7badbf298f060e6515bae67218b600f941
parent573b90050e9ad8ec17207d0a4eb86995d1fb0b97
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>
src/pybind/mgr/cephadm/agent.py
src/pybind/mgr/cephadm/inventory.py
src/pybind/mgr/orchestrator/module.py