From fa94fee958dac9f219dc212fea402e01080efdb7 Mon Sep 17 00:00:00 2001 From: gindibay Date: Mon, 13 Nov 2023 10:54:03 +0300 Subject: [PATCH] Rollbacks urllib3 removal --- .github/packaging/validate_build_output.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/packaging/validate_build_output.sh b/.github/packaging/validate_build_output.sh index e87fcf5fd..dab301aa5 100755 --- a/.github/packaging/validate_build_output.sh +++ b/.github/packaging/validate_build_output.sh @@ -32,6 +32,14 @@ python3 -m pip install -r tools/packaging_automation/requirements.txt echo "Package type: ${package_type}" echo "OS version: $(get_rpm_os_version)" + # For RHEL 7, we need to install urllib3<2 due to below execution error + # ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' + # module is compiled with 'OpenSSL 1.0.2k-fips 26 Jan 2017'. + # See: https://github.com/urllib3/urllib3/issues/2168 +if [[ ${package_type} == "rpm" && $(get_rpm_os_version) == 7* ]]; then + python3 -m pip uninstall -y urllib3 + python3 -m pip install 'urllib3<2' +fi python3 -m tools.packaging_automation.validate_build_output --output_file output.log \ --ignore_file .github/packaging/packaging_ignore.yml \