Workaround for virtualbox domain resuming

Change-Id: I0675f0ab7a82d4928aa44427250ddb1f0c7d85c2
Closes-Bug: #1376791
This commit is contained in:
Eugene Korekin 2014-10-07 20:37:15 +04:00
parent 7346289f23
commit 37794d367d
1 changed files with 3 additions and 1 deletions

View File

@ -327,7 +327,9 @@ class DevopsDriver(object):
:type node: Node
:rtype : None
"""
self.conn.lookupByUUIDString(node.uuid).resume()
domain = self.conn.lookupByUUIDString(node.uuid)
if domain.state == libvirt.VIR_DOMAIN_PAUSED:
domain.resume()
@retry()
def node_shutdown(self, node):