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

Asked by Hugo Kou on 2012-03-15

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
  File "/usr/local/lib/python2.7/dist-packages/glance-2012.1-py2.7.egg/glance/store/", line 375, in add
  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?

Hugo Kuo

Question information

English Edit question
Glance Edit question
No assignee Edit question
Solved by:
Hugo Kou
Last query:
Last reply:
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).

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 .

Joel Friedly (joelfriedly) said : #3