Merge ~ahasenack/ubuntu/+source/nfs-utils:jammy-nfs-utils-remerge into ubuntu/+source/nfs-utils:debian/sid

Proposed by Andreas Hasenack
Status: Merged
Merge reported by: Andreas Hasenack
Merged at revision: e96e5559473df8852ef387761697aa40713d6ef7
Proposed branch: ~ahasenack/ubuntu/+source/nfs-utils:jammy-nfs-utils-remerge
Merge into: ubuntu/+source/nfs-utils:debian/sid
Diff against target: 1925 lines (+1570/-10)
21 files modified
debian/NEWS (+48/-0)
debian/README.Ubuntu (+25/-0)
debian/changelog (+1170/-1)
debian/control (+6/-6)
debian/libnfsidmap1.docs (+1/-0)
debian/libnfsidmap1.install (+3/-1)
debian/nfs-common.bug-script (+10/-0)
debian/nfs-common.dirs (+1/-0)
debian/nfs-common.docs (+1/-0)
debian/nfs-common.postrm (+1/-0)
debian/nfs-kernel-server.bug-script (+10/-0)
debian/nfsconvert.py (+1/-1)
debian/not-installed (+5/-0)
debian/patches/remove-regex-from-docs.patch (+79/-0)
debian/patches/series (+1/-0)
debian/rules (+4/-1)
debian/source.apport (+32/-0)
debian/tests/control (+11/-0)
debian/tests/kerberos-mount (+38/-0)
debian/tests/util (+89/-0)
debian/tests/v3-mount (+34/-0)
Reviewer Review Type Date Requested Status
Bryce Harrington (community) Approve
Canonical Server Pending
Review via email: mp+416397@code.launchpad.net

Description of the change

Debian uploaded the new nfs-utils to testing, and this is a new merge on top of that.

There are no new features or changes in behavior, so I believe this does not need an FFe.

I'm introducing an apport hook. Highlights:
- it's a source package hook, so it will be used for any binary package produced by src:nfs-utils. In short, it's for both NFS clients and servers
- I'm unsure about the GDPR implications. I'm assuming there is a general blanket permission for apport hooks, and also given the fact that the user is prompted before submitting the report
- I could have created two hooks, one for nfs-common, one for nfs-kernel-server, but the difference in data attached would be small, so I went with one hook only, and using attach_file_if_exists()
- to test, use "APPORT_DISABLE_DISTRO_CHECK=1 ubuntu-bug nfs-common" or "APPORT_DISABLE_DISTRO_CHECK=1 ubuntu-bug nfs-kernel-server", and in the end select to view the report

Delta dropped: our fix for #1928259. I tested without it and the services are restarted just fine after a package upgrade. Debian also closed the corresponding bug with this 2.6.1 upload.

I was very tempted to drop this other delta, but am still keeping it:
    - d/control: don't provide libnfsidmap2 in libnfsidmap1. This
      package contains not only plugins, but an actual shared library,
      with a different soname.

I believe this is case #6 from [1]:
A: bin:libnfsidmap2 (from src:libnfsidmap)
B: bin:libnfsidmap1 (from src:nfs-utils 2.6.x)

Note the libnfsidmapN packages contain not only a sonamed library, but unversioned plugins, so libnfsidmap2 is not coinstallable with libnfsidmap1: the plugin files conflict.

The provides in the B package (new libnfsidmap1) is optional, according to [1]. Not only that, I think it's incorrect to have libnfsidmap1 provide libnfsidmap2, because packages linked with libnfsidmap2 and expecting that soname won't find it in libnfsidmap1 (the new binary package).

