Ensure inmigrate is cleared on failure

This commit is contained in:
Joshua Boniface 2020-11-17 12:57:37 -05:00
parent 0383f31086
commit 70dfcd434f
1 changed files with 1 additions and 0 deletions

View File

@ -381,6 +381,7 @@ class VMInstance(object):
}) })
migrate_lock_node.release() migrate_lock_node.release()
migrate_lock_state.release() migrate_lock_state.release()
self.inmigrate = False
self.logger.out('Aborted migration: {}'.format(reason), state='i', prefix='Domain {}'.format(self.domuuid)) self.logger.out('Aborted migration: {}'.format(reason), state='i', prefix='Domain {}'.format(self.domuuid))
# Acquire exclusive lock on the domain node key # Acquire exclusive lock on the domain node key