Fix handling of force away
This commit is contained in:
parent
19888143c5
commit
915e592f5a
|
@ -106,8 +106,9 @@ class VMInstance:
|
||||||
raise
|
raise
|
||||||
except:
|
except:
|
||||||
print('Could not migrate to the new domain; forcing away uncleanly')
|
print('Could not migrate to the new domain; forcing away uncleanly')
|
||||||
self.zk.set(self.zkey + '/state', 'start'.encode('ascii'))
|
|
||||||
self.stop_vm()
|
self.stop_vm()
|
||||||
|
time.sleep(0.5)
|
||||||
|
self.zk.set(self.zkey + '/state', 'start'.encode('ascii'))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.thishypervisor.domain_list.remove(self.domuuid)
|
self.thishypervisor.domain_list.remove(self.domuuid)
|
||||||
|
|
Loading…
Reference in New Issue