Project

Profile

Help

Issue #1737

The checksum/checksum_type is not being included in the lazy catalog

Added by jcline@redhat.com over 4 years ago. Updated over 1 year ago.

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

Description

The lazy catalog model has fields for the checksum and checksum type. However, these do not appear to be present when I sync the zoo repo on_demand:

> db.lazy_content_catalog.find().pretty()
{
        "_id" : ObjectId("56d746f7e779895fa7bc9694"),
        "_ns" : "lazy_content_catalog",
        "path" : "/var/lib/pulp/content/units/rpm/02/4d46c52813635d9322f078df4309081c46e5bb2426d3be8ad4666afb695fee/trout-0.12-1.noarch.rpm",
        "importer_id" : "56d746e3e779895e877d5325",
        "unit_id" : "3fe5c255-72f6-44af-a8cd-c719fd7129d4",
        "unit_type_id" : "rpm",
        "url" : "https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/trout-0.12-1.noarch.rpm",
        "revision" : 1,
        "data" : {

        }
}

This means packages can't be checked for corruption, and only get re-downloaded when the file is not present on disk.

[vagrant@dev 4d46c52813635d9322f078df4309081c46e5bb2426d3be8ad4666afb695fee]$ ls
trout-0.12-1.noarch.rpm
[vagrant@dev 4d46c52813635d9322f078df4309081c46e5bb2426d3be8ad4666afb695fee]$ sha256sum trout-0.12-1.noarch.rpm 
aea91d73d8df21502fecbc1bbf64e7cfdd61751a1ba2730939d57fc842602e14  trout-0.12-1.noarch.rpm
[vagrant@dev 4d46c52813635d9322f078df4309081c46e5bb2426d3be8ad4666afb695fee]$ sudo rm trout-0.12-1.noarch.rpm 
[vagrant@dev 4d46c52813635d9322f078df4309081c46e5bb2426d3be8ad4666afb695fee]$ sudo touch trout-0.12-1.noarch.rpm                                                                                                   
[vagrant@dev 4d46c52813635d9322f078df4309081c46e5bb2426d3be8ad4666afb695fee]$ sha256sum trout-0.12-1.noarch.rpm                                                                                                    
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  trout-0.12-1.noarch.rpm
[vagrant@dev 4d46c52813635d9322f078df4309081c46e5bb2426d3be8ad4666afb695fee]$ pulp-admin repo download --repo-id zoo --verify-all                                                                                  
+----------------------------------------------------------------------+
                      Downloading Repository [zoo]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.

Download Repository Content
[==================================================] 100%
32 of 32 items
... completed

Task Succeeded

[vagrant@dev 4d46c52813635d9322f078df4309081c46e5bb2426d3be8ad4666afb695fee]$ sha256sum trout-0.12-1.noarch.rpm                                                                                                    
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855  trout-0.12-1.noarch.rpm
[vagrant@dev 4d46c52813635d9322f078df4309081c46e5bb2426d3be8ad4666afb695fee]$ sudo rm trout-0.12-1.noarch.rpm 
[vagrant@dev 4d46c52813635d9322f078df4309081c46e5bb2426d3be8ad4666afb695fee]$ pulp-admin repo download --repo-id zoo --verify-all
+----------------------------------------------------------------------+
                      Downloading Repository [zoo]
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.

Download Repository Content
[==================================================] 100%
32 of 32 items
... completed

Task Succeeded

[vagrant@dev 4d46c52813635d9322f078df4309081c46e5bb2426d3be8ad4666afb695fee]$ ls
trout-0.12-1.noarch.rpm
[vagrant@dev 4d46c52813635d9322f078df4309081c46e5bb2426d3be8ad4666afb695fee]$ sha256sum trout-0.12-1.noarch.rpm 
aea91d73d8df21502fecbc1bbf64e7cfdd61751a1ba2730939d57fc842602e14  trout-0.12-1.noarch.rpm

Associated revisions

Revision 0c31a008 View on GitHub
Added by Jeremy Cline over 4 years ago

Add the checksum and checksum type to the lazy catalog.

closes #1737

History

#1 Updated by mhrivnak over 4 years ago

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

#2 Updated by jcline@redhat.com over 4 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to jcline@redhat.com

#3 Updated by jcline@redhat.com over 4 years ago

  • Status changed from ASSIGNED to POST

#4 Updated by Anonymous over 4 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#5 Updated by semyers over 4 years ago

  • Status changed from MODIFIED to 5

#6 Updated by pthomas@redhat.com over 4 years ago

  • Status changed from 5 to 6

verified
[root@ibm-x3550m3-10 ~]# rpm -qa |grep streamer
python-pulp-streamer-2.8.1-0.1.beta.el7.noarch
[root@ibm-x3550m3-10 ~]#
{
"_id" : ObjectId("56f437540e8c23770fad08df"),
"_ns" : "lazy_content_catalog",
"path" : "/var/lib/pulp/content/units/rpm/dd/e3e5bb500198c5e566ba534806a1e8b897fee644168e109f224a76c7c1f9f5/389-ds-base-1.2.11.15-60.el6.x86_64.rpm",
"importer_id" : "56f433820e8c23732b726632",
"unit_id" : "dd10f136-6027-4b5e-93cf-9caf4fbeda87",
"unit_type_id" : "rpm",
"url" : "http://cdn.rcm-internal.redhat.com/content/dist/rhel/server/6/6.7/x86_64/os/Packages/389-ds-base-1.2.11.15-60.el6.x86_64.rpm",
"checksum" : "b1734348d8b27464924219becfc2476713a185ea",
"checksum_algorithm" : "sha1",
"revision" : 1,
"data" : {

}

#7 Updated by semyers over 4 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#9 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF