[Pkg-linaro-lava-devel] Bug#988362: lava-server: prompting due to modified deleted which were not deleted by the user: /etc/logrotate.d/lava-scheduler-log
Andreas Beckmann
anbe at debian.org
Tue May 11 11:06:45 BST 2021
Package: lava-server
Version: 2020.12-3
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts
Hi,
during a test with piuparts I noticed your package failed the piuparts
upgrade test because dpkg detected a conffile as being modified and then
prompted the user for an action. As there is no user input, this fails.
But this is not the real problem, the real problem is that this prompt
shows up in the first place, as there was nobody modifying this conffile
at all, the package has just been installed and upgraded...
This is a violation of policy 10.7.3, see
https://www.debian.org/doc/debian-policy/ch-files.html#behavior,
which says "[These scripts handling conffiles] must not ask unnecessary
questions (particularly during upgrades), and must otherwise be good
citizens."
https://wiki.debian.org/DpkgConffileHandling should help with figuring
out how to do this properly.
In https://lists.debian.org/debian-devel/2009/08/msg00675.html and
followups it has been agreed that these bugs are to be filed with
severity serious.
This was observed on the upgrade path stretch -> buster -> bullseye.
>From the attached log (scroll to the bottom...):
Setting up lava-server (2020.12-3) ...
Installing new version of config file /etc/apache2/sites-available/lava-server.conf ...
Configuration file '/etc/logrotate.d/lava-scheduler-log'
==> Deleted (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** lava-scheduler-log (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package lava-server (--configure):
end of file on stdin at conffile prompt
Processing triggers for ca-certificates (20210119) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for initramfs-tools (0.140) ...
Errors were encountered while processing:
lava-server
cheers,
Andreas
More information about the Pkg-linaro-lava-devel
mailing list