From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 94A4F60AB7 for ; Mon, 19 Oct 2020 12:40:10 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 8ABB62B775 for ; Mon, 19 Oct 2020 12:39:40 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id AFCDA2B752 for ; Mon, 19 Oct 2020 12:39:38 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 772D345E02 for ; Mon, 19 Oct 2020 12:39:38 +0200 (CEST) From: Alwin Antreich To: pve-devel@lists.proxmox.com Date: Mon, 19 Oct 2020 12:39:32 +0200 Message-Id: <20201019103934.1484472-3-a.antreich@proxmox.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201019103934.1484472-1-a.antreich@proxmox.com> References: <20201019103934.1484472-1-a.antreich@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.000 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH manager v2 3/5] ceph: use pool common options pool create X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2020 10:40:10 -0000 to keep the pool create & set in sync. Signed-off-by: Alwin Antreich --- PVE/API2/Ceph.pm | 40 +--------------------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm index 7cdbdccd..0aeb5075 100644 --- a/PVE/API2/Ceph.pm +++ b/PVE/API2/Ceph.pm @@ -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' }, -- 2.27.0