Bug 680079 - pulp-admin content upload fails on missing bytearray on py2.4
Summary: pulp-admin content upload fails on missing bytearray on py2.4
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: Sprint 21
Assignee: Jeff Ortel
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: 563609 verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-02-24 10:14 UTC by Daniel Mach
Modified: 2011-08-16 12:21 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:07:46 UTC
Embargoed:


Attachments (Terms of Use)

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.


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