Bug 740010
| Summary: | Repository doesn't honor checksum_type | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Jay Dobies <jason.dobies> |
| Component: | user-experience | Assignee: | Pradeep Kilambi <pkilambi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-24 20:15:29 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jay Dobies
2011-09-20 16:59:11 UTC
<jdob> i'm not sure I'm necessarily doing a valid test, but it looks like if I pass in sha1, I still get sha256 checksums in the created repo <jdob> assuming I'm reading this right <jmatthews> jdob, I was thinking of looking at primary.xml <jmatthews> looking at an entry for package and seeing what checksum type is there <jmatthews> and in your pulp.log we may be outputting the createrepo command, would you see if it is and paste it? <jdob> i dont have any packages in the repo yet, that's just the empty repo, i'll try adding one and seeing... lemme check pulp.log now <jdob> hrm: <jdob> 2011-09-20 12:49:26,677 9813:140296952198912: pulp.server.util:INFO: util:445 started repo metadata update: ['createrepo', '--database', '--checksum', 'sha256', '--update', '/var/lib/pulp//repos/test-1'] <jdob> i'm guessing that's bad <jdob> it's ignoring my request to do sha1 <jmatthews> yeah <jmatthews> jdob, btw your test looks sane with repomd.xml, it should say checksum type=sha1 <jdob> jmatthews: ok, thanks for the sanity check... it felt like that should be the case but I wasnt entirely sure <jmatthews> so you can ignore my comment about checking primary.xml <jdob> gotcha looks like this was a regression. The checksum is taken into account everywhere else except on init repo fixed! commit 3d7e8ce42909b3652b36e7db9e2b0665d2194a48 $ sudo pulp-admin repo create --id=foo12345 --checksum_type=sha1 Successfully created repository [ foo12345 ] $ cat /var/lib/pulp/repos/foo12345/repodata/repomd.xml |grep type <data type="filelists"> <checksum type="sha1">994e7bbc878f751cd7c57050aebe1a957f3081a8</checksum> <open-checksum type="sha1">fc538a9a01c87202118de7718863e43aef4b8f0f</open-checksum> <data type="primary"> <checksum type="sha1">57481448dd03102e2c741522a5b310ab019b43e3</checksum> <open-checksum type="sha1">623cb93e72dc46813e3a26a9e3d4436ea8752d06</open-checksum> <data type="primary_db"> <checksum type="sha1">a2868e11c315c07f15bc5a8966579f7b34a5a909</checksum> <open-checksum type="sha1">619187d9e9c7b5f3121553c554770f5d578fcba7</open-checksum> <data type="other_db"> <checksum type="sha1">9316995a4e0bda2e99ee54e09bdbb71d9f30aa30</checksum> <open-checksum type="sha1">62fae5f82aa9e9e82fcd184a2037db7b1e814a41</open-checksum> <data type="other"> <checksum type="sha1">ded9c108d1005d077ae6d79a14eebbc81063286b</checksum> <open-checksum type="sha1">672a396261e07818e0594d56e9c31832320a355c</open-checksum> <data type="filelists_db"> <checksum type="sha1">5e09829c2b95efb508ecbc91b2c6d30dc3a97607</checksum> <open-checksum type="sha1">d6acea08cf3d34e1d84f2261a1bf4dffcd5645e7</open-checksum> build: 0.233 [root@katello-test ~]# rpm -q pulp
pulp-0.0.233-1.el6.noarch
[root@katello-test ~]#
[root@katello-test ~]# pulp-admin repo create --id=foo12345 --checksum_type=sha1
Successfully created repository [ foo12345 ]
[root@katello-test ~]# cat /var/lib/pulp/repos/foo12345/repodata/repomd.xml |grep type
<data type="other_db">
<checksum type="sha1">9e25c5da09d913a5a2ec8fd7d6143bb83ce1d876</checksum>
<open-checksum type="sha1">0d4dc9aed0e151354f778b6b48f8ec55a6ef53cf</open-checksum>
<data type="other">
<checksum type="sha1">ded9c108d1005d077ae6d79a14eebbc81063286b</checksum>
<open-checksum type="sha1">672a396261e07818e0594d56e9c31832320a355c</open-checksum>
<data type="filelists_db">
<checksum type="sha1">57e6977be9167945835f17672f76907d69b4711e</checksum>
<open-checksum type="sha1">1650488ad550e065d1798048964f35da41e44b5b</open-checksum>
<data type="filelists">
<checksum type="sha1">994e7bbc878f751cd7c57050aebe1a957f3081a8</checksum>
<open-checksum type="sha1">fc538a9a01c87202118de7718863e43aef4b8f0f</open-checksum>
<data type="primary_db">
<checksum type="sha1">dd1adbae68a58863908b9f37593b657382994655</checksum>
<open-checksum type="sha1">3795b62ef528813bf92f1959bbe9d46458096def</open-checksum>
<data type="primary">
<checksum type="sha1">57481448dd03102e2c741522a5b310ab019b43e3</checksum>
<open-checksum type="sha1">623cb93e72dc46813e3a26a9e3d4436ea8752d06</open-checksum>
[root@katello-test ~]#
Pulp v1.0 is released Closed Current Release. Pulp v1.0 is released. |