From b4ef1e9dc7fe4e6681a113d2870a2f1236ba60f2 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Wed, 24 Feb 2021 19:11:10 +0900 Subject: [PATCH] CI: fix "ls: cannot access '/etc/cni/net.d': Permission denied" The CI host was probably updated recently and the permission bits of the directory was changed. Fix 5077 Signed-off-by: Akihiro Suda --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c87d7af6..3cfa3b9a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -339,7 +339,7 @@ jobs: [plugins.cri.containerd.default_runtime] runtime_type = "${TEST_RUNTIME}" EOF - ls /etc/cni/net.d + sudo ls /etc/cni/net.d sudo PATH=$PATH BDIR=$BDIR /usr/local/bin/containerd -a ${BDIR}/c.sock --config ${BDIR}/config.toml --root ${BDIR}/root --state ${BDIR}/state --log-level debug &> ${BDIR}/containerd-cri.log & sudo PATH=$PATH BDIR=$BDIR /usr/local/bin/ctr -a ${BDIR}/c.sock version sudo PATH=$PATH BDIR=$BDIR GOPATH=$GOPATH critest --runtime-endpoint=unix:///${BDIR}/c.sock --parallel=8