| Summary: | pulp content upload produces traceback | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | dgao |
| Component: | user-experience | Assignee: | Pradeep Kilambi <pkilambi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | dgao |
| 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:13:37 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
So the issue seems to happen if the packages were synced from a repo with checksum 'sha' and the same package is uploaded via the client(which assumes the checksum to be sha256). Looking into it, this will purely be a client side change i think. commit c5cebd3649025434106df3f83145057e71b7ea95 build: 0.257 [root@pulp-qe ~]# rpm -q pulp pulp-0.0.257-1.fc15.noarch [root@pulp-qe ~]# pulp-admin -u admin -p admin repo create --id=foo --feed=http://10.16.76.78/pub/updates Successfully created repository [ foo ] [root@pulp-qe ~]# pulp-admin -u admin -p admin repo sync --id=foo -F Sync for repository foo started Sync: Finished 7/7 new items downloaded 0/7 existing items processed Item Details: RPMs: 7/7 [root@pulp-qe ~]# pulp-admin -u admin -p admin repo create --id=bar Successfully created repository [ bar ] [root@pulp-qe ~]# pulp-admin -u admin -p admin content upload -v --repoid=bar /tmp/feedless-1.0-1.noarch.rpm * Starting Content Upload * Performing Content Uploads to Pulp server Content [feedless-1.0-1.noarch.rpm] already exists on the server with checksum [1966e5584da0fba66f4f83b01c871c58501e620e80d0a98e4ef3059e0aa20c4a] * Performing Repo Associations Packages skipped because of filters associated with the repository bar : 0 * Metadata generation has been scheduled for repository [bar] with a task id [c2dbaa75-3e24-11e1-8442-5254005854de]; use `pulp-admin repo generate_metadata --status` to check the status. Content association Complete for Repo [bar]: Packages: feedless-1.0-1.noarch.rpm Files: None * Content Upload complete. [root@pulp-qe ~]# pulp-admin -u admin -p admin repo generate_metadata --status --id=bar Task Id c2dbaa75-3e24-11e1-8442-5254005854de Status finished Message None Start Time 2012-01-13 15:25:40-05:00 Finish Time 2012-01-13 15:25:41-05:00 Pulp v1.0 is released Closed Current Release. |
[root@pulp-qe ~]# rpm -q "pulp" pulp-0.0.256-1.fc15.noarch [root@pulp-qe ~]# pulp-admin -u admin -p admin repo create --id=foo pulSuccessfully created repository [ foo ] [root@pulp-qe ~]# pulp-admin -u admin -p admin content upload -v --repoid=foo /tmp/feedless-1.0-1.noarch.rpm * Starting Content Upload * Performing Content Uploads to Pulp server Traceback (most recent call last): File "/usr/bin/pulp-admin", line 23, in <module> admin.main() File "/usr/lib/python2.7/site-packages/pulp/client/lib/cli.py", line 152, in main command.main(self.args[1:]) File "/usr/lib/python2.7/site-packages/pulp/client/pluginlib/command.py", line 129, in main action.main(args[1:]) File "/usr/lib/python2.7/site-packages/pulp/client/pluginlib/command.py", line 213, in main self.run() File "/usr/lib/python2.7/site-packages/pulp/client/admin/plugins/content.py", line 116, in run existing_pkg_checksums[pobj['checksum']['sha256']] = pobj KeyError: 'sha256'