]> git.proxmox.com Git - pve-manager.git/commitdiff
api: ceph ec pools: schema fixes and enhancements
authorAaron Lauterer <a.lauterer@proxmox.com>
Fri, 29 Apr 2022 09:28:58 +0000 (11:28 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 29 Apr 2022 12:24:04 +0000 (14:24 +0200)
Ceph has a min value for 'k' of 2. Adding default and description where
missing.

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

index eeb81d65ba05e84c8344f846a97b4f3bf931cb99..4e28453cc23140f70f3b42c440d270f889ca195d 100644 (file)
@@ -321,7 +321,7 @@ my $ec_format = {
        type => 'integer',
        description => "Number of data chunks. Will create an erasure coded pool plus a"
            ." replicated pool for metadata.",
-       minimum => 1,
+       minimum => 2,
     },
     m => {
        type => 'integer',
@@ -335,6 +335,7 @@ my $ec_format = {
            ." coded pool plus a replicated pool for metadata.",
        format_description => 'domain',
        optional => 1,
+       default => 'host',
     },
     'device-class' => {
        type => 'string',
@@ -386,6 +387,8 @@ __PACKAGE__->register_method ({
                optional => 1,
            },
            'erasure-coding' => {
+               description => "Create an erasure coded pool for RBD with an ".
+                               "accompaning replicated pool for metadata storage.",
                type => 'string',
                format => $ec_format,
                optional => 1,