]> 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>
Tue, 10 Feb 2026 15:33:45 +0000 (16:33 +0100)
commit222c9d9e4e901cd7f50e8bfea0ac897d5c499cf7
treee5f4a6947f33213de90201b48c7ae27abf01b71a
parent88113c20f1e4591e2fff45c047aa5429cb7d895e
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