summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Kearney <josh.kearney@rackspace.com>2011-01-13 10:44:29 -0600
committerJosh Kearney <josh.kearney@rackspace.com>2011-01-13 10:44:29 -0600
commit752bed3311f09e7a43e642231e1638b4252f74a6 (patch)
treee7aca4d3e8a27c2b57ed242691b79da1da6f5f9e
parent7f2a4fdf5e43620081e163fc46f2ca4fdefd18f3 (diff)
Stubbed out XenServer rescue/unrescue
-rw-r--r--nova/virt/xenapi/vmops.py8
-rw-r--r--nova/virt/xenapi_conn.py8
2 files changed, 16 insertions, 0 deletions
diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py
index 7e3585991..8681608e1 100644
--- a/nova/virt/xenapi/vmops.py
+++ b/nova/virt/xenapi/vmops.py
@@ -264,6 +264,14 @@ class VMOps(object):
task = self._session.call_xenapi('Async.VM.resume', vm, False, True)
self._wait_with_callback(task, callback)
+ def rescue(self, instance, callback):
+ """Rescue the specified instance"""
+ return True
+
+ def unrescue(self, instance, callback):
+ """Unrescue the specified instance"""
+ return True
+
def get_info(self, instance_id):
"""Return data about VM instance"""
vm = VMHelper.lookup(self._session, instance_id)
diff --git a/nova/virt/xenapi_conn.py b/nova/virt/xenapi_conn.py
index 45d0738a5..c24ec972b 100644
--- a/nova/virt/xenapi_conn.py
+++ b/nova/virt/xenapi_conn.py
@@ -169,6 +169,14 @@ class XenAPIConnection(object):
"""resume the specified instance"""
self._vmops.resume(instance, callback)
+ def rescue(self, instance, callback):
+ """Rescue the specified instance"""
+ self._vmops.rescue(instance, callback)
+
+ def unrescue(self, instance, callback):
+ """Unrescue the specified instance"""
+ self._vmops.unrescue(instance, callback)
+
def get_info(self, instance_id):
"""Return data about VM instance"""
return self._vmops.get_info(instance_id)