Fix wrong state during flush

This commit is contained in:
Joshua Boniface 2018-06-06 21:35:32 -04:00
parent f6b71efb1b
commit 34cbb5dc96
1 changed files with 1 additions and 1 deletions

View File

@ -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()