[Bug 1973101] Re: After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

2022-05-18 Thread Andreas Hasenack
> It was only partly successful, it failed to merge udp = y into the new
conf.

I don't see specific UDP options in the two /etc/default/nfs-* files
attached to this bug, so there was nothing to convert to
/etc/nfs.conf.d/local.conf regarding UDP. It's probably the default that
changed (before udp was enabled by default, now it isn't, for some
definition of "before").

Determining what the default was in each previous release we could be
upgrading from can quickly become complex and introduces risk of new
bugs, but if this becomes a common issue, I might look into that option.

I think addressing https://bugs.launchpad.net/ubuntu/+source/nfs-
utils/+bug/1973630 is the best step forward for the moment, and should
alleviate most concerns.

** Changed in: nfs-utils (Ubuntu)
   Status: Incomplete => Opinion

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1973101

Title:
  After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1973101/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1973101] Re: After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

2022-05-17 Thread Robert Dinse
It was only partly successful, it failed to merge udp = y into the new
conf.

Also Ubuntu's decision to compile their kernels without UDP support is
dumb.  It does not make a huge difference in size or speed of the kernel
and it does eliminate legacy support as the original NFS version 2 and
version 3 specifications had no support for TCP.

As it is I self compile a non-trivial portion of my server infrastructure 
because Ubuntu just does
not provide the facilities that I need.

I switched to Ubuntu from Redhat in 2012, when Redhat got to be this
way.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1973101

Title:
  After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1973101/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1973101] Re: After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

2022-05-17 Thread Andreas Hasenack
The kernel we ship has nfs udp disabled, I missed that you were running
a custom kernel. But thanks for the feedback.

I think we need to remove or add a big fat comment to the obsolete
/etc/default/nfs-* files, and I filed a bug for it:

https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1973630

That being said, the upgrade process should have migrated all the
/etc/default/nfs-* options to /etc/nfs.conf.d/local.conf, which gets
merged with /etc/nfs.conf at runtime. You can see the final merged
result with nfsconf --dump. If there was a problem in migrating some
option you had, that's something we will want to fix, and would
appreciate a bug about it. But fresh installs will have /etc/nfs.conf
only, with the defaults.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1973101

Title:
  After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1973101/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1973101] Re: After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

2022-05-16 Thread Robert Dinse
This is just plain WRONG.  The issue is NOT the kernel, upstream or
otherwise.  I am using 5.17.7 compiled directly from kernel source off
of kernel.org, and was using the SAME kernel under 20.04.

The issue was your new configuration file, /etc/nfs.conf, that did not
exist prior to 22.04, and thus I had no reason to look for it, having
UDP disabled by default even for versions 2 and 3 of NFS which makes
ZERO sense as version 2 and 3 of NFS did not support TCP.

Once I was made aware of this conf file by you simply turning version 2 and UDP 
on resolved my
issues.  You can close this bug if you like but having udp = n by default in 
this conf file is dumb, the current upstream kernel supports it just fine.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1973101

Title:
  After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1973101/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1973101] Re: After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

2022-05-16 Thread Andreas Hasenack
NFS UDP was disabled in the upstream kernel[1] in 2019, and the first
Ubuntu release with that change was 20.10 (groovy). I didn't find this
change in the 20.10 release notes, and added this bit to the 22.04
release notes[2] about a month before the release:

"""
UDP disabled for NFS mounts

Since Ubuntu 20.10 (“Groovy Gorilla”), the kernel option
CONFIG_NFS_DISABLE_UDP_SUPPORT=y is set and this disables using UDP as
the transport for NFS mounts, regardless of NFS version.

In practice, if you try to use udp, you will get this error:

$ sudo mount f1:/storage /mnt -o udp
mount.nfs: an incorrect mount option was specified
"""

If you can't get the older clients to use TCP, then I think the only way
is for you to stick to an older Ubuntu release that still has UDP NFS
support, like Focal (20.04).

1. 
https://patchwork.kernel.org/project/linux-nfs/patch/20191121160651.5317-1-olga.kornievsk...@gmail.com/
2. https://discourse.ubuntu.com/t/jammy-jellyfish-release-notes/24668

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1973101

Title:
  After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1973101/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Re: [Bug 1973101] Re: After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

2022-05-14 Thread Robert Dinse
Thank  you very much.  The disabling of udp by default is what 
broke version 2 and version 3, and since TCP were not part of the NFS 
specification for either of these versions, making it the default makes 
ZERO sense.

On 5/12/22 11:44, Andreas Hasenack wrote:
> rpcinfo -s j1-nfs-server

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1973101

Title:
  After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1973101/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1973101] Re: After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

