1
# vim: tabstop=4 shiftwidth=4 softtabstop=4
3
# Copyright 2010 OpenStack LLC.
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
10
# http://www.apache.org/licenses/LICENSE-2.0
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
18
"""Possible task states for instances.
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
28
SCHEDULING = 'scheduling'
29
BLOCK_DEVICE_MAPPING = 'block_device_mapping'
30
NETWORKING = 'networking'
33
IMAGE_SNAPSHOT = 'image_snapshot'
34
IMAGE_BACKUP = 'image_backup'
36
UPDATING_PASSWORD = 'updating_password'
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'
46
REBUILDING = 'rebuilding'
48
REBOOTING = 'rebooting'
50
UNPAUSING = 'unpausing'
51
SUSPENDING = 'suspending'
55
UNRESCUING = 'unrescuing'