Allow deletion of instance with failed vol cleanup
If something goes wrong when trying to delete volumes that have
been marked delete_on_terminate, we leave an instance record in
the database that can't be removed even though the instance is
gone.
Intelligent recovery at this point is very difficult, so for now
just log a warning and let the instance be deleted. It is unfortunate
that there isn't a good way to let the user know that his volume
was not deleted, but this seems preferable to leaving an undeletable
instance.
A test is included to verify the behavior, as well as a note so that
a better fix can be included later.
Reviewed: https:/ /review. openstack. org/13542 github. com/openstack/ nova/commit/ 4a97a743c41e53d 7278590e75913ff 761ea319db
Committed: http://
Submitter: Jenkins
Branch: master
commit 4a97a743c41e53d 7278590e75913ff 761ea319db
Author: Vishvananda Ishaya <email address hidden>
Date: Sun Sep 23 17:13:44 2012 +0000
Allow deletion of instance with failed vol cleanup
If something goes wrong when trying to delete volumes that have on_terminate, we leave an instance record in
been marked delete_
the database that can't be removed even though the instance is
gone.
Intelligent recovery at this point is very difficult, so for now
just log a warning and let the instance be deleted. It is unfortunate
that there isn't a good way to let the user know that his volume
was not deleted, but this seems preferable to leaving an undeletable
instance.
A test is included to verify the behavior, as well as a note so that
a better fix can be included later.
Fixes bug 1055095
Change-Id: I26e801fc3e9c56 cf84d2b977295fc f580428879a