Using the latest version of Glance Folsom I'm seeing the following response when trying to create an image snapshot:
2012-08-20 20:20:53 ERROR glance.api.v1.images [3e37a153-fea6-44fb-80da-a3de99cb427c 49c6c4b4aa7f4204805f7c24f484bfb0 71c44062a2914a058c90448bc3d07de5] Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/glance/api/v1/images.py", line 387, in _upload
image_meta['size'])
File "/usr/lib/python2.7/site-packages/glance/store/swift.py", line 492, in add
content_length=content_length)
File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1060, in put_object
headers=headers)
File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 962, in _retry
rv = func(self.url, self.token, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 793, in put_object
chunk = contents.read(chunk_size)
File "/usr/lib/python2.7/site-packages/glance/store/swift.py", line 651, in read
result = self.fd.read(i)
AttributeError: 'CooperativeReader' object has no attribute 'read'
Okay. The most recent commit 3c69df5aa707b42 16ef7001dbe28fa 0a5912493c seems to be the culprit. (Make max image size upload configurable)