From 7d42fba3730650c308ca99f289ddb6f7eeab93d1 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 21 Jun 2021 23:28:53 -0400 Subject: [PATCH] Ensure being in migrate doesn't abort shutdown --- node-daemon/pvcnoded/VMInstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node-daemon/pvcnoded/VMInstance.py b/node-daemon/pvcnoded/VMInstance.py index 3fdd72b6..759aaa66 100644 --- a/node-daemon/pvcnoded/VMInstance.py +++ b/node-daemon/pvcnoded/VMInstance.py @@ -382,7 +382,7 @@ class VMInstance(object): # Abort shutdown if the state changes to start current_state = self.zkhandler.read(('domain.state', self.domuuid)) - if current_state not in ['shutdown', 'restart']: + if current_state not in ['shutdown', 'restart', 'migrate']: self.logger.out('Aborting VM shutdown due to state change', state='i', prefix='Domain {}'.format(self.domuuid)) is_aborted = True break