summaryrefslogtreecommitdiffstats
path: root/nova/compute
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-06-06 20:48:08 +0000
committerGerrit Code Review <review@openstack.org>2012-06-06 20:48:08 +0000
commit7626472ed8eac46f393d7d9ff4d5e8250a4a22b7 (patch)
tree41599c1a74f12b22453bd275d47d6e2fa571074c /nova/compute
parentd15d74dbbd2312f14d12f12fa10cdd6cac00b59a (diff)
parentcf2b87347cd801112f89552a78efabb92a63bac6 (diff)
Merge "Add shared_storage_test methods to compute rpcapi."
Diffstat (limited to 'nova/compute')
-rw-r--r--nova/compute/rpcapi.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/nova/compute/rpcapi.py b/nova/compute/rpcapi.py
index 155c23abf..8c25906c9 100644
--- a/nova/compute/rpcapi.py
+++ b/nova/compute/rpcapi.py
@@ -84,6 +84,16 @@ class ComputeAPI(nova.rpc.proxy.RpcProxy):
mountpoint=mountpoint),
topic=self._compute_topic(ctxt, None, instance))
+ def check_shared_storage_test_file(self, ctxt, filename, host):
+ return self.call(ctxt, self.make_msg('check_shared_storage_test_file',
+ filename=filename),
+ topic=self._compute_topic(ctxt, host, None))
+
+ def cleanup_shared_storage_test_file(self, ctxt, filename, host):
+ self.cast(ctxt, self.make_msg('cleanup_shared_storage_test_file',
+ filename=filename),
+ topic=self._compute_topic(ctxt, host, None))
+
def compare_cpu(self, ctxt, cpu_info, host):
return self.call(ctxt, self.make_msg('compare_cpu', cpu_info=cpu_info),
topic=self._compute_topic(ctxt, host, None))
@@ -95,6 +105,11 @@ class ComputeAPI(nova.rpc.proxy.RpcProxy):
instance_uuid=instance['uuid'], migration_id=migration_id),
topic=self._compute_topic(ctxt, host, instance))
+ def create_shared_storage_test_file(self, ctxt, host):
+ return self.call(ctxt,
+ self.make_msg('create_shared_storage_test_file'),
+ topic=self._compute_topic(ctxt, host, None))
+
def detach_volume(self, ctxt, instance, volume_id):
self.cast(ctxt, self.make_msg('detach_volume',
instance_uuid=instance['uuid'], volume_id=volume_id),