Other added delta:
- more DEP8 tests
- update the d/*.bug-script files. Ubuntu doesn't use them, so I can drop it, but it's useful to send to debian. If I do that before this review, I'll drop this delta.
- fix for the nfsconvert.py script, submitted to debian: https://salsa.debian.org/kernel-team/nfs-utils/-/merge_requests/12
Other bits of added delta are updates to NEWS and README files, which can be squashed in the next merge.

The debian/sid package now uses the nfsconvert.py script from Fedora, which I talked about in ubuntu-devel[2]. Debian opted to run it in postinst. If that script fails (and it was failing when the "-u" flag was used for one of the nfs daemons, hence my added delta to fix it), the postinst will fail. I debated with myself whether this should be better handled or not, and didn't reach a conclusion. We can basically go from failing explicitly, to not fail and ignore the error. Note that in the latter case, the service will still run, just not with the local customizations done to /etc/default/nfs-*. And the warning will be probably lost in the logs.

I opted to follow debian for this upload. The more exposure this script has, soon, the more data we will have to make a more informed decision.

PPA: https://launchpad.net/~ahasenack/+archive/ubuntu/nfs-utils-merge/

1. https://wiki.debian.org/PackageTransition
2. https://lists.ubuntu.com/archives/ubuntu-devel/2022-February/041843.html

To post a comment you must log in.
70e124b... by Andreas Hasenack

    - Add more DEP8 tests (LP: #1960828):
      + d/t/{control,kerberos-mount,util}: test NFSv4 krb5p mounts

503a110... by Andreas Hasenack

      + d/t/{control, v3-moun}t: specific NFSv3 mount test

e9f1241... by Andreas Hasenack

merge-changelogs

0bf5d36... by Andreas Hasenack

reconstruct-changelog

307fc63... by Andreas Hasenack

update-maintainer

e96e555... by Andreas Hasenack

Restore bug references in changelog

Revision history for this message
Bryce Harrington (bryce) wrote :

I'll take this review.

On first read thru of the diff, all looks good. I still need to play with the tests and apport hook, but the code makes sense.

I'm about as far from an expert on GDPR as can be, but I'm guessing that has to do with personal information privacy; the collected nfs config files aren't composed of personal information, except for usernames and mount points. Perhaps an unfortunately named mount point could expose something of personal note, but the mdadm and udisks2 apport hooks also capture mount points.

Making a single apport hook is a good practice. It's possible to do binary package symlinks if you really need to have multiple hook files, but want them all to share the same script (offhand I don't remember the details, but see the X.org hooks as an example).

Anyway, will follow up with more review comments probably Monday.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Debian will likely take my bug-script fixes[1], so that delta I can drop from this PR.

Same for the nfsconvert.py one[2], but since that one can break an install, I'll leave it in until we merge again.

1. https://salsa.debian.org/kernel-team/nfs-utils/-/merge_requests/13
2. https://salsa.debian.org/kernel-team/nfs-utils/-/merge_requests/12

Revision history for this message
Bryce Harrington (bryce) wrote :
Download full text (3.5 KiB)

Running the autopkgtest from inside an LXC container has trouble with statd, e.g.:

merges-jammy+22.04:~/pkg/NfsUtils/review-mp416397/nfs-utils-gu$ sudo autopkgtest ./nfs-utils_2.6.1-1ubuntu1.dsc -- null

make[4]: Entering directory '/tmp/autopkgtest.MecvAW/build.I5S/src/tests'
make[5]: Entering directory '/tmp/autopkgtest.MecvAW/build.I5S/src/tests'
FAIL: t0001-statd-basic-mon-unmon.sh
=================================================
   linux nfs-utils 2.6.1: tests/test-suite.log
=================================================

# TOTAL: 1
# PASS: 0
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: t0001-statd-basic-mon-unmon.sh
====================================

FAIL: problem starting statd
FAIL t0001-statd-basic-mon-unmon.sh (exit status: 1)

============================================================================
Testsuite summary for linux nfs-utils 2.6.1
============================================================================
# TOTAL: 1
# PASS: 0
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to <email address hidden>
============================================================================

I don't see a test-suite.log anywhere, but presumably inside an lxc container the test shouldn't run due to access limits. Maybe the autopkgtest needs tighter constraints?

There are a couple things pylint flags in nfsconvert.py, but these seem
a bit picky to me. Good news is it rates the code pretty high:

************* Module nfsconvert
nfsconvert.py:163:0: R0914: Too many local variables (20/15) (too-many-locals)
nfsconvert.py:214:8: W0706: The except handler raises immediately (try-except-raise)
nfsconvert.py:224:12: W0706: The except handler raises immediately (try-except-raise)
nfsconvert.py:163:0: R0912: Too many branches (17/12) (too-many-branches)
nfsconvert.py:278:12: W0706: The except handler raises immediately (try-except-raise)
nfsconvert.py:284:7: W0703: Catching too general exception Exception (broad-except)

-----------------------------------
Your code has been rated at 9.50/10

It does seem to have a point that immediately raising on Exception seems
a bit redundant, maybe it could display more useful error messages in
such cases?

    except Exception:
        raise

Anyway, understood this is code taken as-is from a third party so maybe
not necessary to polish ourselves.

I verified that nfs-common can be installed from the PPA, and once done the nfsconvert.py script is installed:

$ pkg-bin-contents nfs-common
/etc/init.d/nfs-common
/lib/systemd/system-generators/rpc-pipefs-generator
*mount.nfs
*rpc.statd
*showmount
*sm-notify
*blkmapd
*mountstats
*nfsconf
*nfsidmap
*nfsiostat
*nfsstat
*rpc.gssd
*rpc.idmapd
*rpc.svcgssd
*rpcdebug
*start-statd
/usr/share/bug/nfs-common/script
/usr/share/nfs-common/nfsconvert.py
*mount.nfs4 -> mount.nfs
*umount.nfs -> mount.nfs
*umount.nfs4 -> mount.nfs

merges-jammy+22.04:~/pkg/NfsUtils/review-mp416397/nfs-utils-gu$ ls...

Read more...

review: Needs Information
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

> FAIL: t0001-statd-basic-mon-unmon.sh

This is a build-time test, which doesn't even run because it requires a VM and other setup. I'm unsure why your autopkgtest run triggered it.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

> still working on running the apport hook synthetically, will report back on that later.

ubuntu-bug <package> should be enough, and then select the option to view the report instead of sending it

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

> Anyway, understood this is code taken as-is from a third party so maybe
> not necessary to polish ourselves.

I think it's important code that when breaks has bad consequences (failed maintainer script), so I'm +1 on improving it. I even wanted to add tests for it in DEP8 (I should file a bug about that). Right now I think it's more important to get it out there and see if we missed some configuration options or mechanisms in /etc/default/nfs-* that people might be using.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

> > FAIL: t0001-statd-basic-mon-unmon.sh
>
> This is a build-time test, which doesn't even run because it requires a VM and
> other setup. I'm unsure why your autopkgtest run triggered it.

It's because that autopkgtest command line triggered a build of the package. That test has two requirements:
# This test needs root privileges and /dev/log
check_root
check_dev_log

And both are then satisfied, and it ran. But it requires some manual setup, so it fails.

Normal builds do not meet those requirements, and the test won't run then. I just didn't find this message in the launchpad build logs, and I was quite expecting to find it:
check_root() {
    if [ $EUID -ne 0 ]; then
        echo "*** Skipping this test as it requires root privs ***"
        exit 77
    fi
}

Revision history for this message
Bryce Harrington (bryce) wrote :

ubuntu-bug (or directly via `apport-cli`) just returns an error, "The problem cannot be reported: This does not seem to be an official Ubuntu package. Please retry after updating the indexes of available packages, if that does not work then remove related third party packages and try again."

However, I was able to rig up a direct driver for the hook like:

## check-apport-hook ##

#!/usr/bin/python3

import os
import sys
import types
import importlib.machinery

SCRIPT_NAME = 'source.apport'
BASE_PATH = os.path.dirname(__file__)
sys.path.insert(0, os.path.dirname(__file__))

script_path = os.path.join(BASE_PATH, SCRIPT_NAME)
loader = importlib.machinery.SourceFileLoader(SCRIPT_NAME, script_path)
script = types.ModuleType(loader.name)
loader.exec_module(script)

report = {}
script.add_info(report, None)
for key in report:
    print('[%s]\n%s\n\n' % (key, report[key]))

Then run it via:

merges-jammy+22.04:~/pkg/NfsUtils/review-mp416397/nfs-utils-gu/debian$ sudo ./check-apport-hook | pastebinit

https://paste.ubuntu.com/p/9SyHXBcTJs/

The script runs ok, and the output looks sane.

(source_linux.py and the xorg apport hooks include a __main__ that allows manually running apport hooks for testing purposes; not required but handy and something to consider.)

review: Approve
Revision history for this message
Andreas Hasenack (ahasenack) wrote (last edit ):

> ubuntu-bug (or directly via `apport-cli`) just returns an error,

You missed where I said:
"""
- to test, use "APPORT_DISABLE_DISTRO_CHECK=1 ubuntu-bug nfs-common" or "APPORT_DISABLE_DISTRO_CHECK=1 ubuntu-bug nfs-kernel-server", and in the end select to view the report
"""

And I missed the variable the second time I mentioned ubuntu-bug, oh well

 :)

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Thanks!

Uploaded:

$ dput ubuntu ../nfs-utils_2.6.1-1ubuntu1_source.changes
D: Setting host argument.
Checking signature on .changes
gpg: ../nfs-utils_2.6.1-1ubuntu1_source.changes: Valid signature from AC983EB5BF6BCBA9
Checking signature on .dsc
gpg: ../nfs-utils_2.6.1-1ubuntu1.dsc: Valid signature from AC983EB5BF6BCBA9
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading nfs-utils_2.6.1-1ubuntu1.dsc: done.
  Uploading nfs-utils_2.6.1-1ubuntu1.debian.tar.xz: done.
  Uploading nfs-utils_2.6.1-1ubuntu1_source.buildinfo: done.
  Uploading nfs-utils_2.6.1-1ubuntu1_source.changes: done.
Successfully uploaded packages.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

And migrated

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/NEWS b/debian/NEWS
2new file mode 100644
3index 0000000..af94f5f
4--- /dev/null
5+++ b/debian/NEWS
6@@ -0,0 +1,48 @@
7+nfs-utils (1:2.6.1-1ubuntu1) jammy; urgency=medium
8+
9+ If there are local modifications to either /etc/default/nfs-common or
10+ /etc/default/nfs-kernel-server as installed by previous versions of
11+ the corresponding Debian packages, nfs-common will attempt a migration
12+ to the new configuration file. This migration is done by calling the
13+ /usr/share/nfs-common/nfsconvert.py script in postinst.
14+ .
15+ The new configuration file is /etc/nfs.conf, and the migration script will
16+ create /etc/nfs.conf.d/local.conf with the options defined in the old
17+ /etc/default/nfs-* configuration files. Therefore /etc/nfs.conf will
18+ contain the package defaults, and /etc/nfs.conf.d/local.conf the local
19+ customizations, overriding the defaults in nfs.conf.
20+ .
21+ If this migration fails for some reason, the package installation will
22+ also fail and manual intervention will be required.
23+ .
24+ This will probably involve temporarily removing the offending
25+ configuration option that was not handled by the migration script and
26+ configuring the package again. Please consult nfs.conf(5) and each
27+ daemon's manpage to determine how to translate the command line options
28+ previously defined in /etc/default/nfs-* to the new configuration file
29+ format.
30+
31+ -- Andreas Hasenack <andreas@canonical.com> Wed, 2 Mar 2022 16:41:49 -0300
32+
33+nfs-utils (1:2.6.1-1~exp1ubuntu1) jammy; urgency=medium
34+
35+ The configuration of the NFS related services has been moved to /etc/nfs.conf.
36+ This package still installs /etc/default/nfs-common and
37+ /etc/default/nfs-kernel-server, but they are ignored. A future version of this
38+ package will handle the migration somehow[1].
39+ .
40+ Due to the above, the old nfs-config.service unit file has been deprecated and
41+ removed.
42+ .
43+ All NFS related services are enabled by default. This means that depending on
44+ the NFS version that you intend to use, some services might be superfluous.
45+ For example, if you never intend to serve NFSv3, then you can safely disable
46+ the rpc-statd.service unit. Note that some NFSv4 service units will start
47+ only if Kerberos is setup.
48+ .
49+ libnfsidmapMAJOR and libnfsidmap-dev are now built from the nfs-utils source
50+ package. This change deprecates the source package src:libnfsidmap.
51+ .
52+ 1. https://bugs.launchpad.net/bugs/1960829
53+
54+ -- Andreas Hasenack <andreas@canonical.com> Tue, 25 Jan 2022 16:30:49 -0300
55diff --git a/debian/README.Ubuntu b/debian/README.Ubuntu
56new file mode 100644
57index 0000000..8911a6a
58--- /dev/null
59+++ b/debian/README.Ubuntu
60@@ -0,0 +1,25 @@
61+# libnfsidmap-regex
62+
63+nfs-utils upstream pulled[1] in the regex plugin from libnfsidmap-regex[2], but
64+that plugin is already packaged in Ubuntu Universe[3]. For now, to use the
65+regex plugin, please continue to install libnfsidmap-regex from Ubuntu
66+Universe.
67+
68+
69+# New configuration file
70+
71+nfs-common and nfs-kernel-server use a common configuration file /etc/nfs.conf.
72+They also support a /etc/nfs.conf.d/*.conf structure.
73+
74+When upgrading from older packages which only relied on /etc/default/nfs-common
75+and /etc/default/nfs-kernel-server, a migration will be attempted if necessary.
76+If successful, it will produce /etc/nfs.conf.d/local.conf with the local
77+customizations specified in those older config files, while /etc/nfs.conf will
78+remain with the default settings.
79+
80+
81+# Links
82+
83+1. http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=940caffdfb9953a2ccfecec81664e4a179753461
84+2. https://github.com/isginf/libnfsidmap-regex
85+3. https://launchpad.net/ubuntu/+source/libnfsidmap-regex
86diff --git a/debian/changelog b/debian/changelog
87index 316d472..c8ab091 100644
88--- a/debian/changelog
89+++ b/debian/changelog
90@@ -1,3 +1,48 @@
91+nfs-utils (1:2.6.1-1ubuntu1) jammy; urgency=medium
92+
93+ * Merge with Debian unstable (LP: #1960829). Remaining changes:
94+ - d/control: don't provide libnfsidmap2 in libnfsidmap1. This
95+ package contains not only plugins, but an actual shared library,
96+ with a different soname.
97+ - d/NEWS: explain some of the major changes in 2.6.x
98+ - Don't install the regex module, as it's built by
99+ src:libnfsidmap-regex which is in Universe (MIR: #1960824)
100+ + d/control: don't conflict/break/etc with libnfsidmap-regex
101+ + d/libnfsidmap1.install: don't install regex.so
102+ + d/not-installed: mark files we knowingly don't include in the
103+ packaging
104+ + d/p/remove-regex-from-docs.patch: remove the regex section from
105+ the idmapd.conf(5) manpage, as we are not building that plugin in
106+ this package
107+ - Update README files:
108+ + d/README.Ubuntu: explains some of the packaging decisions
109+ + d/README.Debian.nfsv4: removed as the content is out of date
110+ + d/nfs-common.docs: install README.Ubuntu instead of
111+ README.Debian.nfsv4
112+ + d/libnfsidmap1.docs: install README.Ubuntu
113+ * Dropped:
114+ - d/nfs-common.postinst: always start nfs-utils.service, so the restart in
115+ the #DEBHELPER# section can do its job if needed
116+ [Fixed with the upstream re-arrangement of systemd units]
117+ * Added:
118+ - d/nfsconvert.py: add short "u" option for mountd's no-udp
119+ - d/NEWS: update
120+ - d/nfs-common.postrm: also purge /etc/nfs.conf.d/local.conf
121+ - d/nfs-common.dirs: we also own /etc/nfs.conf.d
122+ - d/README.Ubuntu: update
123+ - d/nfs-*.bug-script: update to also include /etc/nfs.conf and
124+ /etc/nfs.conf.d/*.conf
125+ - New apport hook (LP: #1961058):
126+ + d/source.apport: apport hook for nfs-utils
127+ + d/control: build-depend dh-apport
128+ + d/rules: build with apport, and install the hook in the
129+ nfs-common package which is installed on both client and servers
130+ - Add more DEP8 tests (LP: #1960828):
131+ + d/t/{control,kerberos-mount,util}: test NFSv4 krb5p mounts
132+ + d/t/{control, v3-moun}t: specific NFSv3 mount test
133+
134+ -- Andreas Hasenack <andreas@canonical.com> Fri, 04 Mar 2022 17:44:10 -0300
135+
136 nfs-utils (1:2.6.1-1) unstable; urgency=medium
137
138 [ Ben Hutchings ]
139@@ -20,6 +65,65 @@ nfs-utils (1:2.6.1-1) unstable; urgency=medium
140
141 -- Ben Hutchings <benh@debian.org> Thu, 24 Feb 2022 14:54:49 +0100
142
143+nfs-utils (1:2.6.1-1~exp1ubuntu1) jammy; urgency=medium
144+
145+ * Merge with Debian experimental (LP: #1878601, #1812280). Remaining
146+ changes:
147+ - d/nfs-common.postinst: always start nfs-utils.service, so the restart in
148+ the #DEBHELPER# section can do its job if needed
149+ * Dropped:
150+ - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
151+ [Ubuntu has it, but not in main]
152+ - debian/nfs-common.default: remove NEED_STATD and related comment.
153+ [/etc/default/nfs-* files are no longer used]
154+ - debian/nfs-common.default: always start idmapd automatically; drop the
155+ configuration option.
156+ [/etc/default/nfs-* files are no longer used]
157+ - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
158+ argument of the serialize_krb5_ctx() function.
159+ [Was only needed when libgssglue-dev was used for build, which it
160+ isn't since nfs-utils 1:1.2.8-7]
161+ - Fixing nfs-mountd dependency on rpcbind (race condition) by adding
162+ "rpcbind.socket" to "nfs-mountd.service" as a dependency to avoid race
163+ conditions:
164+ - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
165+ [Fixed upstream]
166+ - truncate_gid*.patch: Backports from upstream to prevent truncating UIDs
167+ and GIDs over 65536 on certain architectures
168+ [Fixed upstream]
169+ - d/p/fix-start-ordering-1.patch, d/p/fix-start-ordering-2.patch, d/p/fix-
170+ start-ordering-3.patch, d/nfs-kernel-server.install: Fix systemd service
171+ start ordering
172+ [Fixed upstream. Patch 3 we don't need anymore because now the pkg
173+ is built with --with-systemd]
174+ - Depend on network-online.target when starting services.
175+ - d/p/lp1918141-use-network-online-target-01.patch: Declare a
176+ Wants=network-online.target on all NFS server services.
177+ - d/p/lp1918141-use-network-online-target-02.patch: Declare a
178+ After=network-online.target on all NFS server services. Thanks to
179+ Niklas Edmundsson for helping with the reproducer.
180+ [Fixed upstream]
181+ * Added:
182+ - d/control: don't provide libnfsidmap2 in libnfsidmap1
183+ - d/NEWS: explain some of the major changes in 2.6.x
184+ - Don't install the regex module, as it's built by
185+ src:libnfsidmap-regex which is in Universe (MIR: #1960824)
186+ + d/control: don't conflict/break/etc with libnfsidmap-regex
187+ + d/libnfsidmap1.install: don't install regex.so
188+ + d/not-installed: mark files we knowingly don't include in the
189+ packaging
190+ + d/p/remove-regex-from-docs.patch: remove the regex section from
191+ the idmapd.conf(5) manpage, as we are not building that plugin in
192+ this package
193+ - Update README files:
194+ + d/README.Ubuntu: explains some of the packaging decisions
195+ + d/README.Debian.nfsv4: removed as the content is out of date
196+ + d/nfs-common.docs: install README.Ubuntu instead of
197+ README.Debian.nfsv4
198+ + d/libnfsidmap1.docs: install README.Ubuntu
199+
200+ -- Andreas Hasenack <andreas@canonical.com> Wed, 16 Feb 2022 20:20:26 +0000
201+
202 nfs-utils (1:2.6.1-1~exp1) experimental; urgency=medium
203
204 [ Romain Perier ]
205@@ -141,6 +245,50 @@ nfs-utils (1:2.5.4-1~exp1) experimental; urgency=medium
206
207 -- Anibal Monsalve Salazar <anibal@debian.org> Sun, 05 Sep 2021 23:50:09 +1000
208
209+nfs-utils (1:1.3.4-6ubuntu1) impish; urgency=medium
210+
211+ * Merge from Debian unstable (LP: #1929406). Remaining changes:
212+ - debian/nfs-common.default: always start idmapd automatically; drop the
213+ configuration option.
214+ - debian/nfs-common.default: remove NEED_STATD and related comment.
215+ - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
216+ argument of the serialize_krb5_ctx() function.
217+ - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
218+ - Fixing nfs-mountd dependency on rpcbind (race condition) by adding
219+ "rpcbind.socket" to "nfs-mountd.service" as a dependency to avoid race
220+ conditions:
221+ - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
222+ - truncate_gid*.patch: Backports from upstream to prevent truncating UIDs
223+ and GIDs over 65536 on certain architectures
224+ - d/p/fix-start-ordering-1.patch, d/p/fix-start-ordering-2.patch, d/p/fix-
225+ start-ordering-3.patch, d/nfs-kernel-server.install: Fix systemd service
226+ start ordering
227+ - Depend on network-online.target when starting services.
228+ - d/p/lp1918141-use-network-online-target-01.patch: Declare a
229+ Wants=network-online.target on all NFS server services.
230+ - d/p/lp1918141-use-network-online-target-02.patch: Declare a
231+ After=network-online.target on all NFS server services. Thanks to
232+ Niklas Edmundsson for helping with the reproducer.
233+ - d/nfs-common.postinst: always start nfs-utils.service, so the restart in
234+ the #DEBHELPER# section can do its job if needed
235+ * Removed patches obsoleted/merged by upstream:
236+ - Remove hard-coded dep on libtirpc1; already merged upstream, but
237+ previously un-noted
238+ - d/nfs-utils_env.sh: alongside RPCSVCGSSDARGS, also export SVCGSSDARGS,
239+ which is the variable name expected by the rpc-svcgssd systemd service;
240+ already merged upstream, but previously un-noted
241+ - d/p/python3.diff obsoleted by
242+ d/p/Convert-remaining-python-scripts-to-python3.patch
243+ * d/p/nfsiostat-replace-list-reserved-word.patch: re-instated after
244+ previous merge removed a patch already merged upstream
245+ * d/p/01-sm-notify-in-sbin.patch,
246+ d/p/03-handle-mtab-symlink.patch,
247+ d/p/17-multiarch-kerberos-paths.patch,
248+ d/p/unbreak-blkmapd-rpc_pipefs-run.patch:
249+ reverted unnecessary refresh of patches
250+
251+ -- Dave Jones <dave.jones@canonical.com> Tue, 06 Jul 2021 11:47:33 +0100
252+
253 nfs-utils (1:1.3.4-6) unstable; urgency=medium
254
255 * mountstats: Remove a shebang
256@@ -158,6 +306,59 @@ nfs-utils (1:1.3.4-5) unstable; urgency=medium
257
258 -- Salvatore Bonaccorso <carnil@debian.org> Tue, 09 Mar 2021 17:17:42 +0100
259
260+nfs-utils (1:1.3.4-4ubuntu3) impish; urgency=medium
261+
262+ * d/nfs-common.postinst: always start nfs-utils.service, so the restart in
263+ the #DEBHELPER# section can do its job if needed (LP: #1928259)
264+
265+ -- Andreas Hasenack <andreas@canonical.com> Mon, 24 May 2021 17:59:39 -0300
266+
267+nfs-utils (1:1.3.4-4ubuntu2) hirsute; urgency=medium
268+
269+ * Depend on network-online.target when starting services. (LP: #1918141)
270+ - d/p/lp1918141-use-network-online-target-01.patch: Declare a
271+ Wants=network-online.target on all NFS server services.
272+ - d/p/lp1918141-use-network-online-target-02.patch: Declare a
273+ After=network-online.target on all NFS server services.
274+ Thanks to Niklas Edmundsson for helping with the reproducer.
275+
276+ -- Sergio Durigan Junior <sergio.durigan@canonical.com> Mon, 15 Mar 2021 18:26:22 -0400
277+
278+nfs-utils (1:1.3.4-4ubuntu1) hirsute; urgency=low
279+
280+ * Merge from Debian unstable. Remaining changes:
281+ - debian/nfs-common.default: always start idmapd automatically; drop
282+ the configuration option.
283+ - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
284+ argument of the serialize_krb5_ctx() function.
285+ - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
286+ - Fixing nfs-mountd dependency on rpcbind (race condition)
287+ by adding "rpcbind.socket" to "nfs-mountd.service" as a dependency
288+ to avoid race conditions:
289+ - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
290+ - Convert mountstats and nfsiostat scripts to Python3 and recommend
291+ python3 instead of python.
292+ - truncate_gid*.patch: Backports from upstream to prevent truncating
293+ UIDs and GIDs over 65536 on certain architectures
294+ - Remove hard-coded dep on libtirpc1.
295+ - d/nfs-utils_env.sh: alongside RPCSVCGSSDARGS, also export SVCGSSDARGS,
296+ which is the variable name expected by the rpc-svcgssd systemd service.
297+ - d/p/fix-start-ordering-1.patch,
298+ d/p/fix-start-ordering-2.patch,
299+ d/p/fix-start-ordering-3.patch,
300+ d/nfs-kernel-server.install:
301+ Fix systemd service start ordering
302+ * Dropped changes, included in Debian:
303+ - Allow compilation to succeed with -fno-common
304+ - debian/nfs-common.postinst: don't make /var/lib/nfs owned by statd.
305+ - debian/patches/CVE-2019-3689.patch: take user-id from
306+ /var/lib/nfs/sm in support/nsm/file.c, utils/statd/sm-notify.man,
307+ utils/statd/statd.man.
308+ - d/p/nfsiostat-replace-list-reserved-word.patch: fix nfsiostat crash due
309+ to using 'list' as a variable name.
310+
311+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 26 Oct 2020 09:25:58 -0700
312+
313 nfs-utils (1:1.3.4-4) unstable; urgency=medium
314
315 * Allow compilation to succeed with -fno-common (Closes: #957608)
316@@ -196,6 +397,73 @@ nfs-utils (1:1.3.4-3) unstable; urgency=medium
317
318 -- Salvatore Bonaccorso <carnil@debian.org> Fri, 13 Mar 2020 05:16:46 +0100
319
320+nfs-utils (1:1.3.4-2.5ubuntu6) groovy; urgency=medium
321+
322+ * Allow compilation to succeed with -fno-common (Closes: #957608)
323+ (cherry picked from 1:1.3.4-4)
324+
325+ -- Julian Andres Klode <juliank@ubuntu.com> Wed, 16 Sep 2020 16:20:55 +0200
326+
327+nfs-utils (1:1.3.4-2.5ubuntu5) groovy; urgency=medium
328+
329+ * SECURITY UPDATE: privilege escalation via directory permissions
330+ - debian/patches/CVE-2019-3689.patch: take user-id from
331+ /var/lib/nfs/sm in support/nsm/file.c, utils/statd/sm-notify.man,
332+ utils/statd/statd.man.
333+ - debian/nfs-common.postinst: don't make /var/lib/nfs owned by statd.
334+ - CVE-2019-3689
335+
336+ -- Marc Deslauriers <marc.deslauriers@ubuntu.com> Wed, 17 Jun 2020 08:42:59 -0400
337+
338+nfs-utils (1:1.3.4-2.5ubuntu4) groovy; urgency=medium
339+
340+ [ Rodrigo Barbieri ]
341+ * d/p/fix-start-ordering-1.patch,
342+ d/p/fix-start-ordering-2.patch,
343+ d/p/fix-start-ordering-3.patch,
344+ d/nfs-kernel-server.install:
345+ - Fix systemd service start ordering (LP: #1871214)
346+
347+ -- Dariusz Gadomski <dariusz.gadomski@canonical.com> Thu, 28 May 2020 17:45:23 -0400
348+
349+nfs-utils (1:1.3.4-2.5ubuntu3) focal; urgency=medium
350+
351+ * No-change rebuild for libevent soname changes.
352+
353+ -- Matthias Klose <doko@ubuntu.com> Sat, 19 Oct 2019 19:57:12 +0000
354+
355+nfs-utils (1:1.3.4-2.5ubuntu2) eoan; urgency=medium
356+
357+ * No-change upload with strops.h and sys/strops.h removed in glibc.
358+
359+ -- Matthias Klose <doko@ubuntu.com> Thu, 05 Sep 2019 11:04:05 +0000
360+
361+nfs-utils (1:1.3.4-2.5ubuntu1) eoan; urgency=low
362+
363+ * Merge from Debian unstable. Remaining changes:
364+ - debian/nfs-common.default: always start idmapd automatically; drop
365+ the configuration option.
366+ - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
367+ argument of the serialize_krb5_ctx() function.
368+ - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
369+ - Fixing nfs-mountd dependency on rpcbind (race condition)
370+ by adding "rpcbind.socket" to "nfs-mountd.service" as a dependency
371+ to avoid race conditions:
372+ - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
373+ - Convert mountstats and nfsiostat scripts to Python3 and recommend
374+ python3 instead of python.
375+ - truncate_gid*.patch: Backports from upstream to prevent truncating
376+ UIDs and GIDs over 65536 on certain architectures
377+ - Remove hard-coded dep on libtirpc1.
378+ - d/nfs-utils_env.sh: alongside RPCSVCGSSDARGS, also export SVCGSSDARGS,
379+ which is the variable name expected by the rpc-svcgssd systemd service.
380+ - d/p/nfsiostat-replace-list-reserved-word.patch: fix nfsiostat crash due
381+ to using 'list' as a variable name.
382+ * Dropped changes, included in Debian:
383+ - glibc-2.28-compat.patch: Include <sys/sysmacros.h> for major/minor.
384+
385+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 02 May 2019 22:43:12 -0700
386+
387 nfs-utils (1:1.3.4-2.5) unstable; urgency=medium
388
389 * Non-maintainer upload.
390@@ -221,6 +489,43 @@ nfs-utils (1:1.3.4-2.4) unstable; urgency=medium
391
392 -- Hilko Bengen <bengen@debian.org> Sat, 09 Feb 2019 15:26:27 +0100
393
394+nfs-utils (1:1.3.4-2.3ubuntu3) disco; urgency=medium
395+
396+ * d/p/nfsiostat-replace-list-reserved-word.patch: fix nfsiostat crash due to
397+ using 'list' as a variable name. (LP: #1821261)
398+
399+ -- Matthew Ruffell <matthew.ruffell@canonical.com> Tue, 02 Apr 2019 11:09:15 +1300
400+
401+nfs-utils (1:1.3.4-2.3ubuntu2) disco; urgency=medium
402+
403+ * d/nfs-utils_env.sh: alongside RPCSVCGSSDARGS, also export SVCGSSDARGS,
404+ which is the variable name expected by the rpc-svcgssd systemd service.
405+ (LP: #1616123)
406+
407+ -- Andreas Hasenack <andreas@canonical.com> Mon, 25 Mar 2019 09:24:29 -0300
408+
409+nfs-utils (1:1.3.4-2.3ubuntu1) disco; urgency=low
410+
411+ * Merge from Debian unstable. Remaining changes:
412+ - debian/nfs-common.default: always start idmapd automatically; drop
413+ the configuration option.
414+ - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
415+ argument of the serialize_krb5_ctx() function.
416+ - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
417+ (LP: #1446851)
418+ - Fixing nfs-mountd dependency on rpcbind (race condition) (LP: #1590799)
419+ by adding "rpcbind.socket" to "nfs-mountd.service" as a dependency
420+ to avoid race conditions:
421+ - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
422+ - Convert mountstats and nfsiostat scripts to Python3 and recommend
423+ python3 instead of python.
424+ - glibc-2.28-compat.patch: Include <sys/sysmacros.h> for major/minor.
425+ - truncate_gid*.patch: Backports from upstream to prevent truncating
426+ UIDs and GIDs over 65536 on certain architectures
427+ - Remove hard-coded dep on libtirpc1.
428+
429+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 31 Jan 2019 23:18:10 -0800
430+
431 nfs-utils (1:1.3.4-2.3) unstable; urgency=medium
432
433 * Non-maintainer upload.
434@@ -240,6 +545,51 @@ nfs-utils (1:1.3.4-2.3) unstable; urgency=medium
435
436 -- Laurent Bigonville <bigon@debian.org> Sat, 20 Oct 2018 15:04:07 +0200
437
438+nfs-utils (1:1.3.4-2.2ubuntu5) disco; urgency=medium
439+
440+ * Remove hard-coded dep on libtirpc1.
441+
442+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 13 Nov 2018 17:03:07 -0800
443+
444+nfs-utils (1:1.3.4-2.2ubuntu4) disco; urgency=medium
445+
446+ * No-change rebuild against latest libtirpc
447+
448+ -- Jeremy Bicha <jbicha@ubuntu.com> Sat, 10 Nov 2018 07:54:17 -0500
449+
450+nfs-utils (1:1.3.4-2.2ubuntu3) cosmic; urgency=medium
451+
452+ * truncate_gid*.patch: Backports from upstream to prevent truncating
453+ UIDs and GIDs over 65536 on certain architectures (LP: #1779962)
454+
455+ -- Adam Conrad <adconrad@ubuntu.com> Tue, 16 Oct 2018 06:06:43 -0600
456+
457+nfs-utils (1:1.3.4-2.2ubuntu2) cosmic; urgency=medium
458+
459+ * glibc-2.28-compat.patch: Include <sys/sysmacros.h> for major/minor.
460+
461+ -- Adam Conrad <adconrad@ubuntu.com> Tue, 16 Oct 2018 05:24:40 -0600
462+
463+nfs-utils (1:1.3.4-2.2ubuntu1) cosmic; urgency=medium
464+
465+ * Merge from Debian unstable. Remaining changes:
466+ - debian/nfs-common.default: always start idmapd automatically; drop
467+ the configuration option.
468+ - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
469+ argument of the serialize_krb5_ctx() function.
470+ - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
471+ (LP: #1446851)
472+ - Fixing nfs-mountd dependency on rpcbind (race condition) (LP: #1590799)
473+ by adding "rpcbind.socket" to "nfs-mountd.service" as a dependency
474+ to avoid race conditions:
475+ - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
476+ - Convert mountstats and nfsiostat scripts to Python3 and recommend
477+ python3 instead of python.
478+ * Dropped already integrated changes:
479+ - Provide UINT16_MAX definition if not provided by glibc.
480+
481+ -- Balint Reczey <rbalint@ubuntu.com> Thu, 23 Aug 2018 16:16:30 +0200
482+
483 nfs-utils (1:1.3.4-2.2) unstable; urgency=medium
484
485 * Non-maintainer upload.
486@@ -251,6 +601,55 @@ nfs-utils (1:1.3.4-2.2) unstable; urgency=medium
487
488 -- Adrian Bunk <bunk@debian.org> Tue, 06 Feb 2018 21:20:36 +0200
489
490+nfs-utils (1:1.3.4-2.1ubuntu5) bionic; urgency=medium
491+
492+ * Drop obsoleted 20-ticket-expired-error.patch (LP: #1709129)
493+ The original issue is fixed in the kernel starting with version 3.10.
494+ * Refresh patches
495+ * Remove whitespace after '=' in service files
496+
497+ -- Balint Reczey <rbalint@ubuntu.com> Tue, 16 Jan 2018 23:49:38 +0100
498+
499+nfs-utils (1:1.3.4-2.1ubuntu4) bionic; urgency=medium
500+
501+ * Convert mountstats and nfsiostat scripts to Python3 and recommend
502+ python3 instead of python. LP: #1735458.
503+ * Provide UINT16_MAX definition if not provided by glibc.
504+
505+ -- Matthias Klose <doko@ubuntu.com> Fri, 01 Dec 2017 03:49:39 +0100
506+
507+nfs-utils (1:1.3.4-2.1ubuntu2) artful; urgency=medium
508+
509+ * Fix flaky autopkgtest: a 'sync' after an update on the server does not
510+ guarantee that the change is visible on the client. For that, we need
511+ to flush the inode/dentry cache instead.
512+
513+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 31 Aug 2017 23:08:25 -0700
514+
515+nfs-utils (1:1.3.4-2.1ubuntu1) artful; urgency=low
516+
517+ * Merge from Debian unstable. Remaining changes:
518+ - debian/nfs-common.default: always start idmapd automatically; drop
519+ the configuration option.
520+ - Add 20-ticket-expired-error.patch: Add "-e" (ticket expiry is error)
521+ option to rpc.gssd to prevent hangs due to EKEYEXPIRED error from kernel
522+ on ticket expiry. (LP: #794112)
523+ - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
524+ argument of the serialize_krb5_ctx() function. (LP: #1331201)
525+ - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
526+ (LP: #1446851)
527+ - Add debian/nfs-common.maintscript: Clean up obsolete conffiles (upstart
528+ jobs) on upgrades. This needs to be kept until after 18.04 LTS.
529+ - Fixing nfs-mountd dependency on rpcbind (race condition) (LP: #1590799)
530+ by adding "rpcbind.socket" to "nfs-mountd.service" as a dependency
531+ to avoid race conditions:
532+ - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
533+ * Dropped already integrated changes:
534+ - Add a dependency on keyutils to nfs-common, so that idmapping will work
535+ under systemd. (LP: #1449074)
536+
537+ -- Balint Reczey <rbalint@ubuntu.com> Thu, 03 Aug 2017 20:50:38 +0200
538+
539 nfs-utils (1:1.3.4-2.1) unstable; urgency=medium
540
541 * Non-maintainer upload.
542@@ -284,6 +683,22 @@ nfs-utils (1:1.3.4-1) unstable; urgency=medium
543
544 -- Daniel Pocock <daniel@pocock.pro> Tue, 13 Dec 2016 19:37:42 +0100
545
546+nfs-utils (1:1.2.8-9.2ubuntu2) zesty; urgency=medium
547+
548+ * Fixing nfs-mountd dependency on rpcbind (race condition) (LP: #1590799)
549+ by adding "rpcbind.socket" to "nfs-mountd.service" as a dependency
550+ to avoid race conditions:
551+ - Add systemd-Fix-nfs-mountd-dependency-on-rpcbind.patch
552+ - Add systemd-unit-files-fix-up-dependencies-on-rpcbind.patch
553+
554+ -- Rafael David Tinoco <rafael.tinoco@canonical.com> Fri, 17 Mar 2017 12:19:53 +0100
555+
556+nfs-utils (1:1.2.8-9.2ubuntu1) yakkety; urgency=medium
557+
558+ * Merge fixes from Debian.
559+
560+ -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 12 Sep 2016 23:18:00 +0200
561+
562 nfs-utils (1:1.2.8-9.2) unstable; urgency=medium
563
564 * Non-maintainer upload.
565@@ -299,6 +714,27 @@ nfs-utils (1:1.2.8-9.2) unstable; urgency=medium
566
567 -- Andreas Henriksson <andreas@fatal.se> Thu, 11 Aug 2016 18:50:24 +0200
568
569+nfs-utils (1:1.2.8-9.1ubuntu1) yakkety; urgency=medium
570+
571+ * Drop upstart jobs, upstart is not in yakkety any more.
572+ * Drop libgssglue-dev build dep, --with-gssglue got dropped a while ago.
573+ * Merge with Debian unstable. Remaining Ubuntu changes:
574+ - debian/nfs-common.default: always start idmapd automatically; drop
575+ the configuration option.
576+ - Add 20-ticket-expired-error.patch: Add "-e" (ticket expiry is error)
577+ option to rpc.gssd to prevent hangs due to EKEYEXPIRED error from kernel
578+ on ticket expiry. (LP: #794112)
579+ - Add 90-gss-free-lucid-sec-context.patch: adjust for changes to the ctx
580+ argument of the serialize_krb5_ctx() function. (LP: #1331201)
581+ - Add remove-gssproxy.patch: Drop gssproxy as it does not exist in Ubuntu
582+ (LP: #1446851)
583+ - Add a dependency on keyutils to nfs-common, so that idmapping will work
584+ under systemd. (LP: #1449074)
585+ - Add debian/nfs-common.maintscript: Clean up obsolete conffiles (upstart
586+ jobs) on upgrades. This needs to be kept until after 18.04 LTS.
587+
588+ -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 28 Jul 2016 15:21:53 +0200
589+
590 nfs-utils (1:1.2.8-9.1) unstable; urgency=medium
591
592 Partial sync from ubuntu, included changes:
593@@ -363,6 +799,149 @@ nfs-utils (1:1.2.8-9.1) unstable; urgency=medium
594
595 -- Andreas Henriksson <andreas@fatal.se> Tue, 28 Jun 2016 02:05:16 +0200
596
597+nfs-utils (1:1.2.8-9ubuntu13) yakkety; urgency=medium
598+
599+ * Drop obsolete versioned initscripts dependency. (Closes: #804990)
600+
601+ -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 22 Jun 2016 16:09:37 +0200
602+
603+nfs-utils (1:1.2.8-9ubuntu12) xenial; urgency=medium
604+
605+ * Drop gssproxy as it's not in Ubuntu (LP: #1446851)
606+ * Fix no nfs doesn't show failed units on client (LP: #1452667)
607+
608+ -- Bryan Quigley <bryan.quigley@canonical.com> Wed, 02 Mar 2016 15:01:29 -0500
609+
610+nfs-utils (1:1.2.8-9ubuntu11) xenial; urgency=medium
611+
612+ * Drop obsolete and no-op dh_installinit --upstart-only option.
613+ (LP: #1519228)
614+
615+ -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 24 Nov 2015 09:39:56 +0100
616+
617+nfs-utils (1:1.2.8-9ubuntu10) wily; urgency=medium
618+
619+ * debian/nfs-common.links: Add naming compatibility symlinks for
620+ gssd.service → rpc-gssd.service and idmapd.service → /dev/null (as this
621+ is bound to/handled by nfs-server.service) to provide a match for the
622+ upstart job names. (LP: #1476010).
623+
624+ -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 28 Aug 2015 09:59:48 +0200
625+
626+nfs-utils (1:1.2.8-9ubuntu9) wily; urgency=medium
627+
628+ * Drop versioned mountall dependency. Trusty's is already newer and we don't
629+ need it with systemd under Ubuntu 15.04 and newer.
630+
631+ -- Martin Pitt <martin.pitt@ubuntu.com> Mon, 27 Jul 2015 10:37:24 +0200
632+
633+nfs-utils (1:1.2.8-9ubuntu8.1) vivid; urgency=medium
634+
635+ * Add a dependency on keyutils to nfs-common, so that idmapping will work
636+ under systemd. LP: #1449074.
637+
638+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 27 Apr 2015 17:46:03 +0200
639+
640+nfs-utils (1:1.2.8-9ubuntu8) vivid; urgency=medium
641+
642+ * Ship missing .override files
643+ * Ensure we only remove the manual flag from the statd-mounting.override
644+ file, and potentially, remove it if empty.
645+
646+ -- Didier Roche <didrocks@ubuntu.com> Wed, 01 Apr 2015 08:22:59 +0200
647+
648+nfs-utils (1:1.2.8-9ubuntu7) vivid; urgency=medium
649+
650+ * 27-systemd-enable-with-systemctl-statd.patch: let the admin
651+ enable/disable statd via systemd tools. (LP: #1428486)
652+ * debian/nfs-common.default: remove NEED_STATD and related comment.
653+ * debian/statd{,-mounting}.upstart: remove the usage of NEED_STATD, we'll
654+ directly disable the jobs now.
655+ * debian/rules: don't start statd by default (or it will trigger upstart
656+ and systemd statd unit startup).
657+ * debian/nfs-common.{preinst,postinst}: transition the conffile to the new
658+ template and enable statd services in both upstart and systemd if
659+ NEED_STATD was set to yes.
660+ * debian/control, debian/*install: move nfs-utils.service to nfs-common
661+ package. (LP: #1436304)
662+
663+ -- Didier Roche <didrocks@ubuntu.com> Thu, 12 Mar 2015 09:13:06 +0100
664+
665+nfs-utils (1:1.2.8-9ubuntu6) vivid; urgency=medium
666+
667+ * Revert previous upload; per upstream, rpc.idmapd is not used when the
668+ nfsidmap utility is available and configured for use in request-key
669+ upcalls. So rpc.idmapd does not need to be started on clients anymore.
670+
671+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 06 Mar 2015 10:19:57 -0800
672+
673+nfs-utils (1:1.2.8-9ubuntu5) vivid; urgency=medium
674+
675+ * Add 27-systemd-start-nfs-idmapd-also-on-clients.patch: idmapd is needed
676+ for clients too, so start it from nfs-client.target and stop binding to it
677+ in nfs-server.service. (LP: #1428961)
678+
679+ -- Martin Pitt <martin.pitt@ubuntu.com> Fri, 06 Mar 2015 11:56:46 +0100
680+
681+nfs-utils (1:1.2.8-9ubuntu4) vivid; urgency=medium
682+
683+ * Add autopkgtest for installing server and client on localhost, setting up
684+ two exports, rebooting, and ensuring that the NFS mounts work.
685+ * Add 23-systemd-relax-dependencies.patch: Stop depending on basic.target in
686+ the daemons which still do; i. e. add DefaultDependencies=no. This makes
687+ it possible to run NFS during early boot, helps if you e. g. have /var
688+ on NFS, and avoids dependency cycles with rcS init.d scripts which depend
689+ on $remote_fs. (LP: #1428487)
690+ * Shift number prefixes of other systemd patches accordingly, and adjust
691+ them to the above patch.
692+
693+ -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 05 Mar 2015 10:43:54 +0100
694+
695+nfs-utils (1:1.2.8-9ubuntu3) vivid; urgency=medium
696+
697+ * Add 00git-start-statd-systemd.patch: Latest start-statd script from
698+ 1.3.2 to start rpc-statd.service under systemd.
699+ * Add 23-systemd-pipefs_in_run.patch: systemd: Mount rpc_pipefs in /run instead of
700+ /var/lib/nfs/, like in the upstart units.
701+ * Add 24-systemd-daemon-paths.patch: Adjust program paths in systemd units.
702+ * debian/nfs-kernel-server.links: Add nfs-kernel-server.service alias
703+ symlink, to match SysV init script.
704+ * Add 25-systemd-server-before-client.patch: Order NFS server before client,
705+ to make mounting NFS shares from localhost work reliably.
706+ * Add debian/nfs-utils_env.sh: Translate our /etc/default files into runtime
707+ configuration for nfs-config.service.
708+ * debian/nfs-{common,kernel-server}.install: Install systemd units.
709+ * debian/rules: Enable/start systemd units. (LP: #1312976)
710+
711+ -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 05 Mar 2015 07:46:41 +0100
712+
713+nfs-utils (1:1.2.8-9ubuntu2) vivid; urgency=medium
714+
715+ * debian/nfs-common.statd.upstart: wait for rpcbind job instead of
716+ relying on portmap compatibility event. (LP: #1391296)
717+
718+ -- Marc Deslauriers <marc.deslauriers@ubuntu.com> Tue, 18 Nov 2014 19:07:15 -0500
719+
720+nfs-utils (1:1.2.8-9ubuntu1) utopic; urgency=medium
721+
722+ * Merge from Debian usntable, remaining changes:
723+ - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
724+ debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
725+ debian/rules: drop nfs-common init script in favor of upstart jobs.
726+ - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
727+ - Depend on mountall (>= 2.41) to avoid deadlocks on boot.
728+ - debian/nfs-common.default: always start idmapd automatically; drop
729+ the configuration option.
730+ - nfs-kernel-server.init: Unmount nfsd fs when init script stops
731+ - Allow issuing options to rpc.nfsd
732+ - Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs
733+ due to EKEYEXPIRED error from kernel on ticket expiry.
734+ - drop nfs-kernel-server's LSB dependency on nfs-common.
735+ - Add patch to adjust for changes to the ctx argument of the
736+ serialize_krb5_ctx() function.
737+
738+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 21 Aug 2014 11:29:38 -0700
739+
740 nfs-utils (1:1.2.8-9) unstable; urgency=medium
741
742 * debian/patches/22-mountd-fix-segfault-in-add_name-with-newer-gcc-
743@@ -371,6 +950,26 @@ nfs-utils (1:1.2.8-9) unstable; urgency=medium
744
745 -- Steve Langasek <vorlon@debian.org> Tue, 12 Aug 2014 17:12:38 -0700
746
747+nfs-utils (1:1.2.8-8ubuntu1) utopic; urgency=medium
748+
749+ * Merge from Debian unstable, remaining changes:
750+ - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
751+ debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
752+ debian/rules: drop nfs-common init script in favor of upstart jobs.
753+ - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
754+ - Depend on mountall (>= 2.41) to avoid deadlocks on boot.
755+ - debian/nfs-common.default: always start idmapd automatically; drop
756+ the configuration option.
757+ - nfs-kernel-server.init: Unmount nfsd fs when init script stops
758+ - Allow issuing options to rpc.nfsd
759+ - Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs
760+ due to EKEYEXPIRED error from kernel on ticket expiry.
761+ - drop nfs-kernel-server's LSB dependency on nfs-common.
762+ - Add patch to adjust for changes to the ctx argument of the
763+ serialize_krb5_ctx() function.
764+
765+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 11 Aug 2014 01:10:28 -0700
766+
767 nfs-utils (1:1.2.8-8) unstable; urgency=medium
768
769 * Upload to unstable where this belongs.
770@@ -391,6 +990,38 @@ nfs-utils (1:1.2.8-7) experimental; urgency=medium
771
772 -- Anibal Monsalve Salazar <anibal@debian.org> Sat, 02 Aug 2014 12:25:47 +0100
773
774+nfs-utils (1:1.2.8-6ubuntu4) utopic; urgency=medium
775+
776+ * Add patch from Sergio Gelato to adjust for changes to the ctx
777+ argument of the serialize_krb5_ctx() function (LP: #1331201)
778+
779+ -- Adam Conrad <adconrad@ubuntu.com> Wed, 25 Jun 2014 12:23:09 -0600
780+
781+nfs-utils (1:1.2.8-6ubuntu3) utopic; urgency=medium
782+
783+ * Soon nfs-common.init is going to be split on the Debian side, and
784+ nfs-kernel-server init.d's LSB depends on "nfs-common" has never done
785+ anything in Ubuntu. Drop it to avoid breaking insserv. (LP: #1323274)
786+
787+ -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 27 May 2014 11:38:51 +0200
788+
789+nfs-utils (1:1.2.8-6ubuntu1) trusty; urgency=medium
790+
791+ * Merge from Debian unstable, remaining changes:
792+ - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
793+ debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
794+ debian/rules: drop nfs-common init script in favor of upstart jobs.
795+ - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
796+ - Depend on mountall (>= 2.41) to avoid deadlocks on boot.
797+ - debian/nfs-common.default: always start idmapd automatically; drop
798+ the configuration option.
799+ - nfs-kernel-server.init: Unmount nfsd fs when init script stops
800+ - Allow issuing options to rpc.nfsd
801+ - Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs
802+ due to EKEYEXPIRED error from kernel on ticket expiry.
803+
804+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 25 Feb 2014 09:18:47 -0800
805+
806 nfs-utils (1:1.2.8-6) unstable; urgency=medium
807
808 * Fix the sec=krb5* handling in debian/nfs-common.init to properly match
809@@ -417,6 +1048,29 @@ nfs-utils (1:1.2.8-6) unstable; urgency=medium
810
811 -- Steve Langasek <vorlon@debian.org> Mon, 24 Feb 2014 18:11:17 +0000
812
813+nfs-utils (1:1.2.8-5ubuntu1) trusty; urgency=medium
814+
815+ * Merge from Debian unstable, remaining changes:
816+ - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
817+ debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
818+ debian/rules: drop nfs-common init script in favor of upstart jobs.
819+ - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
820+ - Depend on mountall (>= 2.41) to avoid deadlocks on boot.
821+ - debian/nfs-common.default: always start idmapd automatically; drop
822+ the configuration option.
823+ - nfs-kernel-server.init: Unmount nfsd fs when init script stops
824+ - Allow issuing options to rpc.nfsd
825+ - Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs
826+ due to EKEYEXPIRED error from kernel on ticket expiry.
827+ * Dropped changes, included in Debian:
828+ - Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
829+ in /var/lib.
830+ - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
831+ in the postinst, this is redundant anyway and the nfs-common init script
832+ is gone now.
833+
834+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 13 Jan 2014 21:13:11 -0800
835+
836 nfs-utils (1:1.2.8-5) unstable; urgency=medium
837
838 [ Ben Hutchings ]
839@@ -433,6 +1087,37 @@ nfs-utils (1:1.2.8-5) unstable; urgency=medium
840
841 -- Steve Langasek <vorlon@debian.org> Mon, 13 Jan 2014 22:07:53 +0000
842
843+nfs-utils (1:1.2.8-4ubuntu1) trusty; urgency=low
844+
845+ * Merge from Debian unstable, remaining changes:
846+ - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
847+ debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
848+ debian/rules: drop nfs-common init script in favor of upstart jobs.
849+ - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
850+ - Depend on mountall (>= 2.41) to avoid deadlocks on boot.
851+ - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
852+ in the postinst, this is redundant anyway and the nfs-common init script
853+ is gone now.
854+ - nfs-kernel-server.init: Unmount nfsd fs when init script stops
855+ - Allow issuing options to rpc.nfsd
856+ - debian/nfs-common.defaults: always start idmapd automatically; drop
857+ the configuration option.
858+ - Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
859+ in /var/lib.
860+ - Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs due
861+ to EKEYEXPIRED error from kernel on ticket expiry. LP: #794112
862+ - Fix the stop conditions: never stop on 'runlevel [06]' since that gives
863+ the system no time to cleanly unmount nfs mounts; instead, stop only on
864+ the unmounted-remote-filesystems event. LP: #569094.
865+ * Dropped changes:
866+ - build-depend on debhelper (>= 7.3.15ubuntu3): all supported debhelper
867+ versions meet this requirement now, so it's not worth carrying a delta
868+ for.
869+ * Drop removal handling for rpc_pipefs.conf, which has been obsolete since
870+ before the 12.04 release.
871+
872+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 21 Nov 2013 13:35:20 -0800
873+
874 nfs-utils (1:1.2.8-4) unstable; urgency=low
875
876 * The configure option name is --with-gssglue, not --with-libgssglue.
877@@ -451,6 +1136,64 @@ nfs-utils (1:1.2.8-3) unstable; urgency=low
878
879 -- Steve Langasek <vorlon@debian.org> Fri, 31 May 2013 17:59:53 -0700
880
881+nfs-utils (1:1.2.8-2ubuntu2) saucy; urgency=low
882+
883+ * Start statd on virtual-filesystems instead of on local-filesystems;
884+ this works and avoids a deadlock in the nfsroot case. Also, adjust
885+ idmapd to not block MOUNTPOINT=/ for the same reason. This isn't a
886+ perfect fix since idmapd would be needed if we ever wanted nfsv4
887+ nfsroot, but implementing that can wait until we have /usr mounting from
888+ the initramfs. LP: #537133.
889+
890+ -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 11 Sep 2013 15:00:02 -0700
891+
892+nfs-utils (1:1.2.8-2ubuntu1) saucy; urgency=low
893+
894+ [ Stéphane Graber ]
895+ * Merge from Debian unstable.
896+ - includes upstream fix for gssd -R. LP: #1179992.
897+ - includes upstream fix for an exportfs crash when using long paths.
898+ LP: #1062022.
899+ * Remaining changes:
900+ - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
901+ debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
902+ debian/rules: drop nfs-common init script in favor of upstart jobs,
903+ and build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart
904+ init handling.
905+ - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
906+ - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
907+ in the postinst, this is redundant anyway and the nfs-common init script
908+ is gone now.
909+ - nfs-kernel-server.init: Unmount nfsd fs when init script stops
910+ - Allow issuing options to rpc.nfsd
911+ - debian/nfs-common.defaults: always start idmapd automatically; drop
912+ the configuration option.
913+ - Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
914+ in /var/lib.
915+ - Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs due
916+ to EKEYEXPIRED error from kernel on ticket expiry. LP: #794112
917+ - Adjust upstart jobs to treat TYPE=nfs and TYPE=nfs4 mounts identically,
918+ since TYPE=nfs4 is considered deprecated.
919+ - Fix various boot-time race conditions between mountall and nfs-utils by
920+ moving handling of the 'mounting' events to separate gssd-mounting and
921+ idmapd-mounting jobs. Requires mountall 2.41 or better to avoid deadlock
922+ on boot. LP: #643289, LP: #611397.
923+ - Fix the stop conditions: never stop on 'runlevel [06]' since that gives
924+ the system no time to cleanly unmount nfs mounts; instead, stop only on
925+ the unmounted-remote-filesystems event. LP: #569094.
926+ - Newer versions of gssd don't talk to portmap, so don't make the upstart
927+ job depend on it.
928+ - Add an instance to statd-mounting, and change it to just wait for statd
929+ instead of trying to trigger it potentially out of order. This also
930+ means we don't need to try to force portmap to start from statd.
931+
932+ [ Steve Langasek ]
933+ * Build --with-gssglue; linking directly against libgssapi-krb5 results in
934+ rpc.gssd trying to incorrectly pass opaque pointers between two different
935+ gss implementations (via libtirpc).
936+
937+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 31 May 2013 18:05:03 -0700
938+
939 nfs-utils (1:1.2.8-2) unstable; urgency=medium
940
941 * Fix reportbug scripts to use rpcinfo in /usr/sbin.
942@@ -480,12 +1223,80 @@ nfs-utils (1:1.2.8-1) unstable; urgency=low
943
944 -- Luk Claes <luk@zomers.be> Fri, 10 May 2013 14:27:47 +0200
945
946+nfs-utils (1:1.2.6-3ubuntu2) quantal; urgency=low
947+
948+ [ Steve Langasek ]
949+ * Adjust upstart jobs to treat TYPE=nfs and TYPE=nfs4 mounts identically,
950+ since TYPE=nfs4 is considered deprecated.
951+ * Fix various boot-time race conditions between mountall and nfs-utils by
952+ moving handling of the 'mounting' events to separate gssd-mounting and
953+ idmapd-mounting jobs. Requires mountall 2.41 or better to avoid deadlock
954+ on boot. LP: #643289, LP: #611397.
955+ * Fix the stop conditions: never stop on 'runlevel [06]' since that gives
956+ the system no time to cleanly unmount nfs mounts; instead, stop only on
957+ the unmounted-remote-filesystems event. LP: #569094.
958+ * Newer versions of gssd don't talk to portmap, so don't make the upstart
959+ job depend on it.
960+ * Add an instance to statd-mounting, and change it to just wait for statd
961+ instead of trying to trigger it potentially out of order. This also means
962+ we don't need to try to force portmap to start from statd.
963+
964+ [ Matthew L. Dailey ]
965+ * Add "-e" (ticket expiry is error) option to rpc.gssd to prevent hangs due
966+ to EKEYEXPIRED error from kernel on ticket expiry. LP: #794112
967+
968+ -- Stéphane Graber <stgraber@ubuntu.com> Fri, 28 Sep 2012 13:58:43 -0400
969+
970+nfs-utils (1:1.2.6-3ubuntu1) quantal; urgency=low
971+
972+ * Merge from Debian unstable. Remaining changes:
973+ - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
974+ debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
975+ debian/rules: drop nfs-common init script in favor of upstart jobs,
976+ and build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart
977+ init handling.
978+ - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
979+ - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
980+ in the postinst, this is redundant anyway and the nfs-common init script
981+ is gone now.
982+ - nfs-kernel-server.init: Unmount nfsd fs when init script stops
983+ - Allow issuing options to rpc.nfsd
984+ - debian/nfs-common.defaults: always start idmapd automatically; drop
985+ the configuration option.
986+ - Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
987+ in /var/lib.
988+
989+ -- Logan Rosen <logatronico@gmail.com> Sun, 05 Aug 2012 00:56:05 -0400
990+
991 nfs-utils (1:1.2.6-3) unstable; urgency=low
992
993 * Iterate through exports.d to look for expors (Closes: #676604).
994
995 -- Luk Claes <luk@zomers.be> Tue, 10 Jul 2012 19:38:22 +0200
996
997+nfs-utils (1:1.2.6-2ubuntu1) quantal; urgency=low
998+
999+ * Merge from Debian unstable, remaining changes:
1000+ - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
1001+ debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1002+ debian/rules: drop nfs-common init script in favor of upstart jobs,
1003+ and build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart
1004+ init handling.
1005+ - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
1006+ - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1007+ in the postinst, this is redundant anyway and the nfs-common init script
1008+ is gone now.
1009+ - nfs-kernel-server.init: Unmount nfsd fs when init script stops
1010+ - Allow issuing options to rpc.nfsd
1011+ - debian/nfs-common.defaults: always start idmapd automatically; drop
1012+ the configuration option.
1013+ - Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
1014+ in /var/lib.
1015+ * Dropped changes, included in Debian:
1016+ - nfs-kernel-server.default: Add comment about how to disable nfs4.
1017+
1018+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 22 Jun 2012 11:25:28 -0700
1019+
1020 nfs-utils (1:1.2.6-2) unstable; urgency=low
1021
1022 * Move open-iscsi and watchdog to Suggests.
1023@@ -513,6 +1324,44 @@ nfs-utils (1:1.2.5-4) unstable; urgency=low
1024
1025 -- Luk Claes <luk@debian.org> Sun, 22 Jan 2012 15:46:25 +0100
1026
1027+nfs-utils (1:1.2.5-3ubuntu3) precise; urgency=low
1028+
1029+ * In some cases, /var/lib/nfs/rpc_pipefs is successfully unmounted on
1030+ upgrade but the directory still has contents within it. Since this is
1031+ /var/lib we shouldn't assume it's ok for delete these; instead, pass
1032+ --ignore-fail-on-non-empty to rmdir. LP: #954619.
1033+
1034+ -- Steve Langasek <steve.langasek@ubuntu.com> Sun, 08 Apr 2012 22:44:40 -0700
1035+
1036+nfs-utils (1:1.2.5-3ubuntu2) precise; urgency=low
1037+
1038+ * Fix wrong path to rpcinfo in the init script, which breaks use of nfs
1039+ v3 support in the server. LP: #945651.
1040+
1041+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 27 Mar 2012 10:44:03 -0700
1042+
1043+nfs-utils (1:1.2.5-3ubuntu1) precise; urgency=low
1044+
1045+ * Merge from Debian testing, remaining changes:
1046+ - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
1047+ debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1048+ debian/rules: drop nfs-common init script in favor of upstart jobs,
1049+ and build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart
1050+ init handling.
1051+ - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
1052+ - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1053+ in the postinst, this is redundant anyway and the nfs-common init script
1054+ is gone now.
1055+ - nfs-kernel-server.default: Add comment about how to disable nfs4.
1056+ - nfs-kernel-server.init: Unmount nfsd fs when init script stops
1057+ - Allow issuing options to rpc.nfsd
1058+ - debian/nfs-common.defaults: always start idmapd automatically; drop
1059+ the configuration option.
1060+ - Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
1061+ in /var/lib.
1062+
1063+ -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 04 Jan 2012 09:20:27 -0800
1064+
1065 nfs-utils (1:1.2.5-3) unstable; urgency=low
1066
1067 [ Roger Leigh ]
1068@@ -531,6 +1380,33 @@ nfs-utils (1:1.2.5-3) unstable; urgency=low
1069
1070 -- Luk Claes <luk@debian.org> Fri, 09 Dec 2011 11:55:31 +0100
1071
1072+nfs-utils (1:1.2.5-2ubuntu1) precise; urgency=low
1073+
1074+ * Merge from Debian testing, remaining changes:
1075+ - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
1076+ debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1077+ debian/rules: drop nfs-common init script in favor of upstart jobs,
1078+ and build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart
1079+ init handling.
1080+ - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
1081+ - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1082+ in the postinst, this is redundant anyway and the nfs-common init script
1083+ is gone now.
1084+ - nfs-kernel-server.default: Add comment about how to disable nfs4.
1085+ - nfs-kernel-server.init: Unmount nfsd fs when init script stops
1086+ - Allow issuing options to rpc.nfsd
1087+ - debian/nfs-common.defaults: always start idmapd automatically; drop
1088+ the configuration option.
1089+ - Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
1090+ in /var/lib.
1091+ * Dropped changes, superseded in Debian/upstream:
1092+ - debian/patches/multiarch-kerberos-paths: Search for kerberos libs
1093+ in multiarch locations.
1094+ - ubuntu-fix-kernel-version-handling: avoid segfaults from short kernel
1095+ version numbers.
1096+
1097+ -- Steve Langasek <steve.langasek@ubuntu.com> Sun, 30 Oct 2011 00:12:50 +0000
1098+
1099 nfs-utils (1:1.2.5-2) unstable; urgency=low
1100
1101 * debian/patches/18-dont-use-PAGE_SIZE.patch
1102@@ -573,6 +1449,57 @@ nfs-utils (1:1.2.4-2) UNRELEASED; urgency=low
1103
1104 -- Luk Claes <luk@debian.org> Sat, 06 Aug 2011 07:38:48 +0200
1105
1106+nfs-utils (1:1.2.4-1ubuntu4) precise; urgency=low
1107+
1108+ * debian/nfs-common.postinst: handle the case when /var/lib/nfs/rpc_pipefs
1109+ is not already mounted on upgrade - dpkg will already remove the
1110+ directory for us on upgrade, so don't fail when it's missing.
1111+ LP: #882799.
1112+
1113+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 27 Oct 2011 16:21:22 -0700
1114+
1115+nfs-utils (1:1.2.4-1ubuntu3) precise; urgency=low
1116+
1117+ * debian/nfs-common.defaults, debian/nfs-common.idmapd.upstart: idmapd
1118+ should always be started automatically, because we can no longer assume
1119+ that a mount of type 'nfs' in /etc/fstab is not nfs4. This also lets
1120+ things work by default with nfs4 autofs. LP: #662711.
1121+ * Move /var/lib/nfs/rpc_pipefs to /run/rpc_pipefs. This does not belong
1122+ in /var/lib.
1123+ * Ignore errors from mount if the filesystem is already mounted.
1124+ LP: #811823.
1125+
1126+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 27 Oct 2011 12:04:58 -0700
1127+
1128+nfs-utils (1:1.2.4-1ubuntu2) oneiric; urgency=low
1129+
1130+ * Allow issuing options to rpc.nfsd
1131+ (LP: #567491)
1132+
1133+ -- Bryce Harrington <bryce@ubuntu.com> Mon, 08 Aug 2011 16:37:26 -0700
1134+
1135+nfs-utils (1:1.2.4-1ubuntu1) oneiric; urgency=low
1136+
1137+ * Merge from Debian unstable (LP: #728586, LP: #789117), remaining
1138+ changes:
1139+ - debian/nfs-common.{statd,statd-mounting,gssd,idmapd}.upstart,
1140+ debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1141+ debian/rules: drop nfs-common init script in favor of upstart jobs,
1142+ and build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart
1143+ init handling.
1144+ - Depend on rpcbind (>= 0.2.0-6ubuntu1) for upstart support.
1145+ - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1146+ in the postinst, this is redundant anyway and the nfs-common init script
1147+ is gone now.
1148+ - nfs-kernel-server.default: Add comment about how to disable nfs4.
1149+ - debian/patches/multiarch-kerberos-paths: Search for kerberos libs
1150+ in multiarch locations.
1151+ - nfs-kernel-server.init: Unmount nfsd fs when init script stops
1152+ - ubuntu-fix-kernel-version-handling: avoid segfaults from short kernel
1153+ version numbers.
1154+
1155+ -- Steve Langasek <steve.langasek@ubuntu.com> Sat, 23 Jul 2011 17:54:36 +0200
1156+
1157 nfs-utils (1:1.2.4-1) unstable; urgency=low
1158
1159 * New upstream version
1160@@ -660,6 +1587,93 @@ nfs-utils (1:1.2.2-5) unstable; urgency=low
1161
1162 -- Luk Claes <luk@debian.org> Wed, 16 Mar 2011 23:10:15 +0100
1163
1164+nfs-utils (1:1.2.2-4ubuntu8) oneiric; urgency=low
1165+
1166+ * debian/nfs-common.idmapd.upstart: don't use a script unnecessarily for
1167+ our job when we can exec directly - making the job more resilient in
1168+ the face of races with /usr being mounted. LP: #811823.
1169+ * Drop rpc_pipefs.conf; this has gotten far more complicated than it
1170+ should be, just do the mount in-line in each of the gssd and idmapd
1171+ jobs.
1172+
1173+ -- Steve Langasek <steve.langasek@ubuntu.com> Sun, 17 Jul 2011 02:23:01 -0700
1174+
1175+nfs-utils (1:1.2.2-4ubuntu7) oneiric; urgency=low
1176+
1177+ [ Andy Whitcroft ]
1178+ * ubuntu-fix-kernel-version-handling: avoid segfaults from short kernel
1179+ version numbers. (LP: #796611)
1180+
1181+ -- Evan Dandrea <ev@ubuntu.com> Tue, 14 Jun 2011 17:13:14 +0100
1182+
1183+nfs-utils (1:1.2.2-4ubuntu6) oneiric; urgency=low
1184+
1185+ * nfs-kernel-server.init: Unmount nfsd fs when init script stops
1186+ (LP: #251026)
1187+
1188+ -- Bryce Harrington <bryce@ubuntu.com> Mon, 06 Jun 2011 19:18:16 -0700
1189+
1190+nfs-utils (1:1.2.2-4ubuntu5) natty; urgency=low
1191+
1192+ * Search kerberos libs in multiarch locations.
1193+
1194+ -- Matthias Klose <doko@ubuntu.com> Fri, 01 Apr 2011 12:35:30 +0200
1195+
1196+nfs-utils (1:1.2.2-4ubuntu4) natty; urgency=low
1197+
1198+ * nvs-kernel-server.default: Add comment about how to disable nfs4.
1199+ There are corner cases where the server providing nfsv4 as the default
1200+ can confuse the client (117957, 680680) or even cause kernel problems
1201+ (716811), so it is worthwhile to document how to fallback to nfs3 only.
1202+
1203+ -- Bryce Harrington <bryce@ubuntu.com> Mon, 14 Feb 2011 13:20:27 -0800
1204+
1205+nfs-utils (1:1.2.2-4ubuntu3) natty; urgency=low
1206+
1207+ * debian/nfs-common.statd.upstart: pass a new WAITER= variable
1208+ to portmap-wait, so that multiple jobs can wait in parallel, fixing
1209+ another subtle race condition; and bump the portmap dependency again for
1210+ the necessary instance support.
1211+ * also fix the grouping in the start condition, so that restarts work
1212+ correctly when portmap is restarted.
1213+ * debian/nfs-common.rpc_pipefs.upstart: instantiate this job separately for
1214+ gssd and idmapd, so that the filesystem gets mounted and unmounted
1215+ correctly even if both of gssd and idmapd aren't being run, or if one of
1216+ the two tries to start before the filesystem is fully mounted. Though
1217+ it may be simpler now to move this logic back into the gssd and idmapd
1218+ jobs directly, leave that for a later date.
1219+
1220+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 18 Jan 2011 17:45:45 -0800
1221+
1222+nfs-utils (1:1.2.2-4ubuntu2) natty; urgency=low
1223+
1224+ * debian/nfs-common.statd.upstart,
1225+ debian/nfs-common.statd-mounting.upstart: refactor startup to wait for
1226+ local-filesystems. (LP: #525154)
1227+ * debian/control: depend on portmap version that sets ON_BOOT=y and
1228+ has the portmap-wait job.
1229+ * debian/rules: install new statd-mounting upstart job
1230+
1231+ -- Clint Byrum <clint@ubuntu.com> Wed, 05 Jan 2011 12:27:32 -0800
1232+
1233+nfs-utils (1:1.2.2-4ubuntu1) natty; urgency=low
1234+
1235+ * Merge from debian unstable (LP: #685860), remaining changes:
1236+ - debian/nfs-common.{statd,gssd,idmapd,rpc_pipefs}.upstart,
1237+ debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1238+ debian/rules: drop nfs-common init script in favor of upstart jobs, and
1239+ build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart init
1240+ handling.
1241+ - debian/control:
1242+ + depend on the upstart-using version of portmap, 6.0-10ubuntu1; and
1243+ drop the alternative depends on rpcbind, which hasn't been converted.
1244+ + depend on portmap 6.0-10ubuntu1.
1245+ - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1246+ in the postinst, this is redundant anyway and the nfs-common init script
1247+ is gone now.
1248+
1249+ -- Lorenzo De Liso <blackz@ubuntu.com> Wed, 15 Dec 2010 21:42:55 +0100
1250+
1251 nfs-utils (1:1.2.2-4) unstable; urgency=low
1252
1253 * mountd: fix path comparison for v4 crossmnt (Closes: #578317)
1254@@ -686,7 +1700,29 @@ nfs-utils (1:1.2.2-2) unstable; urgency=low
1255 * Fix out-of-date-standards-version
1256
1257 -- Anibal Monsalve Salazar <anibal@debian.org> Tue, 13 Jul 2010 15:20:17 +1000
1258-
1259+
1260+nfs-utils (1:1.2.2-1ubuntu1) maverick; urgency=low
1261+
1262+ * Merge from Debian unstable, remaining changes:
1263+ - debian/nfs-common.{statd,gssd,idmapd,rpc_pipefs}.upstart,
1264+ debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1265+ debian/rules: drop nfs-common init script in favor of upstart jobs, and
1266+ build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart init
1267+ handling.
1268+ - debian/control: depend on the upstart-using version of portmap,
1269+ 6.0-10ubuntu1; and drop the alternative depends on rpcbind, which
1270+ hasn't been converted.
1271+ - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1272+ in the postinst, this is redundant anyway and the nfs-common init script
1273+ is gone now.
1274+ * Dropped changes, included in Debian:
1275+ - debian/control: add ${misc:Depends} line for nfs-common, for the
1276+ upstart deps
1277+ - debian/nfs-kernel-server.init: updated check for presence of nfsd
1278+ support
1279+
1280+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 04 Jun 2010 09:55:28 +0000
1281+
1282 nfs-utils (1:1.2.2-1) unstable; urgency=low
1283
1284 [ Anibal Monsalve Salazar ]
1285@@ -758,6 +1794,51 @@ nfs-utils (1:1.2.0-4.1) unstable; urgency=low
1286
1287 -- Ben Hutchings <ben@decadent.org.uk> Wed, 16 Dec 2009 22:14:01 +0000
1288
1289+nfs-utils (1:1.2.0-4ubuntu4) lucid; urgency=low
1290+
1291+ * debian/nfs-common.gssd.upstart:
1292+ - fix the OPTIONS= match for the start condition (missing a leading '*')
1293+ so that we actually match on nfs4 mounts
1294+ - drop the 'script' for a straight exec of rpc.gssd; if /usr is a separate
1295+ partition then nfs4 mounts might be attempted in parallel, and upstart
1296+ gets mightily confused when this happens. LP: #545673
1297+
1298+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 23 Mar 2010 22:26:07 -0700
1299+
1300+nfs-utils (1:1.2.0-4ubuntu3) lucid; urgency=low
1301+
1302+ * debian/nfs-common.*.upstart: start on new 'mounting' signal instead of
1303+ obsolete 'mount' signal.
1304+
1305+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 25 Feb 2010 06:41:46 -0800
1306+
1307+nfs-utils (1:1.2.0-4ubuntu2) lucid; urgency=low
1308+
1309+ * debian/nfs-kernel-server.init: 2.6.32 kernels no longer export the
1310+ same symbols. Switch symbol check to nfsd_serv which has been present
1311+ since 2005. LP: #493145.
1312+
1313+ -- Andy Whitcroft <apw@canonical.com> Mon, 07 Dec 2009 16:56:56 +0000
1314+
1315+nfs-utils (1:1.2.0-4ubuntu1) lucid; urgency=low
1316+
1317+ * Merge from Debian testing, remaining changes:
1318+ - debian/nfs-common.{statd,gssd,idmapd,rpc_pipefs}.upstart,
1319+ debian/control, debian/nfs-common.{preinst,postinst,prerm,postrm},
1320+ debian/rules: drop nfs-common init script in favor of upstart jobs, and
1321+ build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart init
1322+ handling.
1323+ - debian/control: depend on the upstart-using version of portmap,
1324+ 6.0-10ubuntu1; and drop the alternative depends on rpcbind, which
1325+ hasn't been converted.
1326+ - debian/control: add ${misc:Depends} line for nfs-common, for the
1327+ upstart deps
1328+ - debian/nfs-kernel-server.postinst: don't call "invoke-rc.d nfs-common"
1329+ in the postinst, this is redundant anyway and the nfs-common init script
1330+ is gone now.
1331+
1332+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 04 Dec 2009 18:37:48 -0800
1333+
1334 nfs-utils (1:1.2.0-4) unstable; urgency=low
1335
1336 * Removing myself from uploaders.
1337@@ -772,6 +1853,94 @@ nfs-utils (1:1.2.0-3) unstable; urgency=low
1338
1339 -- Steinar H. Gunderson <sesse@debian.org> Sun, 09 Aug 2009 12:47:00 +0200
1340
1341+nfs-utils (1:1.2.0-2ubuntu9) lucid; urgency=low
1342+
1343+ * debian/nfs-common.statd.upstart: check for a started portmap in a
1344+ non-racy manner. LP: #484209.
1345+
1346+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 17 Nov 2009 11:27:37 -0600
1347+
1348+nfs-utils (1:1.2.0-2ubuntu8) karmic; urgency=low
1349+
1350+ * debian/control: add missing ${misc:Depends} for nfs-common, else we don't
1351+ get the dependency on upstart that we should have. LP: #456281.
1352+
1353+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 20 Oct 2009 13:10:01 +0000
1354+
1355+nfs-utils (1:1.2.0-2ubuntu7) karmic; urgency=low
1356+
1357+ * debian/rules: now that the jobs will exit cleanly on their own when
1358+ 'start' is called but the job is a no-op, remove the --error-handler
1359+ option to dh_installinit so that we don't accidentally ignore other
1360+ kinds of errors that could point to real problems.
1361+
1362+ -- Steve Langasek <steve.langasek@ubuntu.com> Sun, 11 Oct 2009 08:51:39 +0000
1363+
1364+nfs-utils (1:1.2.0-2ubuntu6) karmic; urgency=low
1365+
1366+ * Drop the gssd upstart job's dependency on "local-filesystems"; at boot
1367+ time this is always implied transitively by the dep on portmap, and using
1368+ a combination of 'or' and 'and' operators in the dependency list seems
1369+ to confuse upstart quite badly, causing kerberized mounts to hang at boot.
1370+ LP: #447654.
1371+
1372+ -- Steve Langasek <steve.langasek@ubuntu.com> Sat, 10 Oct 2009 20:12:11 +0000
1373+
1374+nfs-utils (1:1.2.0-2ubuntu5) karmic; urgency=low
1375+
1376+ * Set upstart jobs to also start on mount attempt, in the event that
1377+ mountall gets to them before the daemons are done starting. Really-fixes
1378+ LP: #431248.
1379+ * Call 'stop' in the pre-start scripts for all jobs when we want to prevent
1380+ the job from starting; this lets upstart know that it's a clean stop,
1381+ and avoids boot-time messages about service start failures
1382+
1383+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 09 Oct 2009 19:17:34 +0000
1384+
1385+nfs-utils (1:1.2.0-2ubuntu4) karmic; urgency=low
1386+
1387+ * Mounting rpc_pipefs also requires the sunrpc module, so move this
1388+ modprobe to the right upstart job.
1389+
1390+ -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 05 Oct 2009 22:04:28 -0700
1391+
1392+nfs-utils (1:1.2.0-2ubuntu3) karmic; urgency=low
1393+
1394+ * nfs-kernel-server: don't call invoke-rc.d nfs-common in the postinst,
1395+ this is redundant anyway and the nfs-common init script is gone now.
1396+ LP: #441855.
1397+
1398+ -- Steve Langasek <steve.langasek@ubuntu.com> Sat, 03 Oct 2009 23:07:09 -0700
1399+
1400+nfs-utils (1:1.2.0-2ubuntu2) karmic; urgency=low
1401+
1402+ * Configure gssd and idmapd upstart jobs to stop on runlevels 0 and 6; this
1403+ is consistent with previous initscript-based behavior, and spares upstart
1404+ trying to restart the jobs repeatedly when sendsigs runs.
1405+ * When autodetecting gssd, handle the case of 'sec=krb5' being embedded in
1406+ the middle of the options list in /etc/fstab. LP: #364861.
1407+ * Fix transition idempotency error when stopping old nfs-common init
1408+ script, in case the postinst fails to finish afterwards (e.g., failure to
1409+ restart the daemons).
1410+ * Fix statd upstart job to properly honor NEED_STATD=no and not get stuck
1411+ respawning indefinitely.
1412+ * Ignore failures to start the daemons on upgrade, since if they aren't
1413+ needed we don't *want* them to start. LP: #441055.
1414+ * Fix up the rpc_pipefs job, the wrong version of the file slipped into
1415+ the previous upload.
1416+
1417+ -- Steve Langasek <steve.langasek@ubuntu.com> Sat, 03 Oct 2009 01:52:21 +0000
1418+
1419+nfs-utils (1:1.2.0-2ubuntu1) karmic; urgency=low
1420+
1421+ * Drop nfs-common init script in favor of new upstart jobs. LP: #431248.
1422+ * Build-depend on debhelper (>= 7.3.15ubuntu3) for correct upstart init
1423+ handling.
1424+ * Depend the upstart-using version of portmap, 6.0-10ubuntu1; and drop the
1425+ alternative depends on rpcbind, which hasn't been converted.
1426+
1427+ -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 02 Oct 2009 19:23:19 +0000
1428+
1429 nfs-utils (1:1.2.0-2) unstable; urgency=low
1430
1431 * Merge from Ubuntu
1432diff --git a/debian/control b/debian/control
1433index 5d82c99..c57d0d5 100644
1434--- a/debian/control
1435+++ b/debian/control
1436@@ -1,9 +1,10 @@
1437 Source: nfs-utils
1438 Priority: optional
1439 Section: net
1440-Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
1441+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
1442+XSBC-Original-Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
1443 Uploaders: Anibal Monsalve Salazar <anibal@debian.org>, Ben Hutchings <benh@debian.org>, Steve Langasek <vorlon@debian.org>, Salvatore Bonaccorso <carnil@debian.org>
1444-Build-Depends: debhelper-compat (= 13), libwrap0-dev, libevent-dev, libkrb5-dev, libblkid-dev, libkeyutils-dev, pkg-config, libldap2-dev, libcap-dev, libtirpc-dev, libdevmapper-dev, libmount-dev, libsqlite3-dev
1445+Build-Depends: debhelper-compat (= 13), libwrap0-dev, libevent-dev, libkrb5-dev, libblkid-dev, libkeyutils-dev, pkg-config, libldap2-dev, libcap-dev, libtirpc-dev, libdevmapper-dev, libmount-dev, libsqlite3-dev, dh-apport
1446 Standards-Version: 4.6.0
1447 Homepage: https://linux-nfs.org/
1448 Vcs-Git: https://salsa.debian.org/kernel-team/nfs-utils.git
1449@@ -59,10 +60,9 @@ Architecture: any
1450 Multi-Arch: same
1451 Pre-Depends: ${misc:Pre-Depends}
1452 Depends: ${shlibs:Depends}, ${misc:Depends}
1453-Conflicts: libnfsidmap2, libnfsidmap-regex
1454-Provides: libnfsidmap2, libnfsidmap-regex
1455-Breaks: libnfsidmap2 (<< 0.25-7~), libnfsidmap-regex
1456-Replaces: libnfsidmap2 (<< 0.25-7~), libnfsidmap-regex
1457+Conflicts: libnfsidmap2
1458+Breaks: libnfsidmap2 (<< 0.25-7~)
1459+Replaces: libnfsidmap2 (<< 0.25-7~)
1460 Description: NFS idmapping library
1461 libnfsidmap provides functions to map between NFSv4 names (which are
1462 of the form user@domain) and local uid's and gid's.
1463diff --git a/debian/libnfsidmap1.docs b/debian/libnfsidmap1.docs
1464new file mode 100644
1465index 0000000..747afb7
1466--- /dev/null
1467+++ b/debian/libnfsidmap1.docs
1468@@ -0,0 +1 @@
1469+debian/README.Ubuntu
1470diff --git a/debian/libnfsidmap1.install b/debian/libnfsidmap1.install
1471index 2573d9e..a64297a 100644
1472--- a/debian/libnfsidmap1.install
1473+++ b/debian/libnfsidmap1.install
1474@@ -1,3 +1,5 @@
1475 usr/lib/*/lib*.so.*
1476-usr/lib/*/libnfsidmap/*.so
1477+usr/lib/*/libnfsidmap/nsswitch.so
1478+usr/lib/*/libnfsidmap/static.so
1479+usr/lib/*/libnfsidmap/umich_ldap.so
1480 usr/share/man/man5/idmapd.conf.5
1481diff --git a/debian/nfs-common.bug-script b/debian/nfs-common.bug-script
1482index 7e6a73a..d46d612 100644
1483--- a/debian/nfs-common.bug-script
1484+++ b/debian/nfs-common.bug-script
1485@@ -7,6 +7,16 @@ echo '-- rpcinfo --' >&3
1486 echo '-- /etc/default/nfs-common --' >&3
1487 cat /etc/default/nfs-common|grep -v -e '^\#' -e '^$' >&3
1488
1489+echo '-- /etc/nfs.conf --' >&3
1490+cat /etc/nfs.conf|grep -v -e '^\#' -e '^$' >&3
1491+
1492+if [ -d /etc/nfs.conf.d ]; then
1493+ for f in /etc/nfs.conf.d/*.conf; do
1494+ echo "-- $f --" >&3
1495+ cat "$f" | grep -v -e '^\#' -e '^$' >&3
1496+ done
1497+fi
1498+
1499 echo '-- /etc/idmapd.conf --' >&3
1500 cat /etc/idmapd.conf|grep -v -e '^\#' -e '^$' >&3
1501
1502diff --git a/debian/nfs-common.dirs b/debian/nfs-common.dirs
1503index 50ecd73..82903c3 100644
1504--- a/debian/nfs-common.dirs
1505+++ b/debian/nfs-common.dirs
1506@@ -1,4 +1,5 @@
1507 etc/init.d
1508+etc/nfs.conf.d
1509 sbin
1510 usr/sbin
1511 var/lib/nfs
1512diff --git a/debian/nfs-common.docs b/debian/nfs-common.docs
1513new file mode 100644
1514index 0000000..747afb7
1515--- /dev/null
1516+++ b/debian/nfs-common.docs
1517@@ -0,0 +1 @@
1518+debian/README.Ubuntu
1519diff --git a/debian/nfs-common.postrm b/debian/nfs-common.postrm
1520index 839b315..299a1f0 100644
1521--- a/debian/nfs-common.postrm
1522+++ b/debian/nfs-common.postrm
1523@@ -16,6 +16,7 @@ case "$1" in
1524 ucf --purge $FILE
1525 fi
1526 done
1527+ rm -f /etc/nfs.conf.d/local.conf
1528
1529 rm -f /var/lib/nfs/state \
1530 /var/lib/nfs/sm/* \
1531diff --git a/debian/nfs-kernel-server.bug-script b/debian/nfs-kernel-server.bug-script
1532index eed581d..6bfb697 100644
1533--- a/debian/nfs-kernel-server.bug-script
1534+++ b/debian/nfs-kernel-server.bug-script
1535@@ -7,6 +7,16 @@ echo '-- rpcinfo --' >&3
1536 echo '-- /etc/default/nfs-kernel-server --' >&3
1537 cat /etc/default/nfs-kernel-server|grep -v -e '\#' -e '^$' >&3
1538
1539+echo '-- /etc/nfs.conf --' >&3
1540+cat /etc/nfs.conf|grep -v -e '^\#' -e '^$' >&3
1541+
1542+if [ -d /etc/nfs.conf.d ]; then
1543+ for f in /etc/nfs.conf.d/*.conf; do
1544+ echo "-- $f --" >&3
1545+ cat "$f" | grep -v -e '^\#' -e '^$' >&3
1546+ done
1547+fi
1548+
1549 echo '-- /etc/exports --' >&3
1550 cat /etc/exports|grep -v -e '^\#' -e '^$' >&3
1551
1552diff --git a/debian/nfsconvert.py b/debian/nfsconvert.py
1553index 6962a3a..0b043d0 100755
1554--- a/debian/nfsconvert.py
1555+++ b/debian/nfsconvert.py
1556@@ -45,7 +45,7 @@ CONV_NFSD = {'-d': (CONF_NFS, 'nfsd', 'debug', 'all'),
1557 }
1558
1559 # options for mountd found in RPCMOUNTDOPTS
1560-OPTS_MOUNTD = 'go:d:H:p:N:nrs:t:V:'
1561+OPTS_MOUNTD = 'go:d:H:p:N:nrus:t:V:'
1562 LONG_MOUNTD = ['descriptors=', 'debug=', 'nfs-version=', 'no-nfs-version=',
1563 'port=', 'no-tcp', 'ha-callout=', 'state-directory-path=',
1564 'num-threads=', 'reverse-lookup', 'manage-gids', 'no-udp']
1565diff --git a/debian/not-installed b/debian/not-installed
1566new file mode 100644
1567index 0000000..ffd516b
1568--- /dev/null
1569+++ b/debian/not-installed
1570@@ -0,0 +1,5 @@
1571+# the regex module comes from src:libnfsidmap-regex
1572+usr/lib/*/libnfsidmap/regex.so
1573+usr/lib/*/libnfsidmap/*.a
1574+usr/lib/*/libnfsidmap/*.la
1575+usr/lib/*/libnfsidmap.la
1576diff --git a/debian/patches/remove-regex-from-docs.patch b/debian/patches/remove-regex-from-docs.patch
1577new file mode 100644
1578index 0000000..f862102
1579--- /dev/null
1580+++ b/debian/patches/remove-regex-from-docs.patch
1581@@ -0,0 +1,79 @@
1582+--- a/support/nfsidmap/idmapd.conf.5
1583++++ b/support/nfsidmap/idmapd.conf.5
1584+@@ -158,49 +158,7 @@
1585+ .nf
1586+
1587+ .fi
1588+-If the "regex" translation method is specified, the following
1589+-variables within the [REGEX] section are used to map between NFS4 names and local IDs.
1590+-.TP
1591+-.B User-Regex
1592+-Case-insensitive regular expression that extracts the local user name from an NFSv4 name. Multiple expressions may be concatenated with '|'. The first match will be used.
1593+-There is no default. A basic regular expression for domain DOMAIN.ORG and realm MY.DOMAIN.ORG would be:
1594+-.nf
1595+-^DOMAIN\\([^@]+)@MY.DOMAIN.ORG$
1596+-.fi
1597+-.TP
1598+-.B Group-Regex
1599+-Case-insensitive regular expression that extracts the local group name from an NFSv4 name. Multiple expressions may be concatenated with '|'. The first match will be used.
1600+-There is no default. A basic regular expression for domain DOMAIN.ORG and realm MY.DOMAIN.ORG would be:
1601+-.nf
1602+-^([^@]+)@DOMAIN.ORG@MY.DOMAIN.ORG$|^DOMAIN\\([^@]+)@MY.DOMAIN.ORG$
1603+-.fi
1604+-.TP
1605+-.B Prepend-Before-User
1606+-Constant string to put before a local user name when building an NFSv4 name. Usually this is the short domain name followed by '\'.
1607+-(Default: none)
1608+-.TP
1609+-.B Append-After-User
1610+-Constant string to put after a local user name when building an NFSv4 name. Usually this is '@' followed by the default realm.
1611+-(Default: none)
1612+-.TP
1613+-.B Prepend-Before-Group
1614+-Constant string to put before a local group name when building an NFSv4 name. Usually not used.
1615+-(Default: none)
1616+-.TP
1617+-.B Append-After-Group
1618+-Constant string to put before a local group name when building an NFSv4 name. Usually this is '@' followed by the domain name followed by another '@' and the default realm.
1619+-(Default: none)
1620+-.TP
1621+-.B Group-Name-Prefix
1622+-Constant string that is prepended to a local group name when converting it to an NFSv4 name. If an NFSv4 group name has this prefix it is removed when converting it to a local group name.
1623+-With this group names of a central directory can be shortened for an isolated organizational unit if all groups have a common prefix.
1624+-(Default: none)
1625+-.TP
1626+-.B Group-Name-No-Prefix-Regex
1627+-Case-insensitive regular expression to exclude groups from adding and removing the prefix set by
1628+-.BR Group-Name-Prefix .
1629+-The regular expression must match both the remote and local group names. Multiple expressions may be concatenated with '|'.
1630+-(Default: none)
1631++In Ubuntu, the regex plugin is shipped in the libnfsidmap-regex package. If you want to use this plugin, please install that package and consult the libnfsidmap-regex(5) manpage.
1632+ .\"
1633+ .\" -------------------------------------------------------------------
1634+ .\" The [UMICH_SCHEMA] section
1635+@@ -370,23 +328,13 @@
1636+
1637+ [Translation]
1638+
1639+-Method = umich_ldap,regex,nsswitch
1640+-GSS-Methods = umich_ldap,regex,static
1641++Method = umich_ldap,nsswitch
1642++GSS-Methods = umich_ldap,static
1643+
1644+ [Static]
1645+
1646+ johndoe@OTHER.DOMAIN.ORG = johnny
1647+
1648+-[Regex]
1649+-
1650+-User-Regex = ^DOMAIN\\([^@]+)@DOMAIN.ORG$
1651+-Group-Regex = ^([^@]+)@DOMAIN.ORG@DOMAIN.ORG$|^DOMAIN\\([^@]+)@DOMAIN.ORG$
1652+-Prepend-Before-User = DOMAIN\
1653+-Append-After-User = @DOMAIN.ORG
1654+-Append-After-Group = @domain.org@domain.org
1655+-Group-Name-Prefix = sales-
1656+-Group-Name-No-Prefix-Regex = -personal-group$
1657+-
1658+ [UMICH_SCHEMA]
1659+
1660+ LDAP_server = ldap.domain.org
1661diff --git a/debian/patches/series b/debian/patches/series
1662index cc5eab2..127f3e1 100644
1663--- a/debian/patches/series
1664+++ b/debian/patches/series
1665@@ -3,3 +3,4 @@
1666 multiarch-kerberos-paths.patch
1667 nfs-utils-fix-man-page-syntax-errors.patch
1668 tests-skip-test-if-dev-log-is-missing.patch
1669+remove-regex-from-docs.patch
1670diff --git a/debian/rules b/debian/rules
1671index 417b74e..bca9bc3 100755
1672--- a/debian/rules
1673+++ b/debian/rules
1674@@ -5,7 +5,7 @@
1675 DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
1676
1677 %:
1678- dh $@
1679+ dh $@ --with apport
1680
1681 override_dh_auto_configure:
1682 dh_auto_configure -- \
1683@@ -34,3 +34,6 @@ override_dh_md5sums:
1684
1685 override_dh_missing:
1686 dh_missing --list-missing
1687+
1688+override_dh_apport:
1689+ dh_apport -pnfs-common
1690diff --git a/debian/source.apport b/debian/source.apport
1691new file mode 100644
1692index 0000000..6ea9c65
1693--- /dev/null
1694+++ b/debian/source.apport
1695@@ -0,0 +1,32 @@
1696+#!/usr/bin/python3
1697+
1698+'''NFS Apport Interface
1699+
1700+Copyright (C) 2022 Canonical Ltd
1701+Author: Andreas Hasenack <andreas@canonical.com>
1702+
1703+This program is free software; you can redistribute it and/or modify it
1704+under the terms of the GNU General Public License as published by the
1705+Free Software Foundation; either version 2 of the License, or (at your
1706+option) any later version. See http://www.gnu.org/copyleft/gpl.html for
1707+the full text of the license.
1708+'''
1709+
1710+from apport.hookutils import (
1711+ attach_file_if_exists,
1712+ command_output,
1713+ recent_syslog,
1714+)
1715+from glob import glob
1716+import re
1717+
1718+def add_info(report, ui):
1719+ file_list = ["/etc/nfs.conf","/etc/default/nfs-common", "/etc/default/nfs-kernel-server"]
1720+ file_list.extend(glob("/etc/nfs.conf.d/*.conf"))
1721+ file_list.append("/etc/exports")
1722+ file_list.append("/etc/request-key.d/id_resolver.conf")
1723+ for f in file_list:
1724+ attach_file_if_exists(report, f)
1725+ report["SyslogNFS"] = recent_syslog(re.compile("(rpc\.(nfsd|gssd|svcgssd|statd|mountd|idmapd)|blkmapd|nfsdcld|nfsidmap)\["))
1726+ report["NFSMounts"] = command_output(["findmnt", "-n", "-t", "nfs"])
1727+ report["NFSv4Mounts"] = command_output(["findmnt", "-n", "-t", "nfs4"])
1728diff --git a/debian/tests/control b/debian/tests/control
1729index dea3f82..8232531 100644
1730--- a/debian/tests/control
1731+++ b/debian/tests/control
1732@@ -2,3 +2,14 @@ Tests: local-server-client
1733 Depends: nfs-kernel-server
1734 # we need machine isolation as we need to modprobe stuff
1735 Restrictions: needs-root, isolation-machine, breaks-testbed
1736+
1737+Tests: kerberos-mount
1738+Depends: nfs-kernel-server, krb5-kdc, krb5-admin-server, krb5-user, keyutils
1739+Restrictions: needs-root, isolation-machine, breaks-testbed
1740+
1741+Tests: v3-mount
1742+Depends: nfs-kernel-server
1743+# this one allow stderr because when mounting nfsv3, a systemd message
1744+# about statd being started shows up, and I rather not supress stderr
1745+# in the mount command
1746+Restrictions: needs-root, isolation-machine, breaks-testbed, allow-stderr
1747diff --git a/debian/tests/kerberos-mount b/debian/tests/kerberos-mount
1748new file mode 100755
1749index 0000000..9ea2f52
1750--- /dev/null
1751+++ b/debian/tests/kerberos-mount
1752@@ -0,0 +1,38 @@
1753+#!/bin/sh
1754+
1755+set -e
1756+
1757+. debian/tests/util
1758+
1759+cleanup() {
1760+ umount /mnt || :
1761+}
1762+
1763+trap cleanup EXIT
1764+
1765+myhostname="nfs-server.dep8"
1766+myrealm="DEP8"
1767+hello="Hello from NFS server $$"
1768+
1769+adjust_hostname "${myhostname}"
1770+
1771+create_realm ${myrealm} ${myhostname}
1772+
1773+for p in "nfs/${myhostname}" "host/${myhostname}"; do
1774+ create_krb_svc_principal "${p}"
1775+ extract_principal_key_into_keytab "${p}"
1776+done
1777+
1778+# or else clients have to wait 90s by default
1779+nfsconf --set nfsd grace-time 10
1780+systemctl restart nfs-server.service nfs-client.target
1781+
1782+mkdir -p /storage
1783+echo "${hello}" > /storage/hello.txt
1784+
1785+echo "/storage *(sec=krb5p,rw,sync,no_subtree_check)" > /etc/exports
1786+exportfs -rav
1787+
1788+mount "${myhostname}":/storage /mnt
1789+findmnt -n -t nfs4 | grep -E "/storage.*vers=4.*sec=krb5p"
1790+grep "${hello}" /mnt/hello.txt
1791diff --git a/debian/tests/util b/debian/tests/util
1792new file mode 100644
1793index 0000000..cd8c9e2
1794--- /dev/null
1795+++ b/debian/tests/util
1796@@ -0,0 +1,89 @@
1797+#!/bin/sh
1798+
1799+die() {
1800+ echo "ERROR"
1801+ echo "$@"
1802+ exit 1
1803+}
1804+
1805+adjust_hostname() {
1806+ local myhostname="$1"
1807+
1808+ echo "${myhostname}" > /etc/hostname
1809+ hostname "${myhostname}"
1810+ if ! grep -qE "${myhostname}" /etc/hosts; then
1811+ # just so it's resolvable
1812+ echo "127.0.1.10 ${myhostname}" >> /etc/hosts
1813+ fi
1814+}
1815+
1816+create_realm() {
1817+ local realm_name="$1"
1818+ local kerberos_server="$2"
1819+
1820+ # start fresh
1821+ rm -rf /var/lib/krb5kdc/*
1822+ rm -rf /etc/krb5kdc/*
1823+ rm -f /etc/krb5.keytab
1824+
1825+ # setup some defaults
1826+ cat > /etc/krb5kdc/kdc.conf <<EOF
1827+[kdcdefaults]
1828+ kdc_ports = 750,88
1829+[realms]
1830+ ${realm_name} = {
1831+ database_name = /var/lib/krb5kdc/principal
1832+ admin_keytab = FILE:/etc/krb5kdc/kadm5.keytab
1833+ acl_file = /etc/krb5kdc/kadm5.acl
1834+ key_stash_file = /etc/krb5kdc/stash
1835+ kdc_ports = 750,88
1836+ max_life = 10h 0m 0s
1837+ max_renewable_life = 7d 0h 0m 0s
1838+ master_key_type = des3-hmac-sha1
1839+ #supported_enctypes = aes256-cts:normal aes128-cts:normal
1840+ default_principal_flags = +preauth
1841+ }
1842+EOF
1843+
1844+ cat > /etc/krb5.conf <<EOF
1845+[libdefaults]
1846+ default_realm = ${realm_name}
1847+ kdc_timesync = 1
1848+ ccache_type = 4
1849+ forwardable = true
1850+ proxiable = true
1851+ fcc-mit-ticketflags = true
1852+[realms]
1853+ ${realm_name} = {
1854+ kdc = ${kerberos_server}
1855+ admin_server = ${kerberos_server}
1856+ }
1857+EOF
1858+ echo "# */admin *" > /etc/krb5kdc/kadm5.acl
1859+
1860+ # create the realm
1861+ kdb5_util create -s -P secretpassword
1862+
1863+ # restart services
1864+ systemctl restart krb5-kdc.service krb5-admin-server.service
1865+}
1866+
1867+create_krb_principal() {
1868+ local principal="$1"
1869+ local password="$2"
1870+
1871+ kadmin.local -q "addprinc -pw ${password} ${principal}" 2>/dev/null
1872+}
1873+
1874+create_krb_svc_principal() {
1875+ local principal="$1"
1876+
1877+ kadmin.local -q "addprinc -randkey ${principal}" 2>/dev/null
1878+}
1879+
1880+extract_principal_key_into_keytab() {
1881+ local principal="$1"
1882+
1883+ kadmin.local -q "ktadd ${principal}"
1884+}
1885+
1886diff --git a/debian/tests/v3-mount b/debian/tests/v3-mount
1887new file mode 100755
1888index 0000000..7eb5e6b
1889--- /dev/null
1890+++ b/debian/tests/v3-mount
1891@@ -0,0 +1,34 @@
1892+#!/bin/sh
1893+
1894+set -e
1895+
1896+cleanup() {
1897+ umount /mnt || :
1898+}
1899+
1900+hello="Hello from NFS server $$"
1901+mkdir -p /storage
1902+echo "${hello}" > /storage/hello.txt
1903+
1904+echo "/storage *(sec=sys,rw,sync,no_subtree_check)" > /etc/exports
1905+exportfs -rav
1906+
1907+# stop statd if it's running, because we will check later if it
1908+# was started automatically for the NFSv3 mount as it should
1909+if pidof rpc.statd > /dev/null 2>&1; then
1910+ systemctl stop rpc-statd.service > /dev/null 2>&1 || :
1911+ pidof rpc.statd > /dev/null 2>&1 && {
1912+ echo "couldn't kill rpc.statd before the NFSv3 test"
1913+ exit 1
1914+ }
1915+fi
1916+
1917+mount localhost:/storage /mnt -o vers=3
1918+grep "${hello}" /mnt/hello.txt
1919+
1920+pidof rpc.statd > /dev/null 2>&1 || {
1921+ echo "rpc.statd isn't running after the NVSv3 mount, and it should..."
1922+ exit 1
1923+}
1924+
1925+findmnt -n -t nfs | grep -E "/storage.*vers=3.*sec=sys"

Subscribers

People subscribed via source and target branches