Report packages kept back by origins
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Packages kept back are listed in the email report, but it is not clear from which origins they are installable. This information may help administrators to decide if the packages need to be manually upgraded.
[Test Case]
* test_mail.py test is updated to check if the kept back packages are reported per origin and this is checked at build time.
* For manual testing:
1. Configure u-u to allow upgrades from the -updates pocket and send email with the upgrade report.
2. Set up the system to have a few packages upgradable from both the -security and -updates pockets.
3. Mark a subset of packages which are upgradable as held, marking packages from each of the pockets.
4. Run u-u and observe the kept packages listed in the email. Each package is listed only in the allowed origin providing the highest version. (LP: #1848697 covers listing them in all origins from which the packages could be upgraded to.)
[Regression Potential]
* Unattended upgrades may crash while trying to perform updates or while trying to send the summary email. Build-time tests and autopkgtests include testing both functions.
This bug was fixed in the package unattended-upgrades - 1.12
---------------
unattended-upgrades (1.12) experimental; urgency=medium
[ Brannon Dorsey ] upgrades configuration files
* Remove double "format" in 50unattended-
[ Daniel Herzig ] upgrade. 8 man-page (Closes: #905289)
* man: improve unattended-
[ Jonatan Nyberg ]
* Swedish debconf strings update (Closes: #925488)
[ Balint Reczey ] all-security id}ESM: ${distro_ codename} -security to allowed origins Error when marking packages to upgrade/install
* Compare apt.package.Version objects and not the versions' string
representation. This prevented adjusting candidates when the strings sorted
differently (LP: #1820888)
* Enable test_clean and test_patch_days tests
* Fall back to adjusting more packages' candidates when a package from an
allowed origin can't be marked to install/upgrade. (LP: #1821101)
* Skip sending email when no package had to be installed, upgraded or removed
(LP: #1821103) (Closes: #924554)
* Add a few debug logging points
* Report packages kept back by origin (LP: #1821376)
* Fix trailing newlines in wrapped email lines
* Describe candidate adjustment fallback better in the debug message
* Fix missing space. Thanks to Alban VIDAL
* Update POT file
* Test upgrades to -updates and to -proposed in upgrade-
autopkgtest. Also enable -updates, too, while testing in Debian.
* Add ${distro_
(LP: #1823376)
* Detect changes to moved conffiles (LP: #1823872)
* Add tests for checking conffile moves.
Build depend on and use equivs to generate new test packages
* Make sure autoremovals don't start with a dirty cache and remove other
packages (LP: #1824341)
* Stop raising NoAllowedOrigin
fails (LP: #1824876)
* Continue applying minimal sets when one set can't be marked for upgrade.
Thanks to Anderson Luiz Alves for the patch, it needed minor modifications
(LP: #1824341)
* Skip trying to upgrade held packages in call_adjusted() (LP: #1824804)
* Adjust only transitive dependencies in the fallback when a package from an
allowed origin can't be marked to install/upgrade.
This is a much lighter approach than marking every upgradable package
because the full fallback was triggered on packages held back as well,
using an excessive amount of CPU time. (LP: #1824804, #1824949)
* Follow all kinds of transitive dependencies when adjusting dependencies
* Split() conffile data to set of names only once
* Don't parse dpkg conffile db when there are no conffiles in the package
* Detect unchanged moved conffiles.
When a package moves a conffile properly without any change no conffile
prompt needs to be shown thus the package can be upgraded unattended even
when the conffile is changed locally. (LP: #1823872)
-- Balint Reczey <email address hidden> Thu, 18 Apr 2019 16:38:31 +0200