From f943725e2665997aa8e64e50a124632c0a197900 Mon Sep 17 00:00:00 2001 From: pmikus Date: Wed, 21 Dec 2016 09:51:47 +0100 Subject: [PATCH] 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 --- resources/libraries/python/QemuUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.16.6