From patchwork Mon Sep 21 16:16:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Righi X-Patchwork-Id: 1368493 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bw8rG59CGz9sVC; Tue, 22 Sep 2020 02:23:26 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1kKOb3-0005Of-W3; Mon, 21 Sep 2020 16:23:21 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kKOb2-0005OT-0d for kernel-team@lists.ubuntu.com; Mon, 21 Sep 2020 16:23:20 +0000 Received: from mail-ej1-f70.google.com ([209.85.218.70]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kKOb1-0003Ap-NU for kernel-team@lists.ubuntu.com; Mon, 21 Sep 2020 16:23:19 +0000 Received: by mail-ej1-f70.google.com with SMTP id md9so5045210ejb.8 for ; Mon, 21 Sep 2020 09:23:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=DBlHJAeG7c5O7Z1d285QNmY1qOKXGpNrQFAfpokr7RA=; b=Y8KGW+BWbh6AzOClCWSZRyAaNGCSTddrjxyTk66hARyLE798FzKKxck79M9G4I9eRB ODjUgTdNNeNegr0hF7i28DPj0ShvOwFofjnIFavtoxkXOPhIVhwy6m72Y1tWlEdxslT1 lsxHqQTnui3IGmpUK2SqXV5Poa+xTUJE22KyzwCu7Lm4Q6GmR2l94zRbjVKm9h/qrIKr NPRju4cozqfUolUb+yBCv3mBzJ0iXMDHEHJ0DJxOVWpxVVVLAknlNn4Il18iv26+9P6B DDuzCk08VzPEEpdmNhcZ/G6JaR68N8kohSbYgXtwimHHTsvGJLic2F49+NPae/zef1xG 2rPQ== X-Gm-Message-State: AOAM531y2qOFhz0UwKomXP3oaT+vrl1dhW07XIRumVyIVWjEbRAzVx+S IJLpCjHb7bcsyrWqLAjtM2p2I6aIyTjOgObjq+6XtV3rO0ypxAFFYQmA37mb9ISfs6fl98p4PGO ObBeMmI1f3JZ2sA3ZRymDod0+qwa13f2hmTAa0/0Wmw== X-Received: by 2002:a5d:6cd4:: with SMTP id c20mr540083wrc.234.1600704985931; Mon, 21 Sep 2020 09:16:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP0A1fA4WCfHxDc0VvBk+dCYIa8jyS/Ikx44yACWDEzgKTC13kznUzT9gRXcBmZ04xJEnnrQ== X-Received: by 2002:a5d:6cd4:: with SMTP id c20mr540058wrc.234.1600704985525; Mon, 21 Sep 2020 09:16:25 -0700 (PDT) Received: from localhost (host-79-50-195-5.retail.telecomitalia.it. [79.50.195.5]) by smtp.gmail.com with ESMTPSA id i16sm21114910wrq.73.2020.09.21.09.16.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Sep 2020 09:16:24 -0700 (PDT) Date: Mon, 21 Sep 2020 18:16:23 +0200 From: Andrea Righi To: kernel-team@lists.ubuntu.com Subject: [PATCH] UBUNTU: SAUCE: ubuntu_fan_smoke_test: workaround docker 'dependency' failure Message-ID: <20200921161623.GA32698@xps-13> MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1896511 ubuntu_fan_smoke_test is failing with the following error: 111. 09/16 10:14:02 ERROR| utils:0153| [stderr] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 112. 09/16 10:14:02 DEBUG| utils:0153| [stdout] docker pull ubuntu: FAILED (docker pull returned 1) 113. 09/16 10:14:02 ERROR| test:0414| Exception escaping from test: 114. Traceback (most recent call last): 115. File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec 116. _call_test_function(self.execute, *p_args, **p_dargs) 117. File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function 118. return func(*args, **dargs) 119. File "/home/ubuntu/autotest/client/shared/test.py", line 291, in execute 120. postprocess_profiled_run, args, dargs) 121. File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once 122. self.run_once(*args, **dargs) 123. File "/home/ubuntu/autotest/client/tests/ubuntu_fan_smoke_test/ubuntu_fan_smoke_test.py", line 53, in run_once 124. self.results = utils.system_output(cmd, retain_output=True) 125. File "/home/ubuntu/autotest/client/shared/utils.py", line 1267, in system_output 126. verbose=verbose, args=args).stdout 127. File "/home/ubuntu/autotest/client/shared/utils.py", line 918, in run 128. "Command returned non-zero exit status") 129. CmdError: Command <./ubuntu_fan_smoke_test.sh 10.246.0.0/16> failed, rc=1, Command returned non-zero exit status 130. * Command: 131. ./ubuntu_fan_smoke_test.sh 10.246.0.0/16 132. Exit status: 1 And this message is showing up in the log: systemd: Job docker.service/start failed with result 'dependency'. Apparently it seems to be a docker issue, as reported here [1]. Fix by applying the resolutions steps suggested in this article. [1] https://support.plesk.com/hc/en-us/articles/360012448554-Unable-to-start-Docker-service-Dependency-failed-for-Docker-Application-Container-Engine Signed-off-by: Andrea Righi --- ubuntu_fan_smoke_test/ubuntu_fan_smoke_test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ubuntu_fan_smoke_test/ubuntu_fan_smoke_test.sh b/ubuntu_fan_smoke_test/ubuntu_fan_smoke_test.sh index 74aa5d87..095a922f 100755 --- a/ubuntu_fan_smoke_test/ubuntu_fan_smoke_test.sh +++ b/ubuntu_fan_smoke_test/ubuntu_fan_smoke_test.sh @@ -60,6 +60,12 @@ if [ -n "$http_proxy" ]; then ;; esac + mkdir -p /etc/systemd/system/containerd.service.d + touch /etc/systemd/system/containerd.service.d/override.conf + echo -e "[Service]\nExecStartPre=" >> /etc/systemd/system/containerd.service.d/override.conf + systemctl daemon-reload + systemctl restart docker.service + echo $EOPTS "[Service]\nEnvironment=\"HTTP_PROXY=$http_proxy\"\n" \ > /etc/systemd/system/docker.service.d/http-proxy.conf systemctl daemon-reload