Skip to content

Commit 98033d6

Browse files
authored
Downgrade known bad containerd version during packaging tests (#89255) (#89259)
Looks like `containerd` has been upgraded on the latest RHEL 9 CI workers. This updated package includes `runc` 1.1.3 which seems to include a bug which can cause a failure when trying to attach a terminal to a running container. This is causing our Docker packaging tests to fail when we attempt to do `docker exec --tty`. For now let's just add a bit to our packaging test execution script to downgrade the package if appropriate. Closes #89247
1 parent 5366b0b commit 98033d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.ci/scripts/packaging-test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ if [ -f "/etc/os-release" ] ; then
4343
sudo apt-get install -y --allow-downgrades lintian=2.15.0
4444
fi
4545
fi
46+
if [[ "$ID" == "rhel" ]] ; then
47+
# Downgrade containerd if necessary to work around runc bug
48+
# See: https://github.com/opencontainers/runc/issues/3551
49+
if containerd -version | grep -sF 1.6.7; then
50+
sudo yum downgrade -y containerd.io
51+
fi
52+
fi
4653
else
4754
cat /etc/issue || true
4855
fi

0 commit comments

Comments
 (0)