E-mail report contains repeated "Reading database ... NN%" lines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Debian) |
Fix Released
|
Unknown
|
|||
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Wishlist
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Unattended-upgrades sends the following repeating dpkg progress lines with almost no informational value in the email report:
...
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 60486 files and directories currently installed.)
...
* This makes the report email too verbose and makes harder to spot real problems.
[Test Case]
* Run package autopkgtest and observe no such lines in the echoed email in upgrade-
[Regression Potential]
* The fix filters dpkg's output only and in the worst case other lines could be missing or u-u could crash. Since the applied hard-coded regex pattern is fairly simple and we observed no crashes in the tests those regressions are unlikey to occur.
[Originial Bug Text]
This concerns unattended-upgrades 0.90 in Xenial.
Here is an excerpt from an e-mail report sent out by u-u after the upgrade process is completed:
Package installation log:
Log started: 2016-07-06 17:24:21
Preconfiguring packages ...
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 314949 files and directories currently installed.)
Preparing to unpack .../tzdata_
Unpacking tzdata (2016f-
Preparing to unpack .../libgimp2.
All but the last "Reading database ..." line should be elided from the message.
As a matter of fact, those lines do not appear in messages mailed out from current Trusty systems (u-u version 0.82.1ubuntu2.4), so this appears to be a regression.
Changed in apt (Debian): | |
status: | Unknown → New |
description: | updated |
Changed in apt (Debian): | |
status: | New → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.