Project

Profile

Help

Issue #833

older errata units may have 'null' in database for pkglist package epoch

Added by cduryee over 6 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.4.3
Platform Release:
2.6.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

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.


Related issues

Related to RPM Support - Issue #1926: package without epoch in the erratum pkglist is not handled correctly during publishCLOSED - CURRENTRELEASE<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision 04dd6c23 View on GitHub
Added by cduryee over 6 years ago

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

History

#1 Updated by cduryee over 6 years ago

  • Description updated (diff)

#2 Updated by mhrivnak over 6 years ago

  • Priority changed from Normal to High
  • Severity changed from 2. Medium to 3. High

Branch from 2.4 for this fix.

#3 Updated by mhrivnak over 6 years ago

  • Triaged changed from No to Yes

#4 Updated by cduryee over 6 years ago

  • Description updated (diff)

#5 Updated by cduryee over 6 years ago

I sent a patch to Justin that worked for him. I need to create repro steps for QE before creating a PR however.

#6 Updated by cduryee over 6 years ago

  • Platform Release set to 2.6.1

#7 Updated by cduryee over 6 years ago

  • Status changed from NEW to ASSIGNED

#8 Updated by cduryee over 6 years ago

  • Assignee set to cduryee

#10 Updated by cduryee over 6 years ago

  • Status changed from ASSIGNED to POST

#11 Updated by cduryee over 6 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#12 Updated by dkliban@redhat.com over 6 years ago

  • Status changed from MODIFIED to 5

#13 Updated by pthomas@redhat.com over 6 years ago

  • 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>

#14 Updated by dkliban@redhat.com about 6 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#16 Updated by ttereshc over 5 years ago

  • Related to Issue #1926: package without epoch in the erratum pkglist is not handled correctly during publish added

#17 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF