Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix instance can not be deleted after soft reboot
The reason is that: 1. soft reboot will wait for instance become to 'shutdown', and then start it 2. delete operation also wait for this, and then clean up the instance 3. if soft reboot found the instance become to 'shutdown' firstly, it will start it immediately 4. then the delete operation will go to the _wait_for_destroy loop, and the loop may be endless 5. when we delete the instance again, because the lock was hold by the delete operation before, this one will wait the lock and don't implement actually. So the domain id is checked during _wait_for_destroy loop, if it changed and the instance is still running, we need to destroy it again. If the domain is booted after _wait_for_destroy, it may result in unfilter_instance failed because the nwfilter is in use, so doing the same thing as above. Fixes Bug #1111213 Change-Id: I98dc902dd86fa828f5821465c611953e08f9f637
- Loading branch information
Showing
2 changed files
with
66 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters