<div dir="ltr"><div><div><div>Hi Barnaby,<br><br></div>Thanks for your note.  Unfortunately, --checksum-type doesn't seem to be an option for the "pulp-admin rpm repo uploads rpm" command:<br><br>CWC\cplummer1@cbigdc-rhel6test ~ $ pulp-admin rpm repo uploads rpm --repo-id=q1-ol5-x86_64 --file oracle-validated-1.0.0-34.el5.x86_64.rpm --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, ., -, 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; 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 will not<br>                    be uploaded<br>The following options were specified but do not exist on the command:<br>
  --checksum-type<br><br></div>I am using the RPMs for 2.3.1-1.  Shouldn't it default to the checksum-type for the repository, if specified?<br><br></div>Thanks,<br>Christina<br><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Mar 10, 2014 at 2:31 PM, Barnaby Court <span dir="ltr"><<a href="mailto:bcourt@redhat.com" target="_blank">bcourt@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Christina,<br>
<br>
The checksum on the RPM is set at upload time.  Was "--checksum-type SHA1" set on the "pulp-admin rpm repo uploads rpm" command?  If no checksum type is specified it defaults to SHA256.<br>
<br>
Regards,<br>
Barnaby<br>
<div><div class="h5"><br>
----- Original Message -----<br>
From: "Christina Plummer" <<a href="mailto:cplummer@gmail.com">cplummer@gmail.com</a>><br>
To: <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 uploaded packages still get SHA256<br>
<br>
On Pulp 2.1.3, I had run into issues with sha256 checksums being created for some of the repo metadata files, even though the repo was configured to use sha instead.<br>
<br>
On Pulp 2.3.1, this seems to have been fixed... however, I am now seeing that packages manually uploaded into a repo are still getting a sha256 checksum in the repodata, which means that RHEL5/OL5 clients can't handle them. Packages that were synced, or copied from 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, 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 has a 'sha' checksum; oracle-validated-1.0.0 alone has a 'sha256' checksum.<br>
<br>
Is this a bug?<br>
<br>
Thanks,<br>
Christina<br>
<br>
</div></div>_______________________________________________<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>
</blockquote></div><br></div></div>