pve-manager/PVE/API2
Aaron Lauterer e907f822d7 api ceph osd: add OSD index, metadata and lv-info
To get more details for a single OSD, we add two new endpoints:
* nodes/{node}/ceph/osd/{osdid}/metadata
* nodes/{node}/ceph/osd/{osdid}/lv-info

The {osdid} endpoint itself gets a new GET handler to return the index.

The metadata one provides various metadata regarding the OSD.

Such as
* process id
* memory usage
* info about devices used (bdev/block, db, wal)
    * size
    * disks used (sdX)
    ...
* network addresses and ports used
...

Memory usage and PID are retrieved from systemd while the rest can be
retrieved from the metadata provided by Ceph.

The second one (lv-info) returns the following infos for a logical
volume:
* creation time
* lv name
* lv path
* lv size
* lv uuid
* vg name

Possible volumes are:
* block (default value if not provided)
* db
* wal

'ceph-volume' is used to gather the infos, except for the creation time
of the LV which is retrieved via 'lvs'.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by:  Dominik Csapak <d.csapak@proxmox.com>
2023-03-15 18:24:27 +01:00
..
Ceph api ceph osd: add OSD index, metadata and lv-info 2023-03-15 18:24:27 +01:00
Cluster api: ceph metadata: rename instance placeholder to id in return schema 2023-01-16 16:32:16 +01:00
Hardware fix #4245: api: node HW: allow to get PCI info with Sys.Audit on / 2022-11-20 13:29:58 +01:00
ACME.pm api: ACME revoke: do not abort if CA is just expired 2020-08-19 18:52:48 +02:00
ACMEAccount.pm api: acme: fix API index entry for challenge-schema 2021-05-05 15:52:49 +02:00
ACMEPlugin.pm ACME: add comment for implicit standalone plugin fallback 2020-05-07 13:53:05 +02:00
APT.pm api apt: fix spelling in hash to avoid undef access warnings 2023-02-02 08:42:12 +01:00
Backup.pm api: vzdump: soften parameter permission checks 2022-11-21 14:13:05 +01:00
Capabilities.pm api: move cpu path into qemu/capabilities 2021-06-09 11:29:34 +02:00
Ceph.pm api: ceph: update return schemas 2023-01-16 14:32:00 +01:00
Certificates.pm fix #2771: relax cert API endpoints permissions 2020-06-17 14:00:43 +02:00
Cluster.pm api: open up /cluster/options call over injecting info into /version 2022-11-17 18:16:43 +01:00
HAConfig.pm use new ha infrastructure 2015-04-03 08:36:59 +02:00
Hardware.pm api: add usb list in hardware endpoint 2020-12-02 11:27:02 +01:00
Makefile move BackupInfo module into Cluster 2021-07-02 12:50:49 +02:00
Network.pm api2: network: anybridge: re-add regular bridges 2022-04-27 13:55:57 +02:00
NodeConfig.pm api: fill in nodeconfig schema 2022-03-17 14:24:20 +01:00
Nodes.pm api: node: bulk actions: allow when user has permission for each guest 2023-03-15 18:21:56 +01:00
Pool.pm api: add 'type' parameter to pool GET endpoint 2022-01-31 13:30:50 +01:00
Replication.pm fix #4111: replication: don't send mail when fail count is zero 2022-06-17 17:20:06 +02:00
ReplicationConfig.pm fix iteration over hash without keys 2020-11-20 15:34:27 +01:00
Services.pm api/services: add pvescheduler to the service list 2021-11-12 16:17:36 +01:00
Subscription.pm subscription: handle missing subscription info 2022-09-07 14:50:32 +02:00
Tasks.pm fix #4521: api/tasks: replace upid as filename for task log downloads 2023-02-09 17:18:52 +01:00
VZDump.pm api: vzdump: soften parameter permission checks 2022-11-21 14:13:05 +01:00