From patchwork Mon Jul 15 17:48:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 1132147 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45nWHC2Rl5z9sLt for ; Tue, 16 Jul 2019 03:48:55 +1000 (AEST) Received: from localhost ([::1]:41469 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn55p-0004Mh-0u for incoming@patchwork.ozlabs.org; Mon, 15 Jul 2019 13:48:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50503) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn55f-00047t-Q0 for qemu-devel@nongnu.org; Mon, 15 Jul 2019 13:48:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hn55e-000745-Kt for qemu-devel@nongnu.org; Mon, 15 Jul 2019 13:48:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56664) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hn55e-00071z-D8; Mon, 15 Jul 2019 13:48:42 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8F78436883; Mon, 15 Jul 2019 17:48:41 +0000 (UTC) Received: from x1w.redhat.com (unknown [10.40.205.87]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D7CA55C260; Mon, 15 Jul 2019 17:48:34 +0000 (UTC) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Stefan Weil Date: Mon, 15 Jul 2019 19:48:08 +0200 Message-Id: <20190715174817.18981-2-philmd@redhat.com> In-Reply-To: <20190715174817.18981-1-philmd@redhat.com> References: <20190715174817.18981-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 15 Jul 2019 17:48:41 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [NOTFORMERGE PATCH v2 1/9] tests/docker: Kludge to build the Fedora image X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Thomas Huth , Laszlo Ersek , Helge Deller , Cornelia Huck , Christian Borntraeger , qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, =?utf-8?q?C=C3=A9dric_Le_?= =?utf-8?q?Goater?= , Richard Henderson , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= , David Gibson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Rebuilding the Fedora image is failing: $ make docker-image-fedora V=1 [...] Step 4/8 : RUN dnf install -y $PACKAGES ---> Running in cef9615efafb Fedora Modular 30 - x86_64 2.0 MB/s | 2.7 MB 00:01 Fedora Modular 30 - x86_64 - Updates 1.6 MB/s | 2.3 MB 00:01 Fedora 30 - x86_64 - Updates 6.1 MB/s | 17 MB 00:02 Failed to synchronize cache for repo 'updates' Error: Failed to synchronize cache for repo 'updates' The command '/bin/sh -c dnf install -y $PACKAGES' returned a non-zero code: 1 Traceback (most recent call last): File "./tests/docker/docker.py", line 615, in sys.exit(main()) File "./tests/docker/docker.py", line 611, in main return args.cmdobj.run(args, argv) File "./tests/docker/docker.py", line 413, in run extra_files_cksum=cksum) File "./tests/docker/docker.py", line 280, in build_image quiet=quiet) File "./tests/docker/docker.py", line 207, in _do_check return subprocess.check_call(self._command + cmd, **kwargs) File "/usr/lib64/python2.7/subprocess.py", line 190, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['docker', 'build', '-t', 'qemu:fedora', '-f', '/tmp/docker_buildbKtWAa/tmpIctHw2.docker', '/tmp/docker_buildbKtWAa']' returned non-zero exit status 1 make: *** [tests/docker/Makefile.include:53: docker-image-fedora] Error 1 The fix found in one of the comment from this thread helped to have it working again: https://bugzilla.redhat.com/show_bug.cgi?id=1706627 Signed-off-by: Philippe Mathieu-Daudé --- I have no idea what it does, it just works (TM). --- tests/docker/dockerfiles/fedora.docker | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/docker/dockerfiles/fedora.docker b/tests/docker/dockerfiles/fedora.docker index e6d39e14cb..f6be5e2dd7 100644 --- a/tests/docker/dockerfiles/fedora.docker +++ b/tests/docker/dockerfiles/fedora.docker @@ -94,6 +94,7 @@ ENV PACKAGES \ zlib-devel ENV QEMU_CONFIGURE_OPTS --python=/usr/bin/python3 -RUN dnf install -y $PACKAGES +RUN echo zchunk=False >> /etc/dnf/dnf.conf +RUN dnf clean metadata && dnf install -y $PACKAGES RUN rpm -q $PACKAGES | sort > /packages.txt ENV FEATURES mingw clang pyyaml asan