trackback:
2012-09-24 17:36:31 ERROR nova.openstack.common.rpc.amqp [-] Exception during message handling
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 275, in _process_data
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp rval = self.proxy.dispatch(ctxt, version, method, **args)
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/distpackages/nova/openstack/common/rpc/dispatcher.py", line 145, in dispatch
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp return getattr(proxyobj, method)(ctxt, **kwargs)
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/volume/manager.py", line 209, in delete_volume
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp {'status': 'error_deleting'})
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp self.gen.next()
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/volume/manager.py", line 198, in delete_volume
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp self.driver.delete_volume(volume_ref)
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/volume/driver.py", line 202, in delete_volume
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp self._delete_volume(volume, volume['size'])
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/volume/driver.py", line 154, in _delete_volume
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp run_as_root=True)
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/volume/driver.py", line 97, in _try_execute
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp self._execute(*command, **kwargs)
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 206, in execute
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp cmd=' '.join(cmd))
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp ProcessExecutionError: Unexpected error while running command.
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp Command: sudo nova-rootwrap /etc/nova/rootwrap.conf dmsetup remove -f /dev/mapper/nova--volumes-volume--b728f1b8--1659--4344--b2e2--ad9c4e9ba338
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp Exit code: 1
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp Stdout: ''
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp Stderr: 'device-mapper: remove ioctl failed: Device or resource busy\nCommand failed\n'
2012-09-24 17:36:31 TRACE nova.openstack.common.rpc.amqp
Motoken,
Could you give me some more details about your setup here, specifically OS?
I was considering putting an lsof -t call in before the remove from dev/mapper device and doing a kill -9 if the device was *open*. I'd rather not do this however, and get a clear understanding of root cause and who/what has the device open. If you can easily reproduce, or share how to reproduce maybe we can get to the bottom of it.