[pve-devel] [PATCH manager 0/3] fix 2515 use default sizes for new ceph

Aaron Lauterer a.lauterer at proxmox.com
Fri Jan 13 16:09:27 CET 2023


We usually set default size and min_size parameters upon Ceph
initialization.

This patch series changes the UI, so that these defaults will be used
when creating a new pool.
In order to fetch Ceph configuration keys, a new API endpoint is
introduced (configkey). I made it so that any Ceph config keys can be
retrieved, to make it more flexible for any potential future use.

It gathers Ceph config options from the ceph.conf file and the config
DB. Settings in the ceph.conf file override settings from the config DB.

If there are better ideas for the name, please, as I am not really happy
with it, but couldn't come up with something else :)
We already have 'config' and 'configdb'. 'config' returns the ceph.conf
file as is and 'configdb' returns the contents of the config DB. Both
are primarily (AFAICT) used to show the contents in the
Ceph->Configuration UI panel.


Aaron Lauterer (3):
  api: ceph: add endpoint to fetch config keys
  fix #2515: ui: ceph pool create: use configured defaults for size and
    min_size
  ui: ceph pool edit: rework with controller and formulas

 PVE/API2/Ceph.pm          |  84 ++++++++++++++++++++++
 www/manager6/ceph/Pool.js | 142 ++++++++++++++++++++++++++++----------
 2 files changed, 191 insertions(+), 35 deletions(-)

-- 
2.30.2






More information about the pve-devel mailing list