From eec14ff177cab92610b215283961ce2f0fdafedf Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 20 Mar 2019 10:19:01 -0400 Subject: [PATCH] Don't set unmigrated VMs to start --- client-common/vm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client-common/vm.py b/client-common/vm.py index 618c92fb..4e79d251 100644 --- a/client-common/vm.py +++ b/client-common/vm.py @@ -453,7 +453,8 @@ def unmigrate_vm(zk_conn, domain): # Get state and verify we're OK to proceed current_state = zkhandler.readdata(zk_conn, '/domains/{}/state'.format(dom_uuid)) if current_state != 'start': - target_state = 'start' + # If the current state isn't start, preserve it; we're not doing live migration + target_state = current_state else: target_state = 'migrate'