blueprint host-aggregates: host maintenance

First cut at implementing host maintenance (aka host evacuation). This allows
zero-downtime upgrades of the hosts by moving VMs off of to another host to
carry out hypervisor upgrades.

A number of issues have been addressed in this changeset:

- improved the semantic of update operation on hosts (as per dabo comment)
- refactored host-related operations into a separate class in to improve
  readability/maintainability
- refactored test_hosts to reduce duplicated code
- added first stub of host-maintenance operation

Change-Id: I933f7cb8736e56c9ecea5255936d8826ef6decec
This commit is contained in:
Armando Migliaccio
2012-02-10 19:16:29 +00:00
parent adaf9049c8
commit b88e67c445
5 changed files with 202 additions and 177 deletions

View File

@@ -17,6 +17,7 @@
# under the License.
from nova.compute.api import AggregateAPI
from nova.compute.api import HostAPI
# Importing full names to not pollute the namespace and cause possible
# collisions with use of 'from nova.compute import <foo>' elsewhere.
import nova.flags