[Pulp-list] delayed download questions

Jeremy Cline jcline at redhat.com
Mon Feb 8 13:52:26 UTC 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 02/06/2016 11:22 AM, Dennis Gregorovic wrote:
> Hi,
> 
> Just attended the Pulp talk at DevConf[0].  Kudos to Ina for that!
> 
> The delayed download feature was presented and I have a couple of
> questions.
> 
> * How does Pulp map the user-requested URL to a Pulp object for
> download?

The summary is that a requested URL maps to a unique storage path for
the file, and we keep a catalog of file -> upstream URLs.

More detailed documentation is available[0].

> * What happens if the downloaded file doesn't match the checksum in
> the pulp db for that content unit?

This depends. When a client requests the file, we stream it back to the
client as we receive it, so the client will get the corrupt file. Pulp,
however, will not save the unit permanently unless the checksum is
correct.

> * Likewise, what happens if Pulp downloader is unable to complete
> the download?

Whatever the reason, the client will receive the appropriate response
(HTTP 404, 403, etc). Beyond passing the upstream repository response to
the client, Pulp doesn't anything.

[0]
https://github.com/pulp/pulp/blob/master/docs/dev-guide/design/deferred-
download.rst

- -- 
Jeremy Cline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWuJ1cAAoJEJIjMI+pskbbpcwQAKDZ0U9fARr0FLV1Th5D+OuG
YqBQC5fhLUzzn5p4AFWqfTQjRfiNnx72lAI1GEgK/2OTLVcW4lUfRtrKRItgl3Ao
J2f3+nUxIbvEFKpb+na8/1pOtzZEIXQ3KXT7pwVcrcqzl1j6lLkgS7sMIF6VPk+v
BhLHej6kjCQ6YkrUlnWFwcpW/BhXEVtbCLi7csWAiGILSa0FlvooMJlze3hHuMtm
PTfWVXxFC9ZT3h43zvmuHSf0K1eV2JYHXrWYrgf+k8IdbN021DtsoLwvF3+Y6Spo
LWymekMRGxFVgglmN/mAvY95hjnW3JWfx+xKeQfdl09LjpEwBXTorti5sQXkXp8L
CXzMv6BSaAraiH/UUCip6/Y/stwfddvf6CdCzFb1l2fx9arrhN3ZuEQIau2V6h6E
CAKfg2D+kZNvAg3YRclu5ynXWVW0NIiocMBWyEeSlGvdm/gHkh050v0xRMDhfy/b
NGAgie9R8hOwSW231welFFfUpnd17XtuKMKd/gfgawZTHyp183qicGm3VZY8Qyl7
ZryHTtwusrzw1rxMUpS0CvwhCb/hGT4sRaGlVkVZD+U599mQlp3q5IEmr1Fh09Ic
e7EEemiqcEHXXjZEgx5mZRBOsTHMcE738VMWuwrgg3hlsu3clE+YQUZNoBP26uWW
b7eJ79E6X5IkoaZ0r7jf
=jQtR
-----END PGP SIGNATURE-----




More information about the Pulp-list mailing list