From 7a206b473c22c215229f0b1b3b624bc63e17f25c Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 21 Oct 2016 16:54:03 -0700 Subject: [PATCH] createhdds: use user-mode networking for now There's been an annoying bug on the production openQA server for a while now: createhdds runs to refresh the upgrade base images don't actually work most of the time, each attempt to run virt-install fails. I finally got time to debug this a bit today and it seems to be some kind of network issue: the VM has no network access so the install doesn't work. I've no idea why that's happening, but using user-mode networking seems to work around it for now and shouldn't have any terrible side effects even for openQA servers not affected by this problem. So let's do this until we can pin down the real bug. --- createhdds.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/createhdds.py b/createhdds.py index 533d086..c0a69ce 100755 --- a/createhdds.py +++ b/createhdds.py @@ -239,6 +239,10 @@ class VirtInstallImage(object): loctmp.format(str(self.release), self.variant, arch), "--graphics", "vnc", "--name", "createhdds", "--memory", "2048", "--noreboot", "--noautoconsole", "--wait", "-1"] + # this is a hacky workaround for a weird bug on Fedora's prod + # openQA server: + # https://bugzilla.redhat.com/show_bug.cgi?id=1387798 + args.extend(("--network", "user")) # run the command, timing out after 1 hour; sometimes creation # seems to just get mysteriously stuck, we need to bail and # retry in this case