]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts/build_utils.sh: pin urllib3 and requests 2130/head
authorLaura Flores <lflores@redhat.com>
Thu, 4 May 2023 22:48:17 +0000 (17:48 -0500)
committerLaura Flores <lflores@redhat.com>
Fri, 5 May 2023 20:05:37 +0000 (15:05 -0500)
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 <lflores@redhat.com>
scripts/build_utils.sh

index 82d35c3a9c75af3ebc73d228c92024e3cfe54b6c..3dc2eb36eb50a932898678506120a127ba2a12a8 100755 (executable)
@@ -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 () {