DisconnectionError: The client disconnected while sending the POST/PUT body

Asked by smallma

Hello all,
 glance version is '2012.1+stable~20120608-5462295-0ubuntu2.2'. When I execute image-create to upload huge size image(4~10G) to glance which backend is swift, console shows 'Error communicating with Connection reset by peer'. and the following info is from glance api.log. Please help to clarify. Thanks.

ERROR [glance.api.v1.images] Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/glance/api/v1/images.py", line 393, in _upload
    image_size)
  File "/usr/lib/python2.7/dist-packages/glance/store/swift.py", line 387, in add
    content_length=image_size)
  File "/usr/lib/python2.7/dist-packages/swift/common/client.py", line 937, in put_object
    content_type=content_type, headers=headers)
  File "/usr/lib/python2.7/dist-packages/swift/common/client.py", line 841, in _retry
    rv = func(self.url, self.token, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/swift/common/client.py", line 705, in put_object
    chunk = contents.read(size)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1284, in read
    self._check_disconnect()
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1311, in _check_disconnect
    + "(%d more bytes were expected)" % self.remaining
DisconnectionError: The client disconnected while sending the POST/PUT body (3682598912 more bytes were expected)

Question information

Language:
English Edit question
Status:
Answered
For:
Glance Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jason (zzs) said :
#1

It looks like it is a bug of upstream package, please report it as a bug.

Revision history for this message
Jason (zzs) said :
#2

By my understanding, it looks like a bug of webob (or more upper), so please report this to glance project.

Can you help with this problem?

Provide an answer of your own, or ask smallma for more information if necessary.

To post a message you must log in.