]> git.proxmox.com Git - pve-manager.git/commit
api: osd: destroy: remove mclock max iops settings
authorAaron Lauterer <a.lauterer@proxmox.com>
Wed, 8 Nov 2023 12:10:34 +0000 (13:10 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Nov 2023 07:09:15 +0000 (08:09 +0100)
commit38fa08d07401d2b51a97ed0377db339cfbafb5d7
tree8a03f9f797f3317f76b12f13f375140643fc5eb6
parent5caa663f3ebf00c3ab7e3135761d1bb17ae23227
api: osd: destroy: remove mclock max iops settings

Ceph does a quick benchmark when creating a new OSD and stores the
osd_mclock_max_capacity_iops_{ssd,hdd} settings in the config DB.

When destroying the OSD, Ceph does not automatically remove these
settings. Keeping them can be problematic if a new OSD with potentially
more performance is added and ends up getting the same OSD ID.

Therefore, we remove these settings ourselves when destroying an OSD.
Removing both variants, hdd and ssd should be fine, as the MON does not
complain if the setting does not exist.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Tested-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
PVE/API2/Ceph/OSD.pm