]> git.proxmox.com Git - pve-manager-legacy.git/commit
ui: only allow rbd pools to be added as rbd storage
authorStefan Sterz <s.sterz@proxmox.com>
Tue, 25 Oct 2022 08:10:46 +0000 (10:10 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Nov 2022 19:24:12 +0000 (20:24 +0100)
commit2b84e8a8e1e9bca319da555abca39fdcb5014cd9
treef7cd5246a051625d11ee809eaa3284cea0a34303
parent17e2eabe4aaf829ac88ee3828ce992a16dd2380e
ui: only allow rbd pools to be added as rbd storage

previously the ui would allow adding all pools (even the default
ceph-mon pools) as storage. this could lead to issues when users did
use these pools as storage (e.g.: vms missing their disks after a
migration). hence, restrict the pool selector to rbd pools.

fails gracefully by reverting to the previous behavior if a pool has
no application assigned to it.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
Tested-By:  Aaron Lauterer <a.lauterer@proxmox.com>
www/manager6/form/CephPoolSelector.js