Fix PyYAML error caused by net-attach-defs-create role in BMRA 39/70839/6
authorRihab Banday <rihab.banday@ericsson.com>
Fri, 21 Aug 2020 13:03:34 +0000 (15:03 +0200)
committerRihab Banday <rihab.banday@ericsson.com>
Tue, 8 Sep 2020 11:35:11 +0000 (11:35 +0000)
This change modifies net-attach-defs-create role to fix PyYAML
errors discovered during installation of openshift package on
remote nodes.

Change-Id: I45d9fef77942b8bec0bfc5fb50d8be53c96adb75
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70839
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Georg Kunz <georg.kunz@est.tech>
functions.sh

index d246ace..47c8536 100755 (executable)
@@ -152,6 +152,9 @@ fi
 if [ ! -d "${PROJECT_ROOT}/container-experience-kits" ]; then
     git clone --recurse-submodules --depth 1 https://github.com/intel/container-experience-kits.git -b v1.4.1 ${PROJECT_ROOT}/container-experience-kits/
     cp -r ${PROJECT_ROOT}/container-experience-kits/examples/group_vars examples/host_vars ${PROJECT_ROOT}/container-experience-kits/
+#TODO Remove this once the reported issue is fixed in the next BMRA Release
+    sed -i '/\openshift/a \    extra_args: --ignore-installed PyYAML' \
+         ${PROJECT_ROOT}/container-experience-kits/roles/net-attach-defs-create/tasks/main.yml
 fi
 cp ${PROJECT_ROOT}/${INSTALLER}/inventory.ini \
     ${PROJECT_ROOT}/container-experience-kits/