Skip to content

Commit

Permalink
CI: fix ceph-ansible installation after cryptography 3.4 release
Browse files Browse the repository at this point in the history
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] pyca/cryptography#5753

Change-Id: I47473de6f71c422db2238d653c2d8f379c55e79b
  • Loading branch information
markgoddard authored and yoctozepto committed Feb 11, 2021
1 parent 3dd6834 commit 5fc7707
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/deploy-ceph-ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5fc7707

Please sign in to comment.