Having trouble deleting cinder snapshot (with ceph)
I'm having a problem i'm hoping someone can suggest where to look.
I i do 'cinder create' and then 'cinder snapshot-create', and then cinder snapshot-delete, i get a failure as below log trace (the PermissionError).
I am using ceph for my cinder backend.
If I explictly unprotect the snapshot
rbd --pool cinder-volumes --image volume-402dfbbf-78be-4f7b-aa82-b3da24354e05 --snap snapshot-c9433949-7e89-4f43-8d98-ee89cf787242 snap unprotect
I find that it was not unprotected (so indeed OpenStack cinder did not try/did not know to unprotect).
Is anyone else getting this PermissionError when deleting a ceph - cinder snapshow?
2014-09-06 16:14:41.216 33299 ERROR oslo.messaging.rpc.dispatcher [req-645ad6d0-e6c8-4635-9ccf-6740231bb969 dcec599e9fc9467fad91ce953ec7f1bd 4c4f696dbb054c24b30b32562ba624f2 - - -] Exception during message handling: error unprotecting snapshot volume-402dfbbf-78be-4f7b-aa82-b3da24354e05@snapshot-c9433949-7e89-4f43-8d98-ee89cf787242
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 166, in lso_inner1
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher return lso_inner2(inst, context, snapshot_id, **kwargs)
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/lockutils.py", line 233, in inner
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher retval = f(*args, **kwargs)
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 165, in lso_inner2
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher return f(*_args, **_kwargs)
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 542, in delete_snapshot
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher {'status': 'error_deleting'})
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/excutils.py", line 68, in __exit__
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 530, in delete_snapshot
2014-09-06 16:14:41.216 33299 TRACE oslo.messaging.rpc.dispatcher self.driver ...
if i comment out the body of protect/unprotect snapshot in rbd.py, the problem vanishes (but of course that is not right).