Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #71526

Bug#988430: nfs-utils: nfs-common does not restart services on upgrade

Path csiph.com!news.dns-netz.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod
From Andreas Hasenack <andreas@canonical.com>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#988430: nfs-utils: nfs-common does not restart services on upgrade
Date Wed, 12 May 2021 23:20:01 +0200
Message-ID <Ce4qR-2cP-1@gated-at.bofh.it> (permalink)
X-Original-To Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Wed May 12 21:18:09 2021
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.949
Reply-To Andreas Hasenack <andreas@canonical.com>, 988430@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian kernel team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message report 988430
X-Debian-Pr-Package nfs-utils
X-Debian-Pr-Source nfs-utils
X-Gm-Message-State AOAM532sp0RLkJK45WiqfMbioCFOrz1IiU7vooPCWtwtdXmY8BTThxgx 16+LMYkjOm+ieTYEUWHIrjzqdc4ic16TATztO8vttUAiP4+trj8NNWxKqqCUoniVZXWcc8vnTsj Bf0y6FalbYT2rsDynaLAeH2aeESBcQxt0fcWKHfljD1i8aw8i/g==
X-Received by 2002:a17:90a:3948:: with SMTP id n8mr42842175pjf.32.1620854047148; Wed, 12 May 2021 14:14:07 -0700 (PDT)
X-Google-SMTP-Source ABdhPJx0ZCFWsdWHjxKCglqz7ILXa545I9tTpYsqZLx+mvvtNtBD1+rV+Vdg6ysuwbc/4UUWlk5+y7TbPbYBMrczEGM=
X-Received by 2002:a17:90a:3948:: with SMTP id n8mr42842142pjf.32.1620854046803; Wed, 12 May 2021 14:14:06 -0700 (PDT)
MIME-Version 1.0
Content-Type multipart/alternative; boundary="000000000000b160e405c2287d0b"
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1663932
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 110
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Wed, 12 May 2021 18:13:56 -0300
X-Original-Message-ID <CANYNYEG5Y79RS_fqkbSwrsEJNEKMeSscmPpHwj_e76eHxCAqKg@mail.gmail.com>
Xref csiph.com linux.debian.bugs.dist:1058729 linux.debian.kernel:71526

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Package: nfs-utils
Version: 1:1.3.4-5
Severity: normal



Dear Maintainer,

while testing a fix for rpc.gssd, part of nfs-common, I discovered that
this service (and others) is not restarted as part of the upgrade.

Further troubleshooting led me to the nfs-utils.service service, which is
not enabled nor started at package install time. From d/rules:

    dh_systemd_enable -p nfs-common nfs-client.target
    dh_systemd_enable -p nfs-kernel-server nfs-server.service
    dh_installinit -pnfs-common -R
    dh_systemd_start -p nfs-common --restart-after-upgrade nfs-utils.service
    dh_systemd_start -p nfs-kernel-server --restart-after-upgrade
nfs-server.service

nfs-utils.service is a "fake" service, meant to coordinate all the
different processes that make up an NFS server nowadays. It can't be
enabled, and r/rules doesn't even attempt to enable it:
$ sudo systemctl enable nfs-utils.service
The unit files have no installation config (WantedBy, RequiredBy, Also,
Alias
settings in the [Install] section, and DefaultInstance for template units).
This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).
4) In case of template units, the unit is meant to be enabled with some
   instance name specified.

Problem is, it also won't be started on install, so the dh_systemd_start
calls won't do anything. This can be seen while installing the package:
"""
nfs-utils.service is a disabled or a static unit, not starting it.
"""
And the same thing happens on upgrades, it's not restarted, and as such
rpc.gssd and at least /usr/sbin/blkmapd will not be restarted.

Back to linux.debian.kernel | Previous | Next | Find similar | Unroll thread


Thread

Bug#988430: nfs-utils: nfs-common does not restart services on upgrade Andreas Hasenack <andreas@canonical.com> - 2021-05-12 23:20 +0200

csiph-web