Ask Your Question
1

Having trouble deleting cinder snapshot (with ceph)

asked 2014-09-06 11:23:54 -0500

don gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

Comments

if i comment out the body of protect/unprotect snapshot in rbd.py, the problem vanishes (but of course that is not right).

don gravatar imagedon ( 2014-09-06 20:16:45 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-10-04 21:52:40 -0500

jtaguinerd gravatar image

updated 2014-10-04 21:55:35 -0500

I remember encountering a similar problem with deleting an rbd snapshot in cinder. The patch proposed here "https://bugs.launchpad.net/cinder/+bug/1323203" might help you.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-09-06 11:23:54 -0500

Seen: 1,781 times

Last updated: Oct 04 '14