From 7cc275d54eda73ab40a996577b97a5cdd5838a31 Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Wed, 10 Aug 2022 17:30:05 -0700 Subject: [PATCH] Downgrade known bad containerd version during packaging tests (#89255) 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 https://github.com/elastic/elasticsearch/issues/89247 --- .ci/scripts/packaging-test.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.ci/scripts/packaging-test.sh b/.ci/scripts/packaging-test.sh index 7ef82371f6ad7..7b0e8f3320bed 100755 --- a/.ci/scripts/packaging-test.sh +++ b/.ci/scripts/packaging-test.sh @@ -43,6 +43,13 @@ if [ -f "/etc/os-release" ] ; then sudo apt-get install -y --allow-downgrades lintian=2.15.0 fi fi + if [[ "$ID" == "rhel" ]] ; then + # Downgrade containerd if necessary to work around runc bug + # See: https://github.com/opencontainers/runc/issues/3551 + if containerd -version | grep -sF 1.6.7; then + sudo yum downgrade -y containerd.io + fi + fi else cat /etc/issue || true fi