~rackspace-titan/nova/instance_states

« back to all changes in this revision

Viewing changes to nova/compute/task_states.py

  • Committer: Brian Lamar
  • Date: 2011-08-25 21:27:10 UTC
  • Revision ID: brian.lamar@rackspace.com-20110825212710-v2wbvegiuze5p1g6
review feedback

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#    License for the specific language governing permissions and limitations
16
16
#    under the License.
17
17
 
18
 
"""Possible task states for instances"""
 
18
"""Possible task states for instances.
 
19
 
 
20
Compute instance task states represent what is happening to the instance at the
 
21
current moment. These tasks can be generic, such as 'spawning', or specific,
 
22
such as 'block_device_mapping'. These task states allow for a better view into
 
23
what an instance is doing and should be displayed to users/administrators as
 
24
necessary.
 
25
 
 
26
"""
19
27
 
20
28
SCHEDULING = 'scheduling'
21
29
BLOCK_DEVICE_MAPPING = 'block_device_mapping'
22
30
NETWORKING = 'networking'
23
 
SPAWN = 'spawn'
24
 
 
25
 
SNAPSHOTTING = 'snapshotting'
26
 
BACKING_UP = 'backing_up'
27
 
PASSWORD = 'password'
 
31
SPAWNING = 'spawning'
 
32
 
 
33
IMAGE_SNAPSHOT = 'image_snapshot'
 
34
IMAGE_BACKUP = 'image_backup'
 
35
 
 
36
UPDATING_PASSWORD = 'updating_password'
28
37
 
29
38
RESIZE_PREP = 'resize_prep'
30
39
RESIZE_MIGRATING = 'resize_migrating'
32
41
RESIZE_FINISH = 'resize_finish'
33
42
RESIZE_REVERTING = 'resize_reverting'
34
43
RESIZE_CONFIRMING = 'resize_confirming'
 
44
RESIZE_VERIFY = 'resize_verify'
35
45
 
36
46
REBUILDING = 'rebuilding'
37
47
 
38
48
REBOOTING = 'rebooting'
39
 
HARD_REBOOTING = 'hard_rebooting'
40
49
PAUSING = 'pausing'
41
50
UNPAUSING = 'unpausing'
42
51
SUSPENDING = 'suspending'