diff options
author | Phil Day <philip.day@hp.com> | 2013-06-07 15:18:03 +0100 |
---|---|---|
committer | Phil Day <philip.day@hp.com> | 2013-06-16 21:39:03 +0100 |
commit | 99c51e34230394cadf0b82e364ea10c38e193979 (patch) | |
tree | 5792749fdf5da2fb0ed7413331197cb05f6c7a22 /nova/utils.py | |
parent | d147af21db2db77f578e527883cf2c68abc56496 (diff) | |
download | nova-99c51e34230394cadf0b82e364ea10c38e193979.tar.gz nova-99c51e34230394cadf0b82e364ea10c38e193979.tar.xz nova-99c51e34230394cadf0b82e364ea10c38e193979.zip |
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
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions