Ask Your Question

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

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

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/", line 349, in _upload image_size) File "/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/store/", line 375, in add content_length=image_size) File "/usr/lib/python2.7/dist-packages/swift/common/", line 843, in put_object content_type=content_type, headers=headers) File "/usr/lib/python2.7/dist-packages/swift/common/", line 747, in _retry rv = func(self.url, self.token, args, *kwargs) File "/usr/lib/python2.7/dist-packages/swift/common/", line 618, in put_object chunk = File "/usr/lib/python2.7/dist-packages/eventlet/", line 147, in read return self._chunked_read(self.rfile, length) File "/usr/lib/python2.7/dist-packages/eventlet/", 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

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

This is probably related to (

edit flag offensive delete link more

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

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

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

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 329 times

Last updated: Jan 09 '14