summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-11-12 18:11:51 +0000
committerGerrit Code Review <review@openstack.org>2012-11-12 18:11:51 +0000
commit8bb97c97b99539b7d8b03e5abeff648a81da7794 (patch)
tree8d6ada9dd68e3d9a974b4191d1789a13f81d60f6 /nova/compute
parente3dfde7148a1b842804ff6f74655dfce6785bab7 (diff)
parenta51d60f2ba557926f982d7f6c735ed12e5deb5e9 (diff)
Merge "Move host aggregate operations to VirtAPI"
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/manager.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index 235ecd7fa..46c5e490e 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -227,6 +227,22 @@ class ComputeVirtAPI(virtapi.VirtAPI):
def instance_get_all_by_host(self, context, host):
return self._compute.db.instance_get_all_by_host(context, host)
+ def aggregate_get_by_host(self, context, host, key=None):
+ return self._compute.db.aggregate_get_by_host(context, host, key=key)
+
+ def aggregate_metadata_get(self, context, aggregate_id):
+ return self._compute.db.aggregate_metadata_get(context, aggregate_id)
+
+ def aggregate_metadata_add(self, context, aggregate_id, metadata,
+ set_delete=False):
+ return self._compute.db.aggregate_metadata_add(context, aggregate_id,
+ metadata,
+ set_delete=set_delete)
+
+ def aggregate_metadata_delete(self, context, aggregate_id, key):
+ return self._compute.db.aggregate_metadata_delete(context,
+ aggregate_id, key)
+
class ComputeManager(manager.SchedulerDependentManager):
"""Manages the running instances from creation to destruction."""