Bug #37072
closedPackage update chooses latest version instead of input version
Description
For some RPMs, notably crypto-policies, when upgrading via the host details page, the chosen upgrade version is ignored and it gets the latest version.
The chosen version does make it into the "Selected update versions", but the rendered template ends up with the latest version.
It's likely a bug with `def package_names_for_job_template`.
To reproduce:
1) Create a RHEL 9 machine with crypto-policies-20221215-1.git9a18988.el9.noarch
2) Sync RHEL 9 appstream + baseos
3) Try to upgrade to crypto-policies-scripts-20221215-1.git9a18988.el9_2.1.noarch via the dropdown on the right side of the upgradable RPM
Attached screenshot shows the issue.
Unsure how many versions this affects. Tested on Katello 4.12-devel
Files
Updated by Ian Ballou 11 months ago
- Target version changed from Katello 4.11.1 to Katello 4.12.0
Updated by Quinn James 9 months ago
- Target version deleted (
Katello 4.12.0) - Triaged changed from Yes to No
Removing target version for 4.12 RC/GA re-triage
Updated by Jeremy Lenz 9 months ago
- Target version set to Katello 4.13.0
- Triaged changed from No to Yes
Updated by Ian Ballou 6 months ago
- Target version changed from Katello 4.13.0 to Katello 4.14.0
Updated by Chris Roberts 4 months ago
- Target version changed from Katello 4.14.0 to Katello 4.15.0
Updated by The Foreman Bot about 1 month ago
- Status changed from New to Ready For Testing
- Assignee set to Partha Aji
- Pull request https://github.com/Katello/katello/pull/11213 added
Updated by The Foreman Bot about 1 month ago
- Fixed in Releases Katello 4.15.0 added
Updated by Partha Aji about 1 month ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|d07494f4dba5f32f4673eb78ada8e36bacfa985d.