Bug 916326

Summary: Packages conflicting when signed with different gpg key
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: James Slagle <jslagle>
Component: RHUAAssignee: James Slagle <jslagle>
Status: CLOSED ERRATA QA Contact: mkovacik
Severity: high Docs Contact:
Priority: high    
Version: 2.1CC: dmacpher, inecas, jortel, sclewis, skarmark, tsanders, vkuznets, whayutin
Target Milestone: ---Keywords: Triaged
Target Release: 2.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Synchronization of two repositories with similar content signed with different GPG keys caused a conflict between two of the same packages with the same checksum prefix. This fix changes the behaviour to use the full checksum instead of the prefix when creating the the package URL, which provides successful synchronization.
Story Points: ---
Clone Of: 798656
: 921250 (view as bug list) Environment:
Last Closed: 2013-04-23 11:41:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 798656    
Bug Blocks: 798301, 921250    
Attachments:
Description Flags
pulp_package_migrate.log
none
testing with pulp-admin log none

Comment 1 James Slagle 2013-02-28 18:20:52 UTC
the grinder commit for this is b2009c812faa8d68afe558d171ab13b26341c2c3

Comment 2 James Slagle 2013-02-28 18:27:31 UTC
commit hash in comment #1 is wrong.  the grinder commit is 36dd89e187cfe93dc43fa849f7e3bfbacf5450da

Comment 3 James Slagle 2013-03-22 20:44:36 UTC
commits pulled into pulp:
80e3c927ec6c3520456746237ab6b3f374968901
bf79a462a383339850f7951bbb18b42da0173408
0e8ca8fc6d1f5207214c8847a2ea917cf2d9181c

and grinder:
a3bae749369ed409f9597c19f74bdea6c1c4842c

Comment 5 Vitaly Kuznetsov 2013-04-09 12:53:41 UTC
Verifying with RHEL-6.4-RHUI-2.1.2-20130405.2-Server-x86_64-DVD1.iso:

comment#3 says there should be new grinder package but grinder was not updated in the ISO:

-r--r--r--.  10 root root   143976 Aug 10  2012
grinder-0.0.138-1.el6_3.rhui.noarch.rpm

I've done new setup with 2.1.2 iso and downloaded RHUI2 repo. Packages in /var/lib/pulp/packages still have 3-digit checksum:

# find /var/lib/pulp/packages -name "libyaml*.rpm"
/var/lib/pulp/packages/libyaml/0.1.3/3.el6_1/x86_64/8c3/libyaml-0.1.3-3.el6_1.x86_64.rpm

Pulp issue (https://bugzilla.redhat.com/show_bug.cgi?id=798656) looks fixed, testing with specified repos (http://inecas.fedorapeople.org/fakerepos/rh-repo, http://inecas.fedorapeople.org/fakerepos/brew-repo) succeeded.

Comment 6 James Slagle 2013-04-09 13:09:06 UTC
sorry, looks like i forgot to include the build.  I'll get the iso updated

Comment 7 James Slagle 2013-04-10 18:49:04 UTC
updated iso available

Comment 8 Vitaly Kuznetsov 2013-04-12 08:18:56 UTC
Validated with  RHEL-6.4-RHUI-2.1.2-20130410.0-Server-x86_64-DVD1.iso:

1) Upgrade from 2.1.1 with pulp-package-migrate script (according to the doc)

2) New 2.1.2 setup

Comment 9 Vitaly Kuznetsov 2013-04-12 08:20:28 UTC
Created attachment 734608 [details]
pulp_package_migrate.log

Comment 10 Vitaly Kuznetsov 2013-04-12 08:24:11 UTC
Created attachment 734609 [details]
testing with pulp-admin log

Comment 12 errata-xmlrpc 2013-04-23 11:41:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0767.html