Code review comment for lp:~jaypipes/glance/bug713154

Revision history for this message
Brian Waldon (bcwaldon) wrote :

> Adding an image with a non-existant object works, but subsequent requests for
> that image fail with this traceback:
>
>
> 2011-07-25 19:36:11 DEBUG [eventlet.wsgi.server] Traceback (most recent
> call last):
> File "/usr/lib/python2.6/dist-packages/eventlet/wsgi.py", line 347, in
> handle_one_response
> for data in result:
> File "/usr/lib/pymodules/python2.6/glance/api/v1/images.py", line 194, in
> image_iterator
> options=self.options)
> File "/usr/lib/pymodules/python2.6/glance/store/__init__.py", line 86, in
> get_from_backend
> return backend_class.get(loc, **kwargs)
> File "/usr/lib/pymodules/python2.6/glance/store/s3.py", line 192, in get
> key = get_key(bucket_obj, loc.key)
> File "/usr/lib/pymodules/python2.6/glance/store/s3.py", line 378, in get_key
> if not key.exists():
> AttributeError: 'NoneType' object has no attribute 'exists'

To be clear, I was using glance add and a location option to specifiy a valid s3 connection string to an invalid object identifier.

« Back to merge proposal