[openstack-dev] [nova][cinder]Nova can't detach volume in init host routine

hao wang sxmatch1986 at gmail.com
Tue Apr 28 12:21:56 UTC 2015


Hi, everyone

There is a Nova bug:

https://bugs.launchpad.net/nova/+bug/1408865.
https://review.openstack.org/#/c/147042/

The bug Scenario is:

1. create a vm using bootable volume.
2. delete this vm
3. restart service nova-compute when vm's task state is deleting.

When nova-compute is up, vm became deleted successful, but the bootable
volume is still in-use state and can't delete it using cinder delete volume.

solve method:

Add init=True in _delete_instance when init_host, and raise exception
when EndpointNotFound exists. It will set vm's status to error and
make user can re-issue a delete.


Is this method ok? Or cinder could do something to fix this bug?


I need your suggestion to push this work forward.


Thanks.

wanghao


-- 

Best Wishes For You!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150428/b954a9af/attachment.html>


More information about the OpenStack-dev mailing list