aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/QemuUtils.py
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2016-12-21 09:51:47 +0100
committerpmikus <pmikus@cisco.com>2016-12-21 09:51:47 +0100
commitf943725e2665997aa8e64e50a124632c0a197900 (patch)
treec8e443ac3fff8f02aada97b42a838a810c5b71c4 /resources/libraries/python/QemuUtils.py
parent1b9fde506da43aa5cdd1fd1b4cd7f841d8ecd6bd (diff)
Fix: Qemu wait_until_vm_boot
There is an issue that booting Nested VM is successful but QGA guest-ping or flush returns partial response. This fix suppose to do checking until an error or timeout occurs. In case of QGA returns correct response it is success. In case of partial response it will log an error and continue in checking. Change-Id: Idb2c5e5ea54bfc1e118ff62dd15696a1797dfdd9 Signed-off-by: pmikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python/QemuUtils.py')
-rw-r--r--resources/libraries/python/QemuUtils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/libraries/python/QemuUtils.py b/resources/libraries/python/QemuUtils.py
index 8ee972533a..37a8863a2e 100644
--- a/resources/libraries/python/QemuUtils.py
+++ b/resources/libraries/python/QemuUtils.py
@@ -292,8 +292,8 @@ class QemuUtils(object):
if time() - start > timeout:
raise RuntimeError('timeout, VM {0} not booted on {1}'.format(
self._qemu_opt['disk_image'], self._node['host']))
- self._qemu_qga_flush()
try:
+ self._qemu_qga_flush()
out = self._qemu_qga_exec('guest-ping')
except ValueError:
logger.trace('QGA guest-ping unexpected output {}'.format(out))