All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pradeep <pradeepthomas@gmail.com>
To: Chuck Lever III <chuck.lever@oracle.com>
Cc: Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: NFSv4 referrals with FQDN.
Date: Thu, 25 Mar 2021 10:03:03 -0700	[thread overview]
Message-ID: <CAD8zhTC9Bk7GQoUtCz4FstknKEnyw4H1DsZXzUeekR5Bpgkkpw@mail.gmail.com> (raw)
In-Reply-To: <A33B308D-1B41-4125-96A9-5DF19816D571@oracle.com>

Thanks Chuck for confirming that. I will try to post a patch after testing.

On Wed, Mar 24, 2021 at 12:20 PM Chuck Lever III <chuck.lever@oracle.com> wrote:
>
>
>
> > On Mar 23, 2021, at 5:56 PM, Pradeep <pradeepthomas@gmail.com> wrote:
> >
> > Hello,
> >
> > While testing NFSv4 referrals, I noticed that if the server name in FS
> > locations does not have IPv4 mapping (server name has AAAA record for
> > IPv6; but no A record in DNS), the referral mount fails.
>
> IIRC, that is a known bug, but it has been rarely hit up to this point
> (only case I'm aware of is during testing, which is how I know about
> this issue).
>
> The DNS upcall needs to be fixed to handle this case properly. As Bruce
> likes to say, patches welcome!
>
>
> > With debug enabled, I get something like this:
> >
> > nfs_follow_referral: referral at /nfs_export_1
> > nfs4_path: path server-1.domain.com:/nfs_export_1 from nfs_path
> > nfs4_path: path component /nfs_export_1
> > nfs4_validate_fspath: comparing path /nfs_export_1 with fsroot /nfs_export_1
> > ==> dns_query((null),server-2.domain.com,19,(null))
> > call request_key(,server-2.domain.com,)
> > <== dns_query() = -126
> > nfs_follow_referral: done
> > nfs_do_refmount: done
> > RPC:       shutting down nfs client for server-1.domain.com
> > RPC:       rpc_release_client(ffff97fdf170c600)
> > RPC:       destroying nfs client for server-1.domain.com
> > <-- nfs_d_automount(): error -2
> >
> > It looks like NFS client does an upcall to "/sbin/key.dns_resolver".
> > "/sbin/key.dns_resolver" works if callout info is set to 'ipv6'.
> > Otherwise it fails too.
> >
> > Does this mean setups with only IPv6 records (AAAA records in DNS),
> > NFSv4 referrals won't work if server returns FQDN in referral? If
> > anyone has tried this and made it work, please let me know.
> >
> > Thanks,
> > Pradeep
>
> --
> Chuck Lever
>
>
>

      reply	other threads:[~2021-03-25 17:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-23 21:56 NFSv4 referrals with FQDN Pradeep
2021-03-24 19:20 ` Chuck Lever III
2021-03-25 17:03   ` Pradeep [this message]

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=CAD8zhTC9Bk7GQoUtCz4FstknKEnyw4H1DsZXzUeekR5Bpgkkpw@mail.gmail.com \
    --to=pradeepthomas@gmail.com \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.