From: aravind.est Date: Wed, 6 Sep 2023 12:46:58 +0000 (+0100) Subject: Fix ACM installation issues X-Git-Tag: 0.0.1~42 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=e1a83825fa9d12795716c3de82bdf2a51dab66e7;hp=44794c75ea5961f6cae66a023093e86b9a00ec38;p=nonrtric%2Fplt%2Frappmanager.git Fix ACM installation issues Fixed ACM installation issues. It should be removed once this is fixed in policy/docker repository in ONAP Issue-ID: NONRTRIC-926 Signed-off-by: aravind.est Change-Id: I3ac220c8f39ac34072f5d638911565d665a8bda8 --- diff --git a/scripts/install/install-acm.sh b/scripts/install/install-acm.sh index d08b86f..1008b56 100755 --- a/scripts/install/install-acm.sh +++ b/scripts/install/install-acm.sh @@ -25,6 +25,7 @@ DISABLE_COMPONENTS=(policy-api policy-pap policy-apex-pdp policy-pdpd-cl policy- ACM_VALUES_FILE="docker/helm/policy/values.yaml" A1PMS_CONFIGURATION_FILE="docker/helm/policy/components/policy-clamp-ac-a1pms-ppnt/resources/config/A1pmsParticipantParameters.yaml" K8S_CONFIGURATION_FILE="docker/helm/policy/components/policy-clamp-ac-k8s-ppnt/values.yaml" +K8S_VERSIONS_FILE="docker/compose/get-k8s-versions.sh" IP_ADDRESS=$(hostname -I | awk '{print $1}') echo "IP Address : $IP_ADDRESS" @@ -34,8 +35,15 @@ git clone "https://gerrit.onap.org/r/policy/docker" CWD=$(pwd) export WORKSPACE="$CWD/docker" +#Temporary workaround. Should be removed once this gets fixed in policy/docker repo +echo "Update policy-db-migrator version..." +yq eval '.dbmigrator.image="onap/policy-db-migrator:3.0-SNAPSHOT-latest"' -i $ACM_VALUES_FILE +sed -i 's/component=policy-clamp-ac-kserve-ppnt/component=policy-clamp-ac-sim-ppnt/g' $K8S_VERSIONS_FILE +PARAMETER_STRING="metrics:\n security:\n disabled: false" +echo -e "$PARAMETER_STRING" >> docker/helm/policy/components/policy-clamp-runtime-acm/resources/config/acRuntimeParameters.yaml + echo "Updating policy docker image versions..." -bash docker/compose/get-k8s-versions.sh +bash $K8S_VERSIONS_FILE echo "Enabling the access for the clusterroles..." kubectl apply -f resources/acm-role-binding.yaml