Issue #1464
closed
Errata installation will install all available kernel packages instead of installing only the latest version
Status:
CLOSED - CURRENTRELEASE
Description
When doing an errata install on a managed host via gofer, all available kernel version get installed instead of only the latest.
From the bugzilla report, pulp/gofer "will try to install each and every kernel erratas separately on the host instead of installing the latest kernel version and thus causing the space constraints in /boot directory of the client system."
- Priority changed from High to Normal
- Platform Release set to 2.8.0
- Triaged changed from No to Yes
- Status changed from NEW to ASSIGNED
- Assignee set to semyers
- Status changed from ASSIGNED to POST
https://github.com/pulp/pulp_rpm/pull/785
I did two errata install runs on identical boxes. The first was without this patch, the second was with this patch. Note that there is only one new kernel package in the patched version, instead of four (I installed 4 kernel errata to test).
unpatched:
--- /home/pulp/before 2016-01-28 15:02:30.157000000 -0500
+++ /home/pulp/after 2016-01-28 15:25:01.273000000 -0500
@@ -180,9 +180,13 @@
kbd-1.15.5-10.el7.x86_64
kbd-misc-1.15.5-10.el7.noarch
kernel-3.10.0-123.el7.x86_64
-kernel-headers-3.10.0-123.20.1.el7.x86_64
-kernel-tools-3.10.0-123.el7.x86_64
-kernel-tools-libs-3.10.0-123.el7.x86_64
+kernel-3.10.0-327.3.1.el7.x86_64
+kernel-3.10.0-327.4.4.el7.x86_64
+kernel-3.10.0-327.4.5.el7.x86_64
+kernel-3.10.0-327.el7.x86_64
+kernel-headers-3.10.0-327.4.5.el7.x86_64
+kernel-tools-3.10.0-327.4.5.el7.x86_64
+kernel-tools-libs-3.10.0-327.4.5.el7.x86_64
kexec-tools-2.0.4-32.el7.x86_64
keyutils-libs-1.5.8-3.el7.x86_64
kmod-20-5.el7.x86_64
patched:
--- /home/pulp/before 2016-01-28 16:45:30.500000000 -0500
+++ /home/pulp/after 2016-01-28 16:48:40.178000000 -0500
@@ -180,9 +180,10 @@
kbd-1.15.5-10.el7.x86_64
kbd-misc-1.15.5-10.el7.noarch
kernel-3.10.0-123.el7.x86_64
-kernel-headers-3.10.0-123.20.1.el7.x86_64
-kernel-tools-3.10.0-123.el7.x86_64
-kernel-tools-libs-3.10.0-123.el7.x86_64
+kernel-3.10.0-327.4.5.el7.x86_64
+kernel-headers-3.10.0-327.4.5.el7.x86_64
+kernel-tools-3.10.0-327.4.5.el7.x86_64
+kernel-tools-libs-3.10.0-327.4.5.el7.x86_64
kexec-tools-2.0.4-32.el7.x86_64
keyutils-libs-1.5.8-3.el7.x86_64
kmod-20-5.el7.x86_64
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
- Status changed from MODIFIED to 5
- Status changed from 5 to CLOSED - CURRENTRELEASE
Also available in: Atom
PDF
When installing units referenced by errata, only install the latest unit
This only really affects installing kernel packages, since that is the only package I know of that allows installing multiple versions, but without this fix pulp consumers will install all packages referenced by errata that are being installed, even if one errata references a newer version of a package than another errata.
https://pulp.plan.io/issues/1464 fixes #1464