Project

Profile

Help

Issue #1737

closed

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

Added by jcline@redhat.com about 8 years ago. Updated about 5 years 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

Also available in: Atom PDF