Project

Profile

Help

Issue #951

closed

checksum is not honored if sqlite generation is turned on

Added by bcourt over 7 years ago. Updated over 3 years 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

Actions #1

Updated by mhrivnak over 7 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
Actions #2

Updated by bcourt over 7 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bcourt
Actions #3

Updated by bcourt over 7 years ago

  • Status changed from ASSIGNED to POST
Actions #4

Updated by bcourt over 7 years ago

  • Status changed from POST to MODIFIED
Actions #5

Updated by dkliban@redhat.com over 7 years ago

  • Status changed from MODIFIED to 5
Actions #7

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

Updated by amacdona@redhat.com almost 7 years ago

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

Updated by bmbouter over 3 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF