Ask Your Question
0

Failed to upload larger image , error invalid literal for int() with base 16: ''

asked 2012-03-15 12:10:02 -0500

tonytkdk gravatar image

Hi folks , We're using Glance Essex3 for managing images. Backend by Swift 1.4.6.

Swift-proxy , Glance-API and Glance-Registry were installed in same host.

Glance Essex3 source from GitHub tag. Swift 1.4.6 from PPA

We can upload 700MB images properly . But failed to upload 1.5G image . There's the Error log

2012-03-14 01:11:28 11911 ERROR [glance.api.v1.images] Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/api/v1/images.py", line 349, in _upload image_size) File "/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/store/swift.py", line 375, in add content_length=image_size) File "/usr/lib/python2.7/dist-packages/swift/common/client.py", line 843, in put_object content_type=content_type, headers=headers) File "/usr/lib/python2.7/dist-packages/swift/common/client.py", line 747, in _retry rv = func(self.url, self.token, args, *kwargs) File "/usr/lib/python2.7/dist-packages/swift/common/client.py", line 618, in put_object chunk = contents.read(size) File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 147, in read return self._chunked_read(self.rfile, length) File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 137, in _chunked_read self.chunk_length = int(rfile.readline().split(";", 1)[0]) ValueError: invalid literal for int() with base 16: ''

did I lose anything?

thx Hugo Kuo

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2014-01-09 02:57:31 -0500

This is probably related to https://bugs.launchpad.net/swift/+bug/667956 (https://bugs.launchpad.net/swift/+bug...)

edit flag offensive delete link more
0

answered 2012-03-15 12:20:21 -0500

eglynn gravatar image

As per conversation on #openstack-dev, Hugo is now attempting to reproduce on Essex-4 (which included at least one fix for large image upload).

edit flag offensive delete link more
0

answered 2012-03-15 18:25:41 -0500

tonytkdk gravatar image

Works fine with Glance E4 .

If there's any solution for E3 please let me knnow about that.

Thanks for any suggestion .

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-03-15 12:10:02 -0500

Seen: 211 times

Last updated: Jan 09 '14