From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 3F75A1FF15E for ; Mon, 10 Nov 2025 18:00:53 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DA1911C389; Mon, 10 Nov 2025 18:01:33 +0100 (CET) From: Mira Limbeck To: pve-devel@lists.proxmox.com Date: Mon, 10 Nov 2025 18:01:20 +0100 Message-Id: <20251110170124.3460419-1-m.limbeck@proxmox.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.612 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RDNS_NONE 0.793 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Subject: [pve-devel] [RFC cluster/manager/storage 0/4] add storage mapping 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: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" This RFC is the first draft of storage mapping support. It includes a reworked iSCSI plugin that handles storage mapping, as well as an API to get/create/delete mappings. Some features are not yet implemented, for example reachability checks for iSCSI. The pve-manager patches are limited to the API, no UI exists for now. The idea would be to make it easy for iSCSI storages to use local mappings that are managed through the GUI. For this we would need to check the reachability of all announced portals for each node. This will be the next step after the basic mapping support. For now only an iSCSI plugin exists, but this could be extended to other (future) storages as well. As such the idea is to have a generic base. pve-cluster: Mira Limbeck (1): mapping: add storage.cfg src/PVE/Cluster.pm | 1 + src/pmxcfs/status.c | 1 + 2 files changed, 2 insertions(+) pve-manager: Mira Limbeck (1): api: mapping: add storage mapping path PVE/API2/Cluster/Mapping.pm | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) pve-storage: Mira Limbeck (2): add basic mapping support and iSCSI mapping plugin api: add mapping support src/PVE/API2/Storage/Makefile | 2 +- src/PVE/API2/Storage/Mapping.pm | 213 ++++++++++++++++++++++++++++++ src/PVE/Storage.pm | 3 + src/PVE/Storage/ISCSIPlugin.pm | 207 +++++++++++++++++++++++------ src/PVE/Storage/Makefile | 4 +- src/PVE/Storage/Mapping.pm | 44 ++++++ src/PVE/Storage/Mapping/ISCSI.pm | 54 ++++++++ src/PVE/Storage/Mapping/Makefile | 7 + src/PVE/Storage/Mapping/Plugin.pm | 88 ++++++++++++ src/PVE/Storage/Plugin.pm | 6 + 10 files changed, 584 insertions(+), 44 deletions(-) create mode 100644 src/PVE/API2/Storage/Mapping.pm create mode 100644 src/PVE/Storage/Mapping.pm create mode 100644 src/PVE/Storage/Mapping/ISCSI.pm create mode 100644 src/PVE/Storage/Mapping/Makefile create mode 100644 src/PVE/Storage/Mapping/Plugin.pm -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel