From f8a286cf3014c05105075d033178172ac030dcb6 Mon Sep 17 00:00:00 2001 From: Sandeep Yadav Date: Tue, 9 Feb 2021 18:20:17 +0530 Subject: [PATCH] Fix molecule jobs after release of cryptography3.4 Molecule jobs[0] fails with below error:- 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. [0] https://e99635be2c7386b5beda-3dea60a35fb0d38e41c535f13b48e895.ssl.cf1.rackcdn.com/773531/1/gate/tripleo-ansible-centos-8-molecule-tripleo_network_config/b1284cd/job-output.txt [1] https://github.com/pyca/cryptography/issues/5753 Related-Bug: #1915101 Change-Id: I3650a68640a0ec846be24014ebc6a71110b2f6f7 --- zuul.d/playbooks/pre.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zuul.d/playbooks/pre.yml b/zuul.d/playbooks/pre.yml index 7c813e434..a367d6c17 100644 --- a/zuul.d/playbooks/pre.yml +++ b/zuul.d/playbooks/pre.yml @@ -39,6 +39,12 @@ {{ tripleo_ansible_project_path }}/scripts/bindep-install become: true + - name: Ensure a recent version of pip is installed in virtualenv + pip: + name: "pip>=19.1.1" + virtualenv: "{{ ansible_user_dir }}/test-python" + virtualenv_command: "{{ ensure_pip_virtualenv_command }}" + - name: Setup test-python pip: requirements: "{{ tripleo_ansible_project_path }}/molecule-requirements.txt"