Project

Profile

Help

Issue #951

checksum is not honored if sqlite generation is turned on

Added by bcourt over 5 years ago. Updated over 1 year ago.

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

Description

If sqlite generation is enabled the checksum is always using sha256

History

#1 Updated by mhrivnak over 5 years ago

  • Priority changed from Normal to High
  • Platform Release set to 2.6.2
  • Triaged changed from No to Yes

Original report, which came in via email:

From: "Webb, Reece" <Reece Webb ucsf edu>
To: "Pulp-list redhat com" <Pulp-list redhat com>
Subject: [Pulp-list] syncing RHEL5 repositories
Date: Mon, 4 May 2015 20:41:29 +0000
I’m able to sync RHEL5 repositories to Pulp 2.6.1, but I get a checksum error when I try a ‘yum update’ on a RHEL5 host:

[Errno -3] Error performing checksum

I found a few threads from a couple of years ago stating that this was apparently an issue with the repository being published with sha256. I’ve tried re-creating my repositories with —checksum-type=sha1, but no luck. I checked repomd.xml, I still see sha256 listed. Any advice?

Here’s my repo create:

# pulp-admin rpm repo create --repo-id=rad-5Client --relative-url="" --generate-sqlite=true --serve-http=true --retain-old-count=2 --remove-missing=true --checksum-type=sha1 --description="Red Hat Enterprise Linux 5 Client - Updates" --feed=https://cdn.redhat.com/content/dist/rhel/workstation/5/5Client/x86_64/os/ --feed-ca-cert=/etc/rhsm/ca/redhat-uep.pem --feed-cert=/etc/pki/pulp/content/Workstation-Entitlement.pem --feed-key=/etc/pki/pulp/content/Workstation-Entitlement.pem

Thanks,
Reece

#2 Updated by bcourt over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bcourt

#3 Updated by bcourt over 5 years ago

  • Status changed from ASSIGNED to POST

#4 Updated by bcourt over 5 years ago

  • Status changed from POST to MODIFIED

#5 Updated by dkliban@redhat.com over 5 years ago

  • Status changed from MODIFIED to 5

#7 Updated by pthomas@redhat.com over 5 years ago

  • Status changed from 5 to 6

verified

[root@mgmt12 ~]# rpm -qa pulp-server
pulp-server-2.6.2-0.2.beta.el6.noarch
[root@mgmt12 ~]# 

[root@mgmt12 ~]# pulp-admin rpm repo create --repo-id=rad-5Client --relative-url="5Client" --generate-sqlite=true --serve-http=true --retain-old-count=2 --remove-missing=true --checksum-type=sha1 --description="Red Hat Enterprise Linux 5 Client - Updates" --feed=https://cdn.redhat.com/content/dist/rhel/workstation/5/5Client/x86_64/os/ --feed-ca-cert=CDN/cdn.redhat.com-chain.crt --feed-cert=CDN/b655c0445cf57cef7e75ba574e48f26a.crt --feed-key=CDN/b655c0445cf57cef7e75ba574e48f26a.key 
Successfully created repository [rad-5Client]

[root@mgmt12 ~]# 

 <checksum type="sha1">822b75a57193564b9921fc7a4968f5641a3f4085</checksum>
    <open-checksum type="sha1">cedd9ce386b8c1a3be06dba8800747440e3a3a91</open-checksum>
    <location href="repodata/822b75a57193564b9921fc7a4968f5641a3f4085-comps.xml.gz"/>
    <timestamp>1432052237</timestamp>
    <size>118186</size>
    <open-size>419864</open-size>
  </data>
  <data type="updateinfo">
    <checksum type="sha1">d146fbf1ba3d7bb8d770497830f612aed632ce8f</checksum>
    <open-checksum type="sha1">fdab9fdb72d87cef4d8c0fb4de6532cc7c89932a</open-checksum>
    <location href="repodata/d146fbf1ba3d7bb8d770497830f612aed632ce8f-updateinfo.xml.gz"/>

<\pre>

#8 Updated by amacdona@redhat.com almost 5 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#10 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF