Bug 680079

Summary: pulp-admin content upload fails on missing bytearray on py2.4
Product: [Retired] Pulp Reporter: Daniel Mach <dmach>
Component: z_otherAssignee: Jeff Ortel <jortel>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: pkilambi
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 21   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 12:07:46 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:
Bug Depends On:    
Bug Blocks: 563609, 647488    

Description Daniel Mach 2011-02-24 10:14:08 UTC
File "/var/www/django/pulp/src/pulp/client/server.py", line 229, in _request
    if not isinstance(body, (type(None), bytearray,)):
NameError: global name 'bytearray' is not defined

bytearray was introduced in py2.6 and is not available in py2.4

Comment 1 Jeff Ortel 2011-02-24 14:41:04 UTC
Fixed: c133c9e8dde405ff4a904f2d17ec3d6f44cf409e

Comment 2 Jeff Ortel 2011-02-25 20:34:12 UTC
build: 0.143

Comment 3 Preethi Thomas 2011-03-02 18:10:36 UTC
[root@dell-per805-01 ~]# rpm -qa |grep python
python-2.4.3-27.el5

[root@dell-per805-01 upload]# rpm -q pulp
pulp-0.0.143-1

[root@dell-per805-01 upload]# pulp-admin -u admin -p admin content upload /root/upload/grinder-0.0.81-1.noarch.rpm -r upload -v --nosig
* Starting Package Upload

* Performing Package Uploads to Pulp server
Successfully uploaded [grinder-0.0.81-1.noarch.rpm] to server

* Performing Repo Associations 
Package association Complete for Repo [upload]: 
 Packages: 
grinder-0.0.81-1.noarch.rpm 
 
 Files: 
None

* Content Upload complete.
[root@dell-per805-01 upload]# vi test.txt
[root@dell-per805-01 upload]# 
[root@dell-per805-01 upload]# 
[root@dell-per805-01 upload]# pulp-admin -u admin -p admin content upload /root/upload/test.txt -r upload -v --nosig
* Starting Package Upload

* Performing Package Uploads to Pulp server
Successfully uploaded [test.txt] to server

* Performing Repo Associations 
Package association Complete for Repo [upload]: 
 Packages: 
None 
 
 Files: 
test.txt

* Content Upload complete.
[root@dell-per805-01 upload]#

Comment 4 Preethi Thomas 2011-08-16 12:07:46 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 5 Preethi Thomas 2011-08-16 12:21:12 UTC
Closing with Community Release 15

pulp-0.0.223-4.