Set the hypervisor back on a failed migrate
This commit is contained in:
parent
ea97b51edb
commit
f032dbefac
|
@ -109,7 +109,8 @@ class VMInstance:
|
||||||
if dest_conn == None:
|
if dest_conn == None:
|
||||||
raise
|
raise
|
||||||
except:
|
except:
|
||||||
print('>>> Failed to open connection to qemu+ssh://%s/system' % target)
|
print('>>> Failed to open connection to qemu+ssh://%s/system' % self.hypervisor)
|
||||||
|
self.zk.set(self.zkey + '/hypervisor', self.thishypervisor.name.encode('ascii'))
|
||||||
self.zk.set(self.zkey + '/state', 'start'.encode('ascii'))
|
self.zk.set(self.zkey + '/state', 'start'.encode('ascii'))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue