~raxnetworking/nova/bare_bones_melange

« back to all changes in this revision

Viewing changes to nova/compute/vm_states.py

  • Committer: Rajaram Mallya
  • Date: 2011-09-12 10:03:21 UTC
  • mfrom: (1265.2.287 nova)
  • Revision ID: rajarammallya@gmail.com-20110912100321-8zw8575a206dc026
Merged from nova 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 vm states for instances.
 
19
 
 
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.
 
23
 
 
24
"""
 
25
 
 
26
ACTIVE = 'active'
 
27
BUILDING = 'building'
 
28
REBUILDING = 'rebuilding'
 
29
 
 
30
PAUSED = 'paused'
 
31
SUSPENDED = 'suspended'
 
32
RESCUED = 'rescued'
 
33
DELETED = 'deleted'
 
34
STOPPED = 'stopped'
 
35
 
 
36
MIGRATING = 'migrating'
 
37
RESIZING = 'resizing'
 
38
 
 
39
ERROR = 'error'