Add delay before setting to start state
This commit is contained in:
parent
3c35142523
commit
e10e1a0bc5
|
@ -194,11 +194,12 @@ class VMInstance:
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
self.zk.set('/domains/{}/state'.format(self.domuuid), 'start'.encode('ascii'))
|
self.zk.set('/domains/{}/state'.format(self.domuuid), 'start'.encode('ascii'))
|
||||||
else:
|
else:
|
||||||
self.zk.set('/domains/{}/state'.format(self.domuuid), 'start'.encode('ascii'))
|
|
||||||
try:
|
try:
|
||||||
self.thishypervisor.domain_list.remove(self.domuuid)
|
self.thishypervisor.domain_list.remove(self.domuuid)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
time.sleep(1)
|
||||||
|
self.zk.set('/domains/{}/state'.format(self.domuuid), 'start'.encode('ascii'))
|
||||||
|
|
||||||
self.inmigrate = False
|
self.inmigrate = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue