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

Asked by Hugo Kou

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

Question information

Language:
English Edit question
Status:
Solved
For:
Glance Edit question
Assignee:
No assignee Edit question
Solved by:
Hugo Kou
Solved:
Last query:
Last reply:
Revision history for this message
Eoghan Glynn (eglynn) said :
#1

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).

Revision history for this message
Hugo Kou (tonytkdk) said :
#2

Works fine with Glance E4 .

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

Thanks for any suggestion .

Revision history for this message
Joel Friedly (joelfriedly) said :
#3