Project

Profile

Help

Issue #833

closed

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

Added by cduryee over 9 years ago. Updated over 5 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 - CURRENTRELEASEttereshcActions
Actions #1

Updated by cduryee over 9 years ago

  • Description updated (diff)
Actions #2

Updated by mhrivnak over 9 years ago

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

Branch from 2.4 for this fix.

Actions #3

Updated by mhrivnak over 9 years ago

  • Triaged changed from No to Yes
Actions #4

Updated by cduryee over 9 years ago

  • Description updated (diff)
Actions #5

Updated by cduryee over 9 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.

Actions #6

Updated by cduryee over 9 years ago

  • Platform Release set to 2.6.1
Actions #7

Updated by cduryee over 9 years ago

  • Status changed from NEW to ASSIGNED
Actions #8

Updated by cduryee over 9 years ago

  • Assignee set to cduryee

Added by cduryee over 9 years ago

Revision 04dd6c23 | View on GitHub

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

Actions #10

Updated by cduryee over 9 years ago

  • Status changed from ASSIGNED to POST
Actions #11

Updated by cduryee over 9 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #12

Updated by dkliban@redhat.com over 9 years ago

  • Status changed from MODIFIED to 5
Actions #13

Updated by pthomas@redhat.com over 9 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>
Actions #14

Updated by dkliban@redhat.com about 9 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE
Actions #16

Updated by ttereshc over 8 years ago

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

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF