Comment 5 for bug 1077045

Revision history for this message
Josh Durgin (jdurgin) wrote :

Hi Steve, thanks for the update. I think the change in behavior (it's marked as deleted in the registry now, but still gives a 500 error) is due to a change in glance to make it update the registry first before deleting from the backend store, so the original problem just happens later.

Do you have cephx authentication enabled? If so, what caps (as shown in 'ceph auth list') does client.glance (or whatever user you're using with glance) have?

The caps can be set to correct values (as shown in http://ceph.com/docs/master/rbd/rbd-openstack/#setup-ceph-client-authentication) with:

ceph auth get-or-create client.tests mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=images'

If you're not using cephx, or that doesn't fix the problem, the full files with extra debugging are here:

glance/api/v1/images.py:
http://paste.openstack.org/raw/29935/

glance/store/rbd.py:
http://paste.openstack.org/raw/29936/

Just the glance api log with the extra debugging is needed.