From 9147d636d6dff5eb9b1662f220f60755b4e6260e Mon Sep 17 00:00:00 2001 From: "Chandan Kumar (raukadah)" Date: Tue, 18 Aug 2020 18:21:07 +0530 Subject: [PATCH] Install pytest-xdist<2.0.0 for c7 jobs pytest-xdist 2.0.0 is released recently and which pulls psutils which is failed to install on C7. https://pypi.org/project/pytest-xdist/2.0.0/ Installing pytest-xdist < 2.0.0 fixes the issue. It also fixes the package name of tripleo-repos. Add mode 0644. Change-Id: I2484fa536a5ed4d88df7662aa2d724e44acd3dd7 Signed-off-by: Chandan Kumar (raukadah) --- molecule-requirements.txt | 2 +- tripleo_ansible/roles/test_deps/tasks/main.yml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/molecule-requirements.txt b/molecule-requirements.txt index e4095c350..1eba42cd7 100644 --- a/molecule-requirements.txt +++ b/molecule-requirements.txt @@ -5,7 +5,7 @@ docker pytest pytest-cov pytest-html -pytest-xdist +pytest-xdist<2.0.0 sh>=1.12.14,<1.13 molecule==3.0a5 netaddr diff --git a/tripleo_ansible/roles/test_deps/tasks/main.yml b/tripleo_ansible/roles/test_deps/tasks/main.yml index 03a81be3f..ca2719dd9 100644 --- a/tripleo_ansible/roles/test_deps/tasks/main.yml +++ b/tripleo_ansible/roles/test_deps/tasks/main.yml @@ -52,11 +52,13 @@ copy: content: "{{ tripleo_packages.content }}" dest: /etc/yum.repos.d/delorean.repo + mode: 0644 - name: Install tripleo-repos package + become: true package: - name: "python*tripleo-repos" - state: present + name: "python*-tripleo-repos" + state: latest - name: Tripleo setup block when: