Ask Your Question
0

[Resolved] cinder volume delete fails with ProcessExecution error

asked 2013-06-23 23:57:13 -0500

updated 2013-09-23 03:12:47 -0500

volume delete for iscsi target fails with following error

2013-06-24 10:12:29.821 13387 ERROR cinder.openstack.common.rpc.amqp [req-2aa773a4-e95f-4a9f-b043-d557ca90bc67 e8b48f2f664f4f6fae93a0e97fc96cb4 2da9f2434cdd4ecda85a93dce132e9c1] Exception during message handling 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp Traceback (most recent call last): 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp File "/home/openstack/cinder/cinder/openstack/common/rpc/amqp.py", line 433, in _process_data 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp args) 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp File "/home/openstack/cinder/cinder/openstack/common/rpc/dispatcher.py", line 148, in dispatch 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp return getattr(proxyobj, method)(ctxt, kwargs) 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp File "/home/openstack/cinder/cinder/volume/manager.py", line 438, in delete_volume 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp {'status': 'error_deleting'}) 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__ 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp self.gen.next() 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp File "/home/openstack/cinder/cinder/volume/manager.py", line 427, in delete_volume 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp self.driver.delete_volume(volume_ref) 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp File "/home/openstack/cinder/cinder/volume/drivers/", line 432, in delete_volume 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp self._delete_volume(volume, volume['size']) 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp File "/home/openstack/cinder/cinder/volume/drivers/", line 133, in _delete_volume 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp self._try_execute(cmd, run_as_root=True) 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp File "/home/openstack/cinder/cinder/volume/driver.py", line 91, in _try_execute 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp self._execute(command, *kwargs) 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp File "/home/openstack/cinder/cinder/utils.py", line 205, in execute 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp cmd=' '.join(cmd)) 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp ProcessExecutionError: Unexpected error while running command. 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp ProcessExecutionError: Unexpected error while running command. 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf iscli deletevdev -s * -u root -p * -v iscli getvdevlist -s -u root -p * | grep volume-123ff5b0-ff3d-43ea-b3b0-0d84 | awk '{ print $2 }' 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common.rpc.amqp Exit code: 255 2013-06-24 10:12:29.821 13387 TRACE cinder.openstack.common ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-06-25 08:07:58 -0500

Found the cause of error. The Process execution error occurs since the command library I am using does not allow piped commands in front of it, which I was doing to do the parsing in the shell itself. Now I am getting the complete output & parsing it in my python code. Resolved.

edit flag offensive delete link more

Comments

Hello Swapnil, you have developed a Cinder volume driver for FalconStor? Is that code somewhere available for testing?

andreask gravatar imageandreask ( 2013-08-05 11:18:18 -0500 )edit

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

Stats

Asked: 2013-06-23 23:57:13 -0500

Seen: 519 times

Last updated: Jun 25 '13