Hi,

The swift store is designed to send up image parts in smallish chunks to
make failures on large images less likely. What setting do you have for
swift_store_large_object_size in your glance config? You may want to
decrease it to something that works better for your deployment, like
1024 (== 1 GB)

** Changed in: glance
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1153413

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

Status in OpenStack Image Registry and Delivery Service (Glance):
  Invalid

Bug description:
  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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1153413/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to