From fa99bed63b9a0bdcdc4dd77b7c66b39971efd72a Mon Sep 17 00:00:00 2001 From: Laura Flores Date: Thu, 4 May 2023 17:48:17 -0500 Subject: [PATCH] scripts/build_utils.sh: pin urllib3 and requests The latest version of chacractl requires requests-toolbelt==0.9.1. This is not compatible with the latest version of urllib3, which dropped support for appengine. We need to pin urllib3 to an older version that still supports appengine, and requests to an older version that still supports the older urllib3 until charactl allows a higher version of requests-toolbelt. Fixes: https://tracker.ceph.com/issues/59652 Signed-off-by: Laura Flores --- scripts/build_utils.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 82d35c3a9..3dc2eb36e 100755 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -237,6 +237,11 @@ install_python_packages () { # install packages from the local pip cache, ignoring pypi $venv/pip install --upgrade --exists-action=i --find-links="file://$PIP_SDIST_INDEX" --no-index $package done + + # See https://tracker.ceph.com/issues/59652 + echo "Pinning urllib3 and requests" + $venv/pip install "urllib3<2.0.0" + $venv/pip install "requests<2.30.0" } make_chacractl_config () { -- 2.47.3