> 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.
> Adding an image with a non-existant object works, but subsequent requests for wsgi.server] Traceback (most recent python2. 6/dist- packages/ eventlet/ wsgi.py" , line 347, in pymodules/ python2. 6/glance/ api/v1/ images. py", line 194, in self.options) pymodules/ python2. 6/glance/ store/_ _init__ .py", line 86, in class.get( loc, **kwargs) pymodules/ python2. 6/glance/ store/s3. py", line 192, in get pymodules/ python2. 6/glance/ store/s3. py", line 378, in get_key
> that image fail with this traceback:
>
>
> 2011-07-25 19:36:11 DEBUG [eventlet.
> call last):
> File "/usr/lib/
> handle_one_response
> for data in result:
> File "/usr/lib/
> image_iterator
> options=
> File "/usr/lib/
> get_from_backend
> return backend_
> File "/usr/lib/
> key = get_key(bucket_obj, loc.key)
> File "/usr/lib/
> 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.