Clear "/control/shutdown" node on domain restore.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-08-17 10:18:13 +00:00
1 parent 9c07496f46
commit 6b2e541096
1 file changed
+6
+6
View File
@@ -208,6 +208,7 @@ class XendDomainInfo:
log.debug('restoring with ssidref='+str(ssidref))
id = xc.domain_create(ssidref = ssidref)
vm.setdom(id)
vm.clear_shutdown()
try:
vm.restore = True
vm.construct(config)
@@ -979,6 +980,11 @@ class XendDomainInfo:
if not reason in ['suspend']:
self.shutdown_pending = {'start':time.time(), 'reason':reason}
def clear_shutdown(self):
db = self.db.addChild("/control")
db['shutdown'] = ""
db.saveDB(save=True)
def send_sysrq(self, key=0):
db = self.db.addChild("/control");
db['sysrq'] = '%c' % key;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.