~danwent/nova/qmanager-new

« back to all changes in this revision

Viewing changes to nova/compute/task_states.py

  • Committer: Dan Wendlandt
  • Date: 2011-09-07 21:27:06 UTC
  • mfrom: (1476.2.54 nova)
  • Revision ID: dan@nicira.com-20110907212706-z0fm75250w0gqg5i
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# vim: tabstop=4 shiftwidth=4 softtabstop=4
 
2
 
 
3
# Copyright 2010 OpenStack LLC.
 
4
# All Rights Reserved.
 
5
#
 
6
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
 
7
#    not use this file except in compliance with the License. You may obtain
 
8
#    a copy of the License at
 
9
#
 
10
#         http://www.apache.org/licenses/LICENSE-2.0
 
11
#
 
12
#    Unless required by applicable law or agreed to in writing, software
 
13
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 
14
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 
15
#    License for the specific language governing permissions and limitations
 
16
#    under the License.
 
17
 
 
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
"""
 
27
 
 
28
SCHEDULING = 'scheduling'
 
29
BLOCK_DEVICE_MAPPING = 'block_device_mapping'
 
30
NETWORKING = 'networking'
 
31
SPAWNING = 'spawning'
 
32
 
 
33
IMAGE_SNAPSHOT = 'image_snapshot'
 
34
IMAGE_BACKUP = 'image_backup'
 
35
 
 
36
UPDATING_PASSWORD = 'updating_password'
 
37
 
 
38
RESIZE_PREP = 'resize_prep'
 
39
RESIZE_MIGRATING = 'resize_migrating'
 
40
RESIZE_MIGRATED = 'resize_migrated'
 
41
RESIZE_FINISH = 'resize_finish'
 
42
RESIZE_REVERTING = 'resize_reverting'
 
43
RESIZE_CONFIRMING = 'resize_confirming'
 
44
RESIZE_VERIFY = 'resize_verify'
 
45
 
 
46
REBUILDING = 'rebuilding'
 
47
 
 
48
REBOOTING = 'rebooting'
 
49
PAUSING = 'pausing'
 
50
UNPAUSING = 'unpausing'
 
51
SUSPENDING = 'suspending'
 
52
RESUMING = 'resuming'
 
53
 
 
54
RESCUING = 'rescuing'
 
55
UNRESCUING = 'unrescuing'
 
56
 
 
57
DELETING = 'deleting'
 
58
STOPPING = 'stopping'
 
59
STARTING = 'starting'