From 12974135e5a2982f000dc5afe2f1f5821b532493 Mon Sep 17 00:00:00 2001 From: Rihab Banday Date: Thu, 17 Feb 2022 11:27:53 +0100 Subject: [PATCH] Fix pip3 version issues The latest pipelines have been failing due to issues caused by an older version of pip3 while setting up DPDK in CentOS 7 based deployments. This patch includes an update to fix it. Signed-off-by: Rihab Banday Change-Id: Ie338adaa4908850af25dc65a551b62549d431f81 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/73224 Tested-by: jenkins-ci Reviewed-by: Georg Kunz Reviewed-by: Michael Pedersen --- sw_config/bmra/patched_rhel_packages.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/sw_config/bmra/patched_rhel_packages.yml b/sw_config/bmra/patched_rhel_packages.yml index 687142a..ec54dc9 100644 --- a/sw_config/bmra/patched_rhel_packages.yml +++ b/sw_config/bmra/patched_rhel_packages.yml @@ -281,12 +281,20 @@ - pip==9.0.3 when: - ansible_distribution == "CentOS" - - ansible_distribution_version < '7.9' + - ansible_distribution_version < '8' -- name: Install pip3 required by dpdk +- name: Remove older version of pip3 which causes dpdk setup tasks to fail yum: name: python3-pip - state: latest + state: absent when: - ansible_distribution == "CentOS" - - ansible_distribution_version < '7.9' + - ansible_distribution_version < '8' + +- name: Install new version of pip3 required by dpdk tasks + yum: + name: python3-pip + state: present + when: + - ansible_distribution == "CentOS" + - ansible_distribution_version < '8' -- 2.16.6