[Pulp-list] rpm checksums in PULP v1

Andreas Piesk a.piesk at gmx.net
Thu Feb 7 18:38:03 UTC 2013


Hello list,

i've got a litte proble with PULP v1 regarding checksums of rpm packages.

Currently i migrate a bunch of mrepo generated repositories with ten of thousands packages to PULP
v1. In order to keep the migration time short i tought importing the rpm into PULP v1 and syncing
the repositories with the remote feed would be a good idea which in fact is it not.

i created a repo A with remote feed, preserve_metadata and checksum_type=sha. the remote feed uses
sha but for some reason pulp detects sha256, so i had to change it afterwars to sha.

then i imported the packages which worked very well and reasonable fast. but to my surprise the
subsequent sync downloaded all the packages again because it couldn'n find the previously imported
packages due to different checksums.

the import created directories with sha256 checksums, the sync with sha resulting in two stored
packages where it should only be one:

./libselinux-static/2.0.94/5.3.el6/i686/8e49828a760340629b23d50c694ec4032beabdb7
./libselinux-static/2.0.94/5.3.el6/i686/bbf65fa24962cb39bde1d90637c640fa24433ba05f8b2a08f87038f3e4ff4808

i haven't figured out, why the import uses sha256 and not the checksum_type of the repo it is
importing into. any pointers will be appreciated.

regards,
-ap





More information about the Pulp-list mailing list