<div dir="ltr"><div><div>Hi Philipp,<br><br></div>My workaround was to modify the upload/package.py and explicitly force it to use "sha" instead of "sha256".  On my system, the file was /usr/lib/python2.6/site-packages/pulp_rpm/extension/admin/upload/package.py . See attached diff.<br>
<br></div>Be sure to set aside the package.pyc and package.pyo files as well, and restart httpd.  Then delete and re-upload the package to your repos.<br><div><br></div><div>Belated public thanks to Ryan Bowlby for the pointer on this one.<br>
<br></div><div>Christina<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 16, 2014 at 10:19 AM, Philipp Gassmann <span dir="ltr"><<a href="mailto:gassmann@puzzle.ch" target="_blank">gassmann@puzzle.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Christina<br>
<br>
I just stumbled over the same issue. I uploaded the same noarch package<br>
to multiple repositories. now the installation of the package on CentOS<br>
5 fails because of the wrong checksum.<br>
<br>
Did you find a solution or workaround?<br>
I can install the package if I download it manually and install it with<br>
yum --nogpgcheck.<br>
<br>
Regards,<br>
Philipp<br>
<br>
<br>
Am 11.03.2014 14:26, schrieb Christina Plummer:<br>
<div><div class="h5">> Hi Barnaby,<br>
><br>
> Thanks for your note.  Unfortunately, --checksum-type doesn't seem to be<br>
> an option for the "pulp-admin rpm repo uploads rpm" command:<br>
><br>
> CWC\cplummer1@cbigdc-rhel6test ~ $ pulp-admin rpm repo uploads rpm<br>
> --repo-id=q1-ol5-x86_64 --file oracle-validated-1.0.0-34.el5.x86_64.rpm<br>
> --checksum-type sha<br>
> Command: rpm<br>
> Description: uploads one or more RPMs into a repository<br>
><br>
> Available Arguments:<br>
><br>
>   --repo-id       - (required) unique identifier; only alphanumeric, .,<br>
> -, and _<br>
>                     allowed<br>
>   --file, -f      - full path to a file to upload; may be specified multiple<br>
>                     times for multiple files<br>
>   --dir, -d       - full path to a directory containing files to upload;<br>
> may be<br>
>                     specified multiple times for multiple directories<br>
>   -v              - display extra information about the upload process<br>
>   --skip-existing - if specified, RPMs that already exist on the server<br>
> will not<br>
>                     be uploaded<br>
> The following options were specified but do not exist on the command:<br>
>   --checksum-type<br>
><br>
> I am using the RPMs for 2.3.1-1.  Shouldn't it default to the<br>
> checksum-type for the repository, if specified?<br>
><br>
> Thanks,<br>
> Christina<br>
><br>
><br>
> On Mon, Mar 10, 2014 at 2:31 PM, Barnaby Court <<a href="mailto:bcourt@redhat.com">bcourt@redhat.com</a><br>
</div></div><div class="">> <mailto:<a href="mailto:bcourt@redhat.com">bcourt@redhat.com</a>>> wrote:<br>
><br>
>     Christina,<br>
><br>
>     The checksum on the RPM is set at upload time.  Was "--checksum-type<br>
>     SHA1" set on the "pulp-admin rpm repo uploads rpm" command?  If no<br>
>     checksum type is specified it defaults to SHA256.<br>
><br>
>     Regards,<br>
>     Barnaby<br>
><br>
>     ----- Original Message -----<br>
>     From: "Christina Plummer" <<a href="mailto:cplummer@gmail.com">cplummer@gmail.com</a><br>
</div><div><div class="h5">>     <mailto:<a href="mailto:cplummer@gmail.com">cplummer@gmail.com</a>>><br>
>     To: <a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a> <mailto:<a href="mailto:pulp-list@redhat.com">pulp-list@redhat.com</a>><br>
>     Sent: Monday, March 10, 2014 1:42:14 PM<br>
>     Subject: [Pulp-list] Repo configured to use SHA checksums,      but<br>
>     uploaded packages still get SHA256<br>
><br>
>     On Pulp 2.1.3, I had run into issues with sha256 checksums being<br>
>     created for some of the repo metadata files, even though the repo<br>
>     was configured to use sha instead.<br>
><br>
>     On Pulp 2.3.1, this seems to have been fixed... however, I am now<br>
>     seeing that packages manually uploaded into a repo are still getting<br>
>     a sha256 checksum in the repodata, which means that RHEL5/OL5<br>
>     clients can't handle them. Packages that were synced, or copied from<br>
>     another repository, have the correct checksum type.<br>
><br>
>     OS: RHEL 6.5 x86_64<br>
>     Pulp: 2.3.1-1 (RPMs from Pulp repo)<br>
>     Steps to reproduce:<br>
>     1. Created "live" repo fed from Oracle public yum repositories,<br>
>     checksum-type=sha, retain-old-count=1<br>
>     2. Created "q1" repo, checksum-type=sha<br>
>     3. Copied rpms from "live" to "q1<br>
>     4. Deleted "known-broken" versions of oracle-validated-1.1.0 package<br>
>     5. Uploaded "known-working" version of oracle-validated-1.0.0 package<br>
>     6. Published repo. Every package except for oracle-validated-1.0.0<br>
>     has a 'sha' checksum; oracle-validated-1.0.0 alone has a 'sha256'<br>
>     checksum.<br>
><br>
>     Is this a bug?<br>
><br>
>     Thanks,<br>
>     Christina<br>
><br>
>     _______________________________________________<br>
>     Pulp-list mailing list<br>
</div></div>>     <a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a> <mailto:<a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a>><br>
>     <a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br>
<div class="HOEnZb"><div class="h5">><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Pulp-list mailing list<br>
> <a href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br>
><br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Philipp Gassmann<br>
<br>
Puzzle ITC GmbH<br>
<a href="http://www.puzzle.ch" target="_blank">http://www.puzzle.ch</a><br>
<br>
Telefon <a href="tel:%2B41%2031%20370%2022%2000" value="+41313702200">+41 31 370 22 00</a><br>
Werfen Sie einen Blick in unseren Blog:<br>
<a href="http://www.puzzle.ch/blog" target="_blank">http://www.puzzle.ch/blog</a><br>
<br>
</font></span></blockquote></div><br></div></div>