← Back to team overview

openstack team mailing list archive

Re: [folsom] Swift-backed glance fails x-glance-api-copy-from

 

I have a bug for this at https://bugs.launchpad.net/ubuntu/+source/glance/+bug/1057322

Are you using the cloud archive packages? I'm assuming this is a version compatibility for glance/eventlet etc.

Haven't had a chance to test this on quantal. 

Cheers,
Sam



On 08/10/2012, at 12:24 PM, Pete Zaitcev <zaitcev@xxxxxxxxxx> wrote:

> On Fri, 05 Oct 2012 13:27:17 +0200
> Koert van der Veer <koert@xxxxxxxxxxxx> wrote:
> 
>> ERROR glance.api.v1.images [-] Traceback (most recent call last):
>>  File "/usr/lib/python2.7/dist-ackages/glance/api/v1/images.py", line
>> 437, in _upload
>>    image_meta['size'])
>>  File "/usr/lib/python2.7/dist-packages/glance/store/swift.py", line
>> 464, in add
>>    content_length=image_size)
>>  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1079, in put_object
>>    headers=headers)
>>  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 981, in _retry
>>    rv = func(self.url, self.token, *args, **kwargs)
>>  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 828, in put_object
>>    conn.request('PUT', path, contents, headers)
>>  File "/usr/lib/python2.7/httplib.py", line 958, in request
>>    self._send_request(method, url, body, headers)
>>  File "/usr/lib/python2.7/httplib.py", line 992, in _send_request
>>    self.endheaders(body)
>>  File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
>>    self._send_output(message_body)
>>  File "/usr/lib/python2.7/httplib.py", line 818, in _send_output
>>    self.send(message_body)
>>  File "/usr/lib/python2.7/httplib.py", line 790, in send
>>    self.sock.sendall(data)
>>  File "/usr/lib/python2.7/dist-packages/eventlet/greenio.py", line 283,
>> in sendall
>>    tail = self.send(data, flags)
>>  File "/usr/lib/python2.7/dist-packages/eventlet/greenio.py", line 265,
>> in send
>>    len_data = len(data)
>> TypeError: object of type 'CooperativeReader' has no len()
> 
> Log that traceback using Launchpad bug tracking. Even if Swift
> provoked it, Glance should not be tracebacking.
> 
> -- Pete
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp



References