From 5fc7707938d1c15506bfdbe02ae5b32ea885d0be Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Thu, 11 Feb 2021 09:17:45 +0000 Subject: [PATCH] CI: fix ceph-ansible installation after cryptography 3.4 release Installing ceph-ansible in the virtualenv on CentOS 8 fails with: ModuleNotFoundError: No module named 'setuptools_rust' This error appeared following the release of cryptography 3.4, which now includes Rust code. It can be installed without Rust using a Python wheel, but only with more recent pip than version 9.0.3 available as RPM on CentOS 8. The cryptography bug report [1] recommends pip>=19.1.1. This change upgrades pip in the virtualenv before installing ceph-ansible. [1] https://github.com/pyca/cryptography/issues/5753 Change-Id: I47473de6f71c422db2238d653c2d8f379c55e79b --- tests/deploy-ceph-ansible.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/deploy-ceph-ansible.sh b/tests/deploy-ceph-ansible.sh index 98914d2252..15218a67d4 100755 --- a/tests/deploy-ceph-ansible.sh +++ b/tests/deploy-ceph-ansible.sh @@ -9,6 +9,9 @@ export PYTHONUNBUFFERED=1 function setup_ceph_ansible { # Prepare virtualenv for ceph-ansible deployment python3 -m venv --system-site-packages ~/ceph-venv + # NOTE(mgoddard): We need a recent pip to install the latest cryptography + # library. See https://github.com/pyca/cryptography/issues/5753 + ~/ceph-venv/bin/pip install -I 'pip>=19.1.1' ~/ceph-venv/bin/pip install -Ir requirements.txt ~/ceph-venv/bin/pip install -IU selinux }