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 8389A71264 for ; Wed, 7 Apr 2021 16:22:50 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 68A0C117B2 for ; Wed, 7 Apr 2021 16:22:20 +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 DDF4E1179A for ; Wed, 7 Apr 2021 16:22:19 +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 99A61459E8 for ; Wed, 7 Apr 2021 16:22:19 +0200 (CEST) From: Aaron Lauterer To: pve-devel@lists.proxmox.com Date: Wed, 7 Apr 2021 16:22:15 +0200 Message-Id: <20210407142218.29156-1-a.lauterer@proxmox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.016 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 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [rbdplugin.pm] Subject: [pve-devel] [PATCH v2 storage 0/3] ceph: add namespace support 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: Wed, 07 Apr 2021 14:22:50 -0000 This series introduces namespace support for Ceph RBD on the PVE side. The first patch reworks the RBD storage plugin to use one central sub to create the RBD paths for /. With this patch applied, adding support for namespaces involves very little changes to the RBD plugin. v1 -> v2: * new patch (centralize rbd path concatenation) has been introduced * namespace checks now avoid matching the contents of the $scfg->{namespace} but check if it is defined. This is done to avoid evaluating a namespace called '0' for example, to evaluate to false. * integration test has been reworked according to feedback Aaron Lauterer (3): rbd: centralize rbd path concatenation rbd: fix #3286 add namespace support rbd: add integration test for namespace handling PVE/Storage/RBDPlugin.pm | 63 +++++-- test/rbd_namespace.pl | 370 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 415 insertions(+), 18 deletions(-) create mode 100755 test/rbd_namespace.pl -- 2.20.1