Ask Your Question
0

Error to rebuild an instance with volume attached (in Juno)

asked 2015-12-24 21:29:23 -0600

sunzen.wang gravatar image

In the current environment, it is ok to rebuild an instance without any attached cinder volume. While, when there is a volume attached, either boot volume or data volume, error always occurs when an instance is to be rebuilt. Related log shows it failed to destroy that instance.

2015-12-24 18:25:42.633 26486 ERROR oslo.messaging.rpc.dispatcher [req-67fec45f-c7ba-4c4f-9f4c-0a9875d94069 ] Exception during message handling: Failed to terminate process 36082 with SIGKILL: Device or resource busy
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher     incoming.message))
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher     result = getattr(endpoint, method)(ctxt, **new_args)
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 414, in decorated_function
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo/messaging/rpc/server.py", line 139, in inner
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher     return func(*args, **kwargs)
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 88, in wrapped
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher     payload)
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 71, in wrapped
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher     return f(self, context, *args, **kw)
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 298, in decorated_function
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher     pass
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2015-12-24 18:25:42.633 26486 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_ ...
(more)
edit retag flag offensive close merge delete

Comments

May I ask which backend of cinder are you using? lvm,emc,3par or else?

xiangfei-ma gravatar imagexiangfei-ma ( 2015-12-25 03:34:59 -0600 )edit

Thanks for your attention. It's LVM.

sunzen.wang gravatar imagesunzen.wang ( 2015-12-28 04:25:16 -0600 )edit

Have you tried to destroy the instance with cinder volume attached by virsh commandline itself?
It seems not an OpenStack error but an error came from libvirt.
I'm not sure... try "virsh destroy instance_name" on your compute node and then let's see if it can give some further information.

xiangfei-ma gravatar imagexiangfei-ma ( 2015-12-28 23:34:54 -0600 )edit

Thanks for your interest and information. I will post information about fix in Openstack.

sunzen.wang gravatar imagesunzen.wang ( 2016-01-15 03:42:14 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-01-15 03:45:49 -0600

sunzen.wang gravatar image

updated 2016-01-15 03:47:19 -0600

Found the same issue in bugs management

https://bugs.launchpad.net/nova/+bug/1440762

Applying the fix into juno, there is no problem now.

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: 2015-12-24 21:29:23 -0600

Seen: 651 times

Last updated: Jan 15 '16