TOOL-27512 LTS 24.04: Stop using HWE kernels when fetching kernel versions #336
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
check-updates jobs have been failing since 02/28 while checking updates for linux-kernel-generic with:
This logic looks for HWE kernels for the generic flavor and thus tries to use the same version as the HWE flavor. We do not need the HWE flavor.
Also note that all the jobs before 02/28 inferred the kernel version 6.8 for linux-kernel-generic, so this change ensures that we go back to the inferring the same version.
6.11 was released with 24.10. I suspect Canonical made 6.11 available on 24.04 via the HWE image. As to why we no longer need it, we relied on the HWE image as part of the 5.15 kernel upgrade. That was a one-off project, 20.04 shipped with 5.4 but we now wanted 5.15 so we started using HWE. That's no longer the case with 24.04 though, we do not need to jump to 6.11
This is a recent upstream change: https://www.phoronix.com/news/Ubuntu-24.04.2-LTS#:~:text=2%20LTS%20Now%20Available%20With%20Initial%20HWE%20Stack,-Written%20by%20Michael&text=Following%20last%20week's%20delay%20due,04.2%20updates%20too.
Solution
Modify the logic to not use the HWE flavor.
Testing Done
https://ops-jenkins.eng-tools-prd.aws.delphixcloud.com/job/linux-pkg/job/os-upgrade/job/check-updates/job/main/162/console