From: Laura Flores Date: Thu, 4 May 2023 22:48:17 +0000 (-0500) Subject: scripts/build_utils.sh: pin urllib3 and requests X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fa99bed63b9a0bdcdc4dd77b7c66b39971efd72a;p=ceph-build.git 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 --- diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 82d35c3a..3dc2eb36 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 () {