pve-manager/PVE/API2/Ceph
Thomas Lamprecht d7a63207a3 ceph: osd_belongs_to_node: only check tree-entries of type host, refactor
We want to check explicitly for type host, so filter for that first
and create a hash map for easier usage afterwards.

Drop the error when there's no tree, as either RADOS error'd on bad
command already, or there really is no tree (but RADOS worked OK), in
which case we simply return that the OSD did not belong to this node.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-20 18:06:07 +02:00
..
FS.pm ceph tools: factor out frequent keyring and config init check 2019-07-23 07:48:45 +02:00
Makefile api: ceph: subclass pools 2021-02-06 14:17:53 +01:00
MDS.pm ceph: make all service name regexes the same 2020-03-04 15:38:09 +01:00
MGR.pm ceph: make all service name regexes the same 2020-03-04 15:38:09 +01:00
MON.pm Make PVE6 compatible with supported ceph versions 2020-06-03 14:23:38 +02:00
OSD.pm ceph: osd_belongs_to_node: only check tree-entries of type host, refactor 2021-04-20 18:06:07 +02:00
Pools.pm ceph: add get api call for single pool 2021-02-06 14:28:39 +01:00