summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRihab Banday <rihab.banday@ericsson.com>2020-08-21 15:03:34 +0200
committerRihab Banday <rihab.banday@ericsson.com>2020-09-08 11:35:11 +0000
commit5864692345fe35db4ced3b208dbbc2b143525259 (patch)
tree1e50fa9909c4b95753745025d2aa7d1262eb7c04
parent9a779464630cbb825d805d893147dcf2603c2350 (diff)
Fix PyYAML error caused by net-attach-defs-create role in BMRA
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>
-rwxr-xr-xfunctions.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/functions.sh b/functions.sh
index d246ace..47c8536 100755
--- a/functions.sh
+++ b/functions.sh
@@ -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/