~ubuntu-cloud-archive/ubuntu/precise/nova/trunk

« back to all changes in this revision

Viewing changes to nova/compute/vm_states.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Adam Gandelman, Chuck Short
  • Date: 2012-07-06 10:18:33 UTC
  • mfrom: (1.1.58)
  • Revision ID: package-import@ubuntu.com-20120706101833-wp2nv392mpe9re8p
Tags: 2012.2~f2-0ubuntu1
[ Adam Gandelman ]
* Use new rootwrap configuration structure:
  - debian/nova-{compute, network, volume}.{pyinstall, pyremove}: Dropped.
  - debian/nova-common.dirs: Add /etc/nova/rootwrap.d/.
  - debian/nova-common.install: Install /etc/nova/rootwrap.conf.
  - debian/debian/nova.conf: Reference rootwrap.conf in calls to
    nova-rootwrap.
  - debian/nova-{compute, network, volume}.install: Install corresponding
    filter in /etc/nova/rootwrap.d/
* debian/rules: Install logging_sample.conf to /etc/nova/logging.conf
  as part of nova-common.
* debian/pydist-overrides: Add setuptools-git.
* debian/control: Add python-setuptools-git as a Build-Depends.
* debian/rules: Do not remove nova.egg-info during auto_clean.  Now that
  upstream has moved to setuptools-git, doing so results in missing files
  from built package.

[ Chuck Short ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
"""Possible vm states for instances.
19
19
 
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.
23
 
 
 
21
a user or administrator.
 
22
 
 
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
 
27
health and progress.
 
28
 
 
29
See http://wiki.openstack.org/VMState
24
30
"""
25
31
 
26
 
ACTIVE = 'active'
27
 
BUILDING = 'building'
28
 
REBUILDING = 'rebuilding'
29
 
 
 
32
ACTIVE = 'active'  # VM is running
 
33
BUILDING = 'building'  # VM only exists in DB
30
34
PAUSED = 'paused'
31
 
SUSPENDED = 'suspended'
32
 
SHUTOFF = 'shutoff'
33
 
RESCUED = 'rescued'
34
 
DELETED = 'deleted'
35
 
STOPPED = 'stopped'
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
 
38
# attached.
 
39
RESIZED = 'resized'  # a VM with the new size is active. The user is expected
 
40
# to manually confirm or revert.
37
41
 
38
 
MIGRATING = 'migrating'
39
 
RESIZING = 'resizing'
 
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.
40
45
 
41
46
ERROR = 'error'