From d0ea6adf902d7bfb22bb39491b2fab6cadfa8ae7 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Fri, 28 Sep 2012 21:34:32 +0000 Subject: xenapi: implement resume_state_on_host_boot Implement the resume_state_on_host_boot() driver method for XenAPI. This makes it possible to automatically start instances when nova-compute starts up with the XenAPI driver. Change-Id: I68eb11fae57825898009aa1d9567d8112aad53b3 --- nova/virt/xenapi/driver.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nova') diff --git a/nova/virt/xenapi/driver.py b/nova/virt/xenapi/driver.py index 3425c64f8..6464c4d6d 100644 --- a/nova/virt/xenapi/driver.py +++ b/nova/virt/xenapi/driver.py @@ -597,6 +597,11 @@ class XenAPIDriver(driver.ComputeDriver): # TODO(tr3buchet): remove this function once all virts return false return False + def resume_state_on_host_boot(self, context, instance, network_info, + block_device_info=None): + """resume guest state when a host is booted""" + self._vmops.power_on(instance) + class XenAPISession(object): """The session to invoke XenAPI SDK calls""" -- cgit