From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 502071FF146 for ; Tue, 07 Jul 2026 10:24:06 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 1F60221449; Tue, 07 Jul 2026 10:24:06 +0200 (CEST) From: Maximiliano Sandoval To: pve-devel@lists.proxmox.com Subject: [PATCH storage v6 0/2] nfs: use rpcinfo as a showmount fallback for nfs3 Date: Tue, 7 Jul 2026 10:23:29 +0200 Message-ID: <20260707082332.111714-1-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1783412605656 X-SPAM-LEVEL: Spam detection results: 0 DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: EWMNCNIYY5I3XG4JFPOATY2CG73T2Y5U X-Message-ID-Hash: EWMNCNIYY5I3XG4JFPOATY2CG73T2Y5U X-MailFrom: m.sandoval@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: See the respective commit messages. This came up in enterprise support. In this case the NFS appliance only supported NFSv3 and the showmount command failed, but rpcbind succeeded (with -T tcp). This possibility was discussed with Friedrich and Fiona off-list. Tested: - Created a NFS share on host "B" - On host "A" a NFS storage was added (using B's share) with --options vers=3 - Ran `ss -tulpn4 |grep mountd` on host B to see ports used by showmount - The ports listed were blocked on host "A", so that showmount fails: /sbin/showmount --no-headers --exports $B rpc mount export: RPC: Unable to send; errno = Operation not permitted - Ran `pvesm status` on A and checked that the NFS storage is available - Created a VM on A with a disk image in the the NFS storage The later two operations would have failed without the changes here. Differences from v5: - Move note regarding timeout to fallback Differences from v4: - Use proper FIXME: MAJOR VERSION comment - Simplify the FIXME comment - Move the NFSv4-only note to the fallback branch Differences from v3: - Fix some typos - Turn TODO note into FIXME - Moved the pitfalls mentioned in the commit message to the FIXME Differences from v2: - add PVE 10 prefix to TODO note - rename the rpcinfo helper - make the rpcinfo helper private - Always run the fallback branch when v4 != 4. - Leave nfsv4+rpcinfo comment on call-site Differences from v1: - the name of the helper function was fixed Maximiliano Sandoval (2): nfs: create a helper to get rpcinfo commands nfs: use rpcinfo as a showmount fallback for nfs3 src/PVE/Storage/NFSPlugin.pm | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) -- 2.47.3