Skip to content

Commit

Permalink
Downgrade known bad containerd version during packaging tests (#89255)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mark-vieira authored Aug 11, 2022
1 parent 841ac8e commit 7cc275d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .ci/scripts/packaging-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7cc275d

Please sign in to comment.