]> git.proxmox.com Git - pve-manager.git/commitdiff
ceph: use pool common options pool create
authorAlwin Antreich <a.antreich@proxmox.com>
Mon, 19 Oct 2020 10:39:32 +0000 (12:39 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Oct 2020 16:18:35 +0000 (18:18 +0200)
to keep the pool create & set in sync.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
PVE/API2/Ceph.pm

index 7cdbdccd39408e414bbab098105824ee003086df..0aeb50759e7295b117e168e04b1ef36dfa5e1d6a 100644 (file)
@@ -745,50 +745,12 @@ __PACKAGE__->register_method ({
        additionalProperties => 0,
        properties => {
            node => get_standard_option('pve-node'),
-           name => {
-               description => "The name of the pool. It must be unique.",
-               type => 'string',
-           },
-           size => {
-               description => 'Number of replicas per object',
-               type => 'integer',
-               default => 3,
-               optional => 1,
-               minimum => 1,
-               maximum => 7,
-           },
-           min_size => {
-               description => 'Minimum number of replicas per object',
-               type => 'integer',
-               default => 2,
-               optional => 1,
-               minimum => 1,
-               maximum => 7,
-           },
-           pg_num => {
-               description => "Number of placement groups.",
-               type => 'integer',
-               default => 128,
-               optional => 1,
-               minimum => 8,
-               maximum => 32768,
-           },
-           crush_rule => {
-               description => "The rule to use for mapping object placement in the cluster.",
-               type => 'string',
-               optional => 1,
-           },
-           application => {
-               description => "The application of the pool, 'rbd' by default.",
-               type => 'string',
-               enum => ['rbd', 'cephfs', 'rgw'],
-               optional => 1,
-           },
            add_storages => {
                description => "Configure VM and CT storage using the new pool.",
                type => 'boolean',
                optional => 1,
            },
+           %{ $ceph_pool_common_options->() },
        },
     },
     returns => { type => 'string' },