Bug 772707 - pulp content upload produces traceback
Summary: pulp content upload produces traceback
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: dgao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-09 17:50 UTC by dgao
Modified: 2013-09-09 16:34 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:13:37 UTC


Attachments (Terms of Use)

Description dgao 2012-01-09 17:50:42 UTC
[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'

Comment 1 dgao 2012-01-09 17:54:54 UTC
Similar to bz772711

Comment 2 Pradeep Kilambi 2012-01-09 19:25:55 UTC
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.

Comment 3 Pradeep Kilambi 2012-01-09 20:31:05 UTC
commit c5cebd3649025434106df3f83145057e71b7ea95

Comment 4 Jeff Ortel 2012-01-10 16:33:32 UTC
build: 0.257

Comment 5 dgao 2012-01-13 20:37:29 UTC
[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

Comment 6 Preethi Thomas 2012-02-24 20:13:37 UTC
Pulp v1.0 is released
Closed Current Release.


Note You need to log in before you can comment on or make changes to this bug.