From: aravind.est Date: Wed, 6 Aug 2025 14:46:36 +0000 (+0100) Subject: Move service manager preload scripts to smo-install directory X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=0766258258ac0f8dfd1fd066876907247f8b3fe3;p=it%2Fdep.git Move service manager preload scripts to smo-install directory SMO Installation uses service manager preload scripts from nonrtric directory. As the NONRTRIC directory is being deprecated, the service manager preload scripts are moved to the smo-install directory. This commit updates the paths in the deploy and undeploy scripts accordingly and modifies the post-configuration script to use Issue-ID: NONRTRIC-1082 Change-Id: Ib80eb27b252ad9a8432a40ebacd579fd187e5384 Signed-off-by: aravind.est --- diff --git a/bin/deploy-nonrtric b/bin/deploy-nonrtric index 504403dd..db22a9f2 100755 --- a/bin/deploy-nonrtric +++ b/bin/deploy-nonrtric @@ -186,11 +186,4 @@ kubectl create configmap -n ${NONRTRIC_NAMESPACE:-nonrtric} nonrtric-recipe --fr echo "Deploying NONRTRIC" echo "helm install -f $OVERRIDEYAML --namespace ${NONRTRIC_NAMESPACE:-nonrtric} ${HELM_NAME_OPT} ${RELEASE_PREFIX} $ROOT_DIR/../nonrtric/helm/nonrtric" -helm install -f $OVERRIDEYAML -n "${NONRTRIC_NAMESPACE:-nonrtric}" ${HELM_NAME_OPT} "${RELEASE_PREFIX}" "$ROOT_DIR/../nonrtric/helm/nonrtric" - -if [ "$INSTALL_SERVICEMANAGER" == "true" ]; then - pushd "$ROOT_DIR/../nonrtric/servicemanager-preload" - # Send stderr to null to turn off chatty logging - ./servicemanager-preload.sh config-nonrtric.yaml 2>/dev/null - popd -fi +helm install -f $OVERRIDEYAML -n "${NONRTRIC_NAMESPACE:-nonrtric}" ${HELM_NAME_OPT} "${RELEASE_PREFIX}" "$ROOT_DIR/../nonrtric/helm/nonrtric" \ No newline at end of file diff --git a/bin/undeploy-nonrtric b/bin/undeploy-nonrtric index 1753a25e..46fad2ef 100755 --- a/bin/undeploy-nonrtric +++ b/bin/undeploy-nonrtric @@ -49,13 +49,6 @@ RELEASE_PREFIX=$(echo "$COMMON_BLOCK" | awk '/^ *releasePrefix:/{print $2}') INSTALL_KONG=$(cat /tmp/recipe.yaml | awk '/^ installKong:/{print $2}') if [ "$INSTALL_KONG" = true ];then - echo "Warning - deleting Kong routes and services for ServiceManager" - SERVICEMANAGER_POD=$(kubectl get pods -o custom-columns=NAME:.metadata.name -l app=nonrtric-servicemanager --no-headers -n ${NONRTRIC_NAMESPACE:-nonrtric}) - if [[ -n $SERVICEMANAGER_POD ]]; then - kubectl exec $SERVICEMANAGER_POD -n ${NONRTRIC_NAMESPACE:-nonrtric} -- ./kongclearup - else - echo "Error - Servicemanager pod not found, didn't delete Kong routes and services for ServiceManager" - fi echo "Uninstalling kongstorage" helm delete kongstorage -n "${NONRTRIC_NAMESPACE:-nonrtric}" echo "Uninstalling Kong" diff --git a/nonrtric/servicemanager-preload/README.md b/smo-install/ServiceManager-Preload-README.md similarity index 98% rename from nonrtric/servicemanager-preload/README.md rename to smo-install/ServiceManager-Preload-README.md index 7fcfac0e..0696a36b 100644 --- a/nonrtric/servicemanager-preload/README.md +++ b/smo-install/ServiceManager-Preload-README.md @@ -1,6 +1,6 @@