Update BMRA image and pip version for CentOS7 38/72438/2
authorRihab Banday <rihab.banday@ericsson.com>
Thu, 29 Apr 2021 08:18:32 +0000 (10:18 +0200)
committerMichael Pedersen <michaelx.pedersen@intel.com>
Tue, 4 May 2021 07:58:23 +0000 (07:58 +0000)
This change updates the BMRA image to v21.03 and
the pip version to the recommended one.

Change-Id: I28b69fcb105cac05fbcc2d4606714c9fd9be0cc4
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72438
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
functions.sh
sw_config/bmra/Dockerfile
sw_config/bmra/patched_rhel_packages.yml

index 6740ca2..3f61d3b 100755 (executable)
@@ -254,7 +254,7 @@ sudo docker run --rm \
 -e ANSIBLE_CONFIG=/bmra/ansible.cfg \
 -e PROFILE=${BMRA_PROFILE} \
 -v ${PROJECT_ROOT}/container-experience-kits:/bmra \
--v ~/.ssh/:/root/.ssh/ rihabbanday/bmra2.0-install:centos \
+-v ~/.ssh/:/root/.ssh/ rihabbanday/bmra21.03-install:centos \
 ${ansible_cmd}
 EOF
 }
index 97442d8..4ea0f35 100644 (file)
@@ -6,7 +6,7 @@ RUN yum -y update && \
     yum -y install git epel-release python36 python-netaddr && \
     yum -y install python-pip && \
     pip install --no-cache-dir pip==9.0.3 && \
-    pip install --no-cache-dir ansible==2.9.6 jmespath && \
+    pip install --no-cache-dir ansible==2.9.17 jmespath && \
     pip install --no-cache-dir jinja2 --upgrade
 
 CMD ["bash"]
index 7e65484..990f5dc 100644 (file)
      - jq
     state: present
   when: ansible_distribution in ["RedHat", "CentOS"]
+
+- name: use the correct pip version for CentOS 7
+  pip:
+    name:
+      - pip==9.0.3
+  when:
+    - ansible_distribution == "CentOS"
+    - ansible_distribution_version < '7.9'