Issue #833
closed
older errata units may have 'null' in database for pkglist package epoch
Status:
CLOSED - CURRENTRELEASE
Description
During testing of a different patch, Justin Sherrill discovered that some errata were not being applied to systems. This was only occurring for errata with package lists that did not contain an epoch. Example metadata:
<package arch="noarch" name="foo-package" release="8.el7ev" src="foo-package.src.rpm" version="1.0.9">
<filename>foo-package.noarch.rpm</filename>
</package>
Note the lack of "epoch" in the package XML attributes.
Pulp should default to use '0' when the epoch does not exist.
- Description updated (diff)
- Priority changed from Normal to High
- Severity changed from 2. Medium to 3. High
Branch from 2.4 for this fix.
- Triaged changed from No to Yes
- Description updated (diff)
I sent a patch to Justin that worked for him. I need to create repro steps for QE before creating a PR however.
- Platform Release set to 2.6.1
- Status changed from NEW to ASSIGNED
- Status changed from ASSIGNED to POST
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
- Status changed from MODIFIED to 5
- Status changed from 5 to 6
verified
[root@qe-blade-13 ~]# pulp-admin rpm consumer errata install run --consumer-id rhel7 --errata-id RHBA-2014:1010
Warning: path should have mode 0700 because it may contain sensitive information: /root/.pulp/
Install task created with id [ 9bd7df2f-b4b2-4df9-8e69-25e8773cabb1 ]
This command may be exited via ctrl+c without affecting the request.
Refresh Repository Metadata [ OK ]
Downloading Packages [ OK ]
Check Package Signatures [ OK ]
Running Test Transaction [ OK ]
Running Transaction [ OK ]
Install Succeeded
+----------------------------------------------------------------------+
Installed
+----------------------------------------------------------------------+
Name: rhevm-guest-agent-common
Version: 1.0.9
Arch: noarch
Repoid: rhel
<\pre>
- Status changed from 6 to CLOSED - CURRENTRELEASE
- Related to Issue #1926: package without epoch in the erratum pkglist is not handled correctly during publish added
Also available in: Atom
PDF
treat 'epoch' as '0' when it does not exist or is null
Some updateinfo.xml metadata does not contain the
epoch
field in package records. In these cases, Pulp will not be able to find the appropriate RPM.In these cases, we can assume that the epoch should be '0'. This allows Pulp to find the RPM when applying packages to a system.
fixes #833