From b9e5b14f94755e52f72901453b739a04e9301923 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 4 Jun 2020 10:28:04 -0400 Subject: [PATCH] Update lastnode too if a self-migrate is aborted References #92 --- node-daemon/pvcnoded/VMInstance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/node-daemon/pvcnoded/VMInstance.py b/node-daemon/pvcnoded/VMInstance.py index e5758220..2da9fe80 100644 --- a/node-daemon/pvcnoded/VMInstance.py +++ b/node-daemon/pvcnoded/VMInstance.py @@ -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