Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow reboot or rebuild from vm_state=Error
In general most operations are only valid on an instance that has booted successfully at least once so this change extends the instance state check logic to include evidence that the instance has been successfully started at least once. This enables more operations to be allowed in against instances in an Error state. For example reboot and rebuild are useful recover options for an instance which has reached an error state, but not if the instance failed during its initial build. With this change the only actions allowed on an instance which has never booted successfully are delete and force_delete. Soft delete is not allowed, as the restore is in effect a start unless there is specific virt driver support. In addition the following actions are now allowed against instances in an Error state providing the instance has booted at least once: Reboot, Rebuild, and Rescue. Fixes bug: 1183946 Change-Id: I63fd8d2a182df5cf12754892e8076933b3b1e79f
- Loading branch information
Phil Day
committed
Jun 16, 2013
1 parent
d147af2
commit 99c51e3
Showing
6 changed files
with
143 additions
and
14 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
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
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
Oops, something went wrong.