From 34cbb5dc969fd3a495516c7d759a19e655cb564b Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 6 Jun 2018 21:35:32 -0400 Subject: [PATCH] Fix wrong state during flush --- NodeInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NodeInstance.py b/NodeInstance.py index 62b96549..c41b8cb0 100644 --- a/NodeInstance.py +++ b/NodeInstance.py @@ -111,7 +111,7 @@ class NodeInstance(): else: print('>>> Moving VM "{}" to hypervisor "{}".'.format(dom_uuid, target_hypervisor)) transaction = self.zk.transaction() - transaction.set_data('/domains/{}/state'.format(dom_uuid), 'start'.encode('ascii')) + transaction.set_data('/domains/{}/state'.format(dom_uuid), 'migrate'.encode('ascii')) transaction.set_data('/domains/{}/hypervisor'.format(dom_uuid), target_hypervisor.encode('ascii')) transaction.set_data('/domains/{}/lasthypervisor'.format(dom_uuid), current_hypervisor.encode('ascii')) result = transaction.commit()