VMware: ensure that instance is deleted when volume is missing
In the event that the volume is missing, the volume detachment fails,
we need to make sure that the instance deletion is done.
If this is not done then we will have the following:
1. Nova instance is deleted
2. Volume will still be in 'in-use' state
3. Backend VM will still be on the VC
In the event that a StorageError error is raised then we will
proceed to delete the instance.
All other exceptions will be raised so as to not delete the cinder
volume.
Reviewed: https:/ /review. openstack. org/220410 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d8d594c264f e5bcfd3ec97698e 6c9820e54aa8a0
Committed: https:/
Submitter: Jenkins
Branch: master
commit d8d594c264fe5bc fd3ec97698e6c98 20e54aa8a0
Author: Gary Kotton <email address hidden>
Date: Thu Sep 3 23:25:11 2015 -0700
VMware: ensure that instance is deleted when volume is missing
In the event that the volume is missing, the volume detachment fails,
we need to make sure that the instance deletion is done.
If this is not done then we will have the following:
1. Nova instance is deleted
2. Volume will still be in 'in-use' state
3. Backend VM will still be on the VC
In the event that a StorageError error is raised then we will
proceed to delete the instance.
All other exceptions will be raised so as to not delete the cinder
volume.
Change-Id: I99c59cb94d4873 22011071d24504d d9401879dba
Closes-bug: #1492121