public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: Fiona Ebner <f.ebner@proxmox.com>
Cc: pve-devel@lists.proxmox.com
Subject: Re: [PATCH storage v3 2/2] nfs: use rpcinfo as a showmounts fallback for nfs3
Date: Mon, 06 Jul 2026 16:19:34 +0200	[thread overview]
Message-ID: <s8oa4s46w09.fsf@toolbox> (raw)
In-Reply-To: <037f3b57-2137-4738-8dbc-7571c6a0c144@proxmox.com> (Fiona Ebner's message of "Mon, 6 Jul 2026 15:01:43 +0200")

Fiona Ebner <f.ebner@proxmox.com> writes:

> Am 25.03.26 um 1:46 PM schrieb Maximiliano Sandoval:
>> The check_connection call must succeed in order for the NFS storage to
>> be activated. In a setup in which the NFS server does not list exports
>> and which only supports NFSv3 this would result in the storage not being
>> usable (not without manually mounting the NFS share and using a
>> Directory storage instead). We add a fallback check with rpcinfo for
>> this case.
>> 
>> The rpcinfo check was replaced with showmounts in f8b0d82fe. At the time
>
> Typo: s/showmounts/showmount/
>
>> the rationale was that rpcinfo did not have support for ipv6
>> connections, which does not hold anymore.
>> 
>> In order to not break compatibility with setups that already activate
>> correctly, we add a rpcinfo check as a fallback for NFSv3-only setups
>> only after the showmounts command fails.
>
> Typo: s/showmounts/showmount/
>
>> 
>> Potential pitfalls:
>> - Some NFSv3 servers might only support UDP [RFC 1813]
>
> Also relevant for switching to only using rpcinfo. Could you extend the
> TODO PVE 10 comment with this pitfall?
>
>> - The two timeouts add up to 20 seconds
>
> Is the timeout for the first command hit in case the server does not
> list exports? Or does the command fail differently? If it's the former
> case, it would be nice to avoid that, since a 10 second delay on every
> activate_storage() is still bad from a user perspective.
>
> Were there good reasons for the customer's server not to list the
> exports? If not, we could also just document the requirement for NFSv3?
>

It was more of a: "there is potentially a worst-cast scenario of a 20
second timeout" and I do not know if it is safe to run a potentially 20
second-long operation here. I do not remember finding such a case, but
it might be out there. I will rephrase this.

> [..]

-- 
Maximiliano




  reply	other threads:[~2026-07-06 14:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-25 12:46 [PATCH storage v3 0/2] nfs: use rpcinfo as a showmounts fallback for nfs3 Maximiliano Sandoval
2026-03-25 12:46 ` [PATCH storage v3 1/2] nfs: create a helper to run rpcinfo commands Maximiliano Sandoval
2026-07-06 13:01   ` Fiona Ebner
2026-03-25 12:46 ` [PATCH storage v3 2/2] nfs: use rpcinfo as a showmounts fallback for nfs3 Maximiliano Sandoval
2026-07-06 13:01   ` Fiona Ebner
2026-07-06 14:19     ` Maximiliano Sandoval [this message]
2026-07-06 14:38 ` superseded: [PATCH storage v3 0/2] " Maximiliano Sandoval

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s8oa4s46w09.fsf@toolbox \
    --to=m.sandoval@proxmox.com \
    --cc=f.ebner@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal