~ubuntu-branches/ubuntu/saucy/nova/saucy-proposed

« back to all changes in this revision

Viewing changes to nova/virt/xenapi/pool_states.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Chuck Short, Adam Gandelman
  • Date: 2013-02-22 09:27:29 UTC
  • mfrom: (1.1.68)
  • Revision ID: package-import@ubuntu.com-20130222092729-nn3gt8rf97uvts77
Tags: 2013.1.g3-0ubuntu1
[ Chuck Short ]
* New usptream release. 
* debian/patches/debian/patches/fix-ubuntu-tests.patch: Refreshed.
* debian/nova-baremetal.logrotate: Fix logfile path.
* debian/control, debian/nova-spiceproxy.{install, logrotate, upstart}:
  Add spice html5 proxy support.
* debian/nova-novncproxy.upstart: Start on runlevel [2345]
* debian/rules: Call testr directly since run_tests.sh -N gives weird return
  value when tests pass.
* debian/pyddist-overrides: Add websockify.
* debian/nova-common.postinst: Removed config file conversion, since
  the option is no longer available. (LP: #1110567)
* debian/control: Add python-pyasn1 as a dependency.
* debian/control: Add python-oslo-config as a dependency.
* debian/control: Suggest sysfsutils, sg3-utils, multipath-tools for fibre
  channel support.

[ Adam Gandelman ]
* debian/control: Fix typo (websocikfy -> websockify).

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
A pool may be 'created', in which case the admin has triggered its
21
21
creation, but the underlying hypervisor pool has not actually being set up
22
 
yet. An pool may be 'changing', meaning that the underlying hypervisor
23
 
pool is being setup. An pool may be 'active', in which case the underlying
24
 
hypervisor pool is up and running. An pool may be 'dismissed' when it has
25
 
no hosts and it has been deleted. An pool may be in 'error' in all other
 
22
yet. A pool may be 'changing', meaning that the underlying hypervisor
 
23
pool is being setup. A pool may be 'active', in which case the underlying
 
24
hypervisor pool is up and running. A pool may be 'dismissed' when it has
 
25
no hosts and it has been deleted. A pool may be in 'error' in all other
26
26
cases.
27
27
A 'created' pool becomes 'changing' during the first request of
28
28
adding a host. During a 'changing' status no other requests will be accepted;
34
34
pool in the 'active' state. If a number of continuous requests fail,
35
35
an 'active' pool goes into an 'error' state. To recover from such a state,
36
36
admin intervention is required. Currently an error state is irreversible,
37
 
that is, in order to recover from it an pool must be deleted.
 
37
that is, in order to recover from it a pool must be deleted.
38
38
"""
39
39
 
40
40
CREATED = 'created'
49
49
 
50
50
 
51
51
def is_hv_pool(metadata):
52
 
    """Checks if aggregate is a hypervisor_pool"""
 
52
    """Checks if aggregate is a hypervisor_pool."""
53
53
    return POOL_FLAG in metadata.keys()