]> git.proxmox.com Git - pve-manager.git/commit
api: ceph: add cmd-safety endpoint
authorAaron Lauterer <a.lauterer@proxmox.com>
Thu, 17 Nov 2022 14:10:00 +0000 (15:10 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 17 Nov 2022 17:27:48 +0000 (18:27 +0100)
commitccb281a7aed3ef5431387288f32642fe878712ab
tree456ad6fbf7c896d36d8b5f04cc5e2a237db73645
parentfc27fd06b61c2624dd6b45ba102f17384755d88a
api: ceph: add cmd-safety endpoint

Ceph provides us with several safety checks to verify that an action is
safe to perform. This endpoint provides means to acces them.
The actual mon commands are not exposed directly. Instead the two
actions "stop" and "destroy" are offered.

In case it is not okay to perform an action, Ceph provides a status
message explaining why. This message is part of the returned values.

For now there are the following checks for these services:

MON:
  - ok-to-stop
  - ok-to-rm
OSD:
  - ok-to-stop
  - safe-to-destroy
MDS:
  - ok-to-stop

Even though OSDs have a check if it is okay to destroy them, it is for
now not really usable in our workflow because it needs the OSD to be up
and running to return useful information. Our workflow in the GUI
currently is that the OSD needs to be stopped in order to destroy it.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
PVE/API2/Ceph.pm