Cinder: Error_Deleting (Cannot delete volume) [closed]

asked 2014-10-21 06:22:03 -0600

Edgars gravatar image

Hi

I have Openstack Icehouse installed with Packstack and running on CentOS 7. My problem is that I cannot delete any volume. I can create them just fine, but cannot delete. Every time I am deleting it, it goes into Error_Deleting state. I tried also force-delete and that dis not help. Also tried to reset state to vailable or error before deleting but that also did not help. I don't see any stderr error messages, but here is openstack-cinder-volume.service log:

Got semaphore "7136c17b-76aa-4807-b390-20b4525aab47-delete_volume" for method "lvo_inner2"... inner /usr/lib/python2.7/site-packages/cinder/openstack/common/lockutils.py:191

Attempting to grab file lock "7136c17b-76aa-4807-b390-20b4525aab47-delete_volume" for method "lvo_inner2"... inner /usr/lib/python2.7/site-packages/cinder/openstack/common/lockutils.py:202

Got file lock "7136c17b-76aa-4807-b390-20b4525aab47-delete_volume" at /var/lib/cinder/tmp/cinder-7136c17b-76aa-4807-b390-20b4525aab47-delete_volume for method "lvo_inner2"... inner /usr/lib/python2.7/site- packages/cinder/openstack/common/lockutils.py:232

volume 7136c17b-76aa-4807-b390-20b4525aab47: deleting

volume 7136c17b-76aa-4807-b390-20b4525aab47: removing export delete_volume /usr/lib/python2.7/site-packages/cinder/volume/manager.py:399

Removing iscsi_target: 7136c17b-76aa-4807-b390-20b4525aab47

Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf cinder-rtstool delete iqn.2010-10.org.openstack:volume-7136c17b-76aa-4807-b390-20b4525aab47 execute /usr/lib/python2.7/site-packages/cinder/openstack/common/processutils.py:147

Result was 0 execute /usr/lib/python2.7/site-packages/cinder/openstack/common/processutils.py:171

volume 7136c17b-76aa-4807-b390-20b4525aab47: deleting delete_volume /usr/lib/python2.7/site-packages/cinder/volume/manager.py:401

Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C lvs --noheadings --unit=g -o vg_name,name,size --nosuffix cinder-volumes execute /usr/lib/python2.7/site-packages/cinder/openstack/common/processutils.py:147

Result was 0 execute /usr/lib/python2.7/site-packages/cinder/openstack/common/processutils.py:171

Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C lvdisplay --noheading -C -o Attr cinder-volumes/volume-7136c17b-76aa-4807-b390-20b4525aab47 execute /usr/lib/python2.7/site-packages/cinder/openstack/common/processutils.py:147

Result was 0 execute /usr/lib/python2.7/site-packages/cinder/openstack/common/processutils.py:171

Performing secure delete on volume: /dev/mapper/cinder--volumes-volume--7136c17b--76aa--4807--b390--20b4525aab47

Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf dd count=0 if=/dev/zero of=/dev/mapper/cinder--volumes-volume--7136c17b--76aa--4807--b390--20b4525aab47 iflag=direct oflag=direct execute /usr/lib/python2.7/site-packages/cinder/openstack/common/processutils.py:147

Result was 1 execute /usr/lib/python2.7/site-packages/cinder/openstack/common/processutils.py:171

Released file lock "7136c17b-76aa-4807-b390-20b4525aab47-delete_volume" at /var/lib/cinder/tmp/cinder-7136c17b-76aa-4807-b390-20b4525aab47-delete_volume for method "lvo_inner2"... inner /usr/lib/python2.7/site-packages/cinder/openstack/common/lockutils.py:239

Exception during message handling: 'ascii' codec can't decode byte 0xe2 in position 24: ordinal not in range(128)

TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last): TRACE oslo.messaging.rpc.dispatcher
File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply

TRACE oslo.messaging.rpc.dispatcher
incoming.message))

TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch

TRACE oslo.messaging.rpc.dispatcher
return self._do_dispatch(endpoint, method, ctxt, args)

TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2 ...

(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Edgars
close date 2014-10-21 06:50:29.087023

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-10-21 06:49:34 -0600

Edgars gravatar image

Ok,It appears to be known bug and there is workaround: https://review.openstack.org/#/c/129613/

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-10-21 06:22:03 -0600

Seen: 948 times

Last updated: Oct 21 '14