pve-manager/PVE
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
..
API2 api ceph osd: add OSD index, metadata and lv-info 2023-03-15 18:24:27 +01:00
Ceph ceph tools: set_pools: filter settings for erasure code pools 2022-05-02 15:43:06 +02:00
CLI revert "fix #4333: redirect API handler output to STDERR" 2023-03-14 11:21:29 +01:00
Jobs job manager: run cfs_update before starting a job 2022-11-13 15:59:32 +01:00
Service pveproxy/template: switch to using the "auto" theme per default 2023-03-14 15:11:42 +01:00
Status metrics: influx: preprare value: rename $quote to $force_quote 2022-01-28 11:11:49 +01:00
.gitignore add .gitignore files, fix Makefiles 2011-08-23 16:23:46 +02:00
API2.pm api: open up /cluster/options call over injecting info into /version 2022-11-17 18:16:43 +01:00
API2Tools.pm api: resources: return plugin type 2020-11-24 23:01:54 +01:00
APLInfo.pm apl info: trailing whitespace cleanups 2022-03-29 06:53:28 +02:00
AutoBalloon.pm avoid perl warning 2013-01-22 11:44:41 +01:00
CertCache.pm takeover CertCache from pve-cluster 2019-11-18 12:25:35 +01:00
CertHelpers.pm renew pve-ssl.pem when it nearly expires 2019-11-26 13:13:04 +01:00
ExtMetric.pm status/plugin: extend send/_connect/_disconnect/test_connection 2021-01-28 17:32:23 +01:00
HTTPServer.pm ui: implement OpenId login 2021-07-02 14:09:30 +02:00
Jobs.pm job manager: run cfs_update before starting a job 2022-11-13 15:59:32 +01:00
Makefile add PVE/Jobs to handle VZDump jobs 2021-11-10 16:11:00 +01:00
NodeConfig.pm nodeconfig: use common config parser 2022-03-17 14:24:20 +01:00
pvecfg.pm.in pvecfg: adapt version and release semantic 2019-05-26 16:11:43 +02:00
Report.pm report: add ceph health detail 2023-02-21 17:25:38 +01:00
VZDump.pm vzdump: send mail if job-abort hook fails 2022-11-16 11:25:58 +01:00