[Bug 1828072] Re: KernelRemoval section is out of date
Brian Murray
brian at ubuntu.com
Thu May 9 23:20:50 UTC 2019
And an upgrade from Bionic to Disco also passed:
root at clean-bionic-amd64:/tmp/ubuntu-release-upgrader-bctl6u37# head -n10 /var/log/dist-upgrade/main.log
2019-05-09 16:02:07,695 INFO Using config files '['./DistUpgrade.cfg.bionic']'
2019-05-09 16:02:07,695 INFO uname information: 'Linux clean-bionic-amd64 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64'
2019-05-09 16:02:08,038 INFO apt version: '1.6.10'
2019-05-09 16:02:08,038 INFO python version: '3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0]'
2019-05-09 16:02:08,040 INFO release-upgrader version '19.04.16.4' started
2019-05-09 16:02:08,047 INFO locale: 'en_US' 'UTF-8'
2019-05-09 16:02:08,116 DEBUG setting up environ for non-interactive use
2019-05-09 16:02:08,158 DEBUG Using 'DistUpgradeViewNonInteractive' view
2019-05-09 16:02:08,194 DEBUG enable dpkg --force-overwrite
root at clean-bionic-amd64:/tmp/ubuntu-release-upgrader-bctl6u37# grep -i obsoletekernels /var/log/dist-upgrade/main.log
2019-05-09 16:19:00,748 DEBUG identifyObsoleteKernels()
2019-05-09 16:19:05,646 DEBUG identifyObsoleteKernels found '{'linux-headers-4.15.0-46-generic', 'linux-image-4.15.0-45-generic', 'linux-modules-4.15.0-45-generic', 'linux-image-4.15.0-46-generic', 'linux-modules-extra-4.15.0-45-generic', 'linux-headers-4.15.0-45-generic', 'linux-modules-extra-4.15.0-47-generic', 'linux-modules-4.15.0-46-generic', 'linux-modules-extra-4.15.0-46-generic', 'linux-image-4.15.0-47-generic', 'linux-modules-4.15.0-47-generic', 'linux-headers-4.15.0-47-generic'}'
** Tags removed: verification-needed-disco
** Tags added: verification-done-disco
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1828072
Title:
KernelRemoval section is out of date
Status in ubuntu-release-upgrader package in Ubuntu:
Fix Released
Status in ubuntu-release-upgrader source package in Bionic:
Fix Committed
Status in ubuntu-release-upgrader source package in Cosmic:
Fix Committed
Status in ubuntu-release-upgrader source package in Disco:
Fix Committed
Bug description:
The dist-upgrader tarball includes configuration files for the release
upgrade process and part of the configuration file is a section with
the heading KernelRemoval which includes Version, BaseNames, and Types
which are used to build a list of kernels to remove. This section has
not been updated in quite some time and we should up date so systems
have less old kernels installed.
[Test Case]
1) upgrade a system from a release of Ubuntu to a new release of Ubuntu (this should be done for the following paths B->C, C->D, B->D)
2) observe the following in /var/log/dist-upgrade/main.log
"2019-05-07 11:38:23,264 DEBUG identifyObsoleteKernels()
2019-05-07 11:38:27,621 DEBUG identifyObsoleteKernels found 'set()'"
The release upgrader from -proposed (do-release-upgrader -p) should
identify some obsolete kernels ("skipping running kernel linux-
headers-5.0.0-13-generic") even if it doesn't end up removing them.
[Regression Potential]
I made the BaseNames section split out across multiple lines which should be fine but that could cause the config file to fail to be parsed which would probably cause a crash or the same failure to remove obsolete kernels.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1828072/+subscriptions
More information about the foundations-bugs
mailing list