Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1139896 - synced RPMs do not have their checksums verified
Summary: synced RPMs do not have their checksums verified
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: David Davis
QA Contact: Tazim Kolhar
URL: http://projects.theforeman.org/issues...
Whiteboard:
: 1153649 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-09 22:43 UTC by Mike McCune
Modified: 2019-07-11 08:11 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 05:16:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
TESTPLAN Screenshot - verify you see this in 6.1 (71.81 KB, image/png)
2015-04-27 23:33 UTC, Mike McCune
no flags Details
broken package (63.37 KB, image/png)
2015-04-30 11:12 UTC, Tazim Kolhar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1592 0 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 09:04:35 UTC

Description Mike McCune 2014-09-09 22:43:13 UTC
During testing we ran into a situation where RPMs had been synchronized from the CDN, copied to disk and then published in a Content View with an RPM that was truncated and not fully complete.  

Extraction of the RPM shows an incomplete file:

# rpm2cpio selinux-policy-targeted-3.7.19-231.el6.noarch.rpm | cpio -idmv
....
./usr/share/selinux/targeted/piranha.pp.bz2
cpio: ./usr/share/selinux/targeted/pkcsslotd.pp.bz2 not created: newer or same age version exists
./usr/share/selinux/targeted/pkcsslotd.pp.bz2
cpio: ./usr/share/selinux/targeted/plymouthd.pp.bz2 not created: newer or same age version exists
cpio: premature end of file

The metadata containing filesizes and checksums for obvious reasons, does not match the above file since it is corrupt for whatever reason.

Comment 1 Mike McCune 2014-09-09 22:49:39 UTC
Hit submit too soon, meant to say:

We need to investigate turning on checksum validation during download which has incorrect documentation as stated here:

https://bugzilla.redhat.com/show_bug.cgi?id=1139888

we also need to determine and document a method for resolving this for customers who experience this issue.

Comment 3 Ivan Necas 2014-09-23 09:39:01 UTC
I wonder, if this is similar to what was reported here https://www.redhat.com/archives/pulp-list/2013-December/msg00059.html

The issue I've seen is having a package synchronized and then re-signed upstream, the subsequential sync of the repository seemed to have this issue.

Comment 4 David Davis 2014-10-14 21:39:46 UTC
Without validation, it took 1 hr 12 min. With validation 1 hr 40 min.

Comment 5 Partha Aji 2014-10-14 21:46:19 UTC
Created redmine issue http://projects.theforeman.org/issues/7947 from this bug

Comment 6 David Davis 2014-10-14 21:50:58 UTC
Need to add documentation on how to enable checksum validation.

Comment 7 Bryan Kearney 2014-10-16 13:28:00 UTC
*** Bug 1153649 has been marked as a duplicate of this bug. ***

Comment 8 Bryan Kearney 2014-10-27 14:04:23 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/7947 has been closed
-------------
David Davis
Applied in changeset commit:katello|cdb1f1e7b726ed1023dc34fa9c73627703277015.

Comment 17 Tazim Kolhar 2015-04-02 09:51:26 UTC
please provide verification steps
thanks

Comment 18 David Davis 2015-04-08 14:44:44 UTC
Mike can you provide verification steps?

Comment 19 Mike McCune 2015-04-27 23:33:24 UTC
TESTPLAN:

sync a repository you know has broken packages (size does not match the metadata).

I created a repo like this to assist with verification:

https://mmccune.fedorapeople.org/repos/broken-checksum/

Steps:

1) Create a custom repository with the URL https://mmccune.fedorapeople.org/repos/broken-checksum/

2) sync the repository

3) ensure that the task states that 1 package failed to download, see attached screenshot.

Even thou the task is still 'Success' this bug is just about ensuring that it notices the corrupted package which we did *not* notice in 6.0.

For the future bug about properly recording errors as a Warning see:

https://bugzilla.redhat.com/show_bug.cgi?id=1215838

Comment 20 Mike McCune 2015-04-27 23:33:56 UTC
Created attachment 1019462 [details]
TESTPLAN Screenshot - verify you see this in 6.1

Comment 21 Tazim Kolhar 2015-04-30 11:11:11 UTC
VERIFIED:

# rpm -qa | grep foreman
puppet-foreman_scap_client-0.3.3-8.el7sat.noarch
ruby193-rubygem-foreman_docker-1.2.0.10-1.el7sat.noarch
ruby193-rubygem-foreman-tasks-0.6.12.4-1.el7sat.noarch
rubygem-hammer_cli_foreman_discovery-0.0.1.8-1.el7sat.noarch
foreman-libvirt-1.7.2.18-1.el7sat.noarch
ruby193-rubygem-foreman_bootdisk-4.0.2.12-1.el7sat.noarch
foreman-compute-1.7.2.18-1.el7sat.noarch
foreman-ovirt-1.7.2.18-1.el7sat.noarch
ruby193-rubygem-foreman_discovery-2.0.0.12-1.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3.4-1.el7sat.noarch
foreman-debug-1.7.2.18-1.el7sat.noarch
foreman-postgresql-1.7.2.18-1.el7sat.noarch
qe-sat6-rhel71.usersys.redhat.com-foreman-client-1.0-1.noarch
qe-sat6-rhel71.usersys.redhat.com-foreman-proxy-1.0-1.noarch
ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el7sat.noarch
foreman-1.7.2.18-1.el7sat.noarch
foreman-gce-1.7.2.18-1.el7sat.noarch
ruby193-rubygem-foreman_hooks-0.3.7-2.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.4.10-1.el7sat.noarch
foreman-selinux-1.7.2.13-1.el7sat.noarch
foreman-vmware-1.7.2.18-1.el7sat.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2.6-1.el7sat.noarch
foreman-proxy-1.7.2.4-1.el7sat.noarch
qe-sat6-rhel71.usersys.redhat.com-foreman-proxy-client-1.0-1.noarch
ruby193-rubygem-foreman-redhat_access-0.1.0-1.el7sat.noarch

1) Create a custom repository with the URL https://mmccune.fedorapeople.org/repos/broken-checksum/

2) sync the repository

3) ensure that the task states that 1 package failed to download, 

screenshot attached

Comment 22 Tazim Kolhar 2015-04-30 11:12:11 UTC
Created attachment 1020555 [details]
broken package

Comment 23 Bryan Kearney 2015-08-11 13:23:34 UTC
This bug is slated to be released with Satellite 6.1.

Comment 24 errata-xmlrpc 2015-08-12 05:16:15 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.

https://access.redhat.com/errata/RHSA-2015:1592


Note You need to log in before you can comment on or make changes to this bug.