Update lastnode too if a self-migrate is aborted

References #92
This commit is contained in:
Joshua Boniface 2020-06-04 10:28:04 -04:00
parent 5d2031d99e
commit b9e5b14f94
1 changed files with 1 additions and 0 deletions

View File

@ -375,6 +375,7 @@ class VMInstance(object):
# Don't try to migrate a node to itself, set back to start
if self.node == self.lastnode:
zkhandler.writedata(self.zk_conn, { '/domains/{}/state'.format(self.domuuid): 'start' })
zkhandler.writedata(self.zk_conn, { '/domains/{}/lastnode'.format(self.domuuid): '' })
return
self.inmigrate = True