2022-05-12 Thread Andreas Hasenack
I did some tests, and looks like I was able to configure ubuntu 22.04 to
export NFS v2. I was able to mount from an ubuntu 14.04 machine
specifying vers=2:

t1 is trusty (14.04), j1 is jammy (22.04):
root@t1:~# rpcinfo -s j1-nfs-server
   program version(s) netid(s) service owner
10  2,3,4 local,udp,tcp,udp6,tcp6  portmapper  superuser
100024  1 tcp6,udp6,tcp,udpstatus  113
15  3,2,1 tcp6,udp6,tcp,udpmountd  superuser
13  4,3,2 tcp6,tcp nfs superuser
100227  3,2   tcp6,tcp -   superuser
100021  4,3,1 tcp6,udp6,tcp,udpnlockmgrsuperuser

root@t1:~# mount j1-nfs-server:/storage /mnt -o vers=2
root@t1:~# mount -t nfs
j1-nfs-server:/storage on /mnt type nfs (rw,vers=2,addr=192.168.122.136)

Note that TCP was used, though, not UDP.

To allow the 22.04 server to export via UDP, add "udp=y" to the [nfsd]
section in /etc/nfs.conf and restart nfs-utils and nfs-server, and then
I can specify udp:

root@t1:~# mount j1-nfs-server:/storage /mnt -o vers=2,udp
j1-nfs-server:/storage on /mnt type nfs (rw,vers=2,udp,addr=192.168.122.136)


The config I used on the 22.04 server was:
root@j1-nfs-server:~# nfsconf --dump
[general]
 pipefs-directory = /run/rpc_pipefs

[mountd]
 manage-gids = 1

[nfsd]
 debug = all
 rdma = n
 threads = 8
 udp = y
 vers2 = y
 vers2,3,4 = y
 vers3 = y
 vers4 = y
 vers4.0 = y
 vers4.1 = y
 vers4.2 = y

That being said, from 22.04 I CANNOT mount an NFSv2 export:
root@j1-nfs-server:~# mount j1-nfs-server:/storage /mnt -o vers=2
mount.nfs: requested NFS version or transport protocol is not supported

So the TL:DR seems to be that 22.04 can export NFSv2, even via UDP, but
not MOUNT NFSv2.

To make progress in this bug, please show:
- nfsconf --dump on the 22.04 server
- attempted mount error on the NFSv2 and NFSv3 clients, including dmesg and 
/var/log/syslog (or equivalent) covering the attempt
- try enabling UDP in your 22.04 server's /etc/nfs.conf. Keep in mind that, 
since your server was upgraded, you will also have an 
/etc/nfs.conf.d/local.conf. You may want to merge local.conf with nfs.conf. See 
the release notes at [1] for more details, and perhaps the server guide[2] 
where the new nfs changes are also documented, in particular the upgrade 
scenario.


1. https://discourse.ubuntu.com/t/jammy-jellyfish-release-notes/24668
2. https://ubuntu.com/server/docs/service-nfs

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1973101

Title:
  After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1973101/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1973101] Re: After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

2022-05-12 Thread Andreas Hasenack
Hi,

I believe NFS version 2 is no longer supported. I will check when that
was dropped exactly.

Regarding v3, the UDP transport is no longer available, only TCP. Can
you check if your v3 clients are forcing UDP perhaps, and thus failing?
It would in fact be helpful if you could show the error you are getting
from the clients, and any useful logs they might have.

> I am also not at all appreciative of the unauthorized changes that the 
> upgrade made to my exports 
> file.

I'm not sure about the above, as far as I know the upgrade process does
not touch /etc/exports. It will create a new /etc/nfs.conf.d/local.conf
file if the upgrade detected you made changes to /etc/default/nfs-*.
What changes do you think were made to /etc/exports?

** Changed in: nfs-utils (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1973101

Title:
  After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1973101/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1973101] Re: After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

2022-05-11 Thread Robert Dinse
ubuntu-bug included mounts of other file systems on this machine, but it
is the EXPORTS that aren't working NOT the mounts from other systems.
Here is the content of /etc/exports:

# /etc/exports: the access control list for filesystems which may be exported
#   to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes   hostname1(rw,sync,no_subtree_check) 
hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#
/var/list   204.122.16.0/24(rw,async,no_root_squash,secure,subtree_check)
/mail   204.122.16.4(rw,async,no_root_squash,insecure,subtree_check)
/mail   204.122.16.0/24(rw,async,no_root_squash,secure,subtree_check)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1973101

Title:
  After upgrade to 22.04 NFS exports for vers 2 and 3 no longer work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1973101/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs