From 87a0bc09815f7b02617104604f93c79b05e2fab3 Mon Sep 17 00:00:00 2001 From: Aleksandra Fedorova Date: May 23 2019 09:51:05 +0000 Subject: Add full qemu cmd to debug output This will simplify debugging in cases when we need to know how test vm was configured. --- diff --git a/inventory/standard-inventory-qcow2 b/inventory/standard-inventory-qcow2 index f6e23d3..cb8d3a4 100755 --- a/inventory/standard-inventory-qcow2 +++ b/inventory/standard-inventory-qcow2 @@ -392,6 +392,7 @@ def start_qemu(image, cloudinit, portrange=(2222, 5555)): if diagnose: qemu_cmd += ["-vnc", DEF_HOST + ":1,to=4095"] # Launch QEMU: + logger.debug("Qemu CMD: {}".format(" ".join(qemu_cmd))) qemu_proc = subprocess.Popen(qemu_cmd, stdout=open(log_qemu, 'a'), stderr=subprocess.STDOUT) time.sleep(5) if qemu_proc and diagnose: