18
18
"""Possible vm states for instances.
20
20
Compute instance vm states represent the state of an instance as it pertains to
21
a user or administrator. When combined with task states (task_states.py), a
22
better picture can be formed regarding the instance's health.
21
a user or administrator.
23
vm_state describes a VM's current stable (not transition) state. That is, if
24
there is no ongoing compute API calls (running tasks), vm_state should reflect
25
what the customer expect the VM to be. When combined with task states
26
(task_states.py), a better picture can be formed regarding the instance's
29
See http://wiki.openstack.org/VMState
28
REBUILDING = 'rebuilding'
32
ACTIVE = 'active' # VM is running
33
BUILDING = 'building' # VM only exists in DB
31
SUSPENDED = 'suspended'
36
SOFT_DELETE = 'soft-delete'
35
SUSPENDED = 'suspended' # VM is suspended to disk.
36
STOPPED = 'stopped' # VM is powered off, the disk image is still there.
37
RESCUED = 'rescued' # A rescue image is running with the original VM image
39
RESIZED = 'resized' # a VM with the new size is active. The user is expected
40
# to manually confirm or revert.
38
MIGRATING = 'migrating'
42
SOFT_DELETED = 'soft-delete' # VM is marked as deleted but the disk images are
43
# still available to restore.
44
DELETED = 'deleted' # VM is permanently deleted.