Enable CPS via helm override 44/14344/1
authoraravind.est <aravindhan.a@est.tech>
Fri, 25 Apr 2025 11:18:44 +0000 (12:18 +0100)
committeraravind.est <aravindhan.a@est.tech>
Fri, 25 Apr 2025 11:19:42 +0000 (12:19 +0100)
CPS and Postgres enabled through the override configuration
Directory for the volume added
Showing a warning when there is a multi-node cluster

Issue-ID: NONRTRIC-1020
Change-Id: I3c850b9a0ad97eb6c849a0b72080a53fa8977b11
Signed-off-by: aravind.est <aravindhan.a@est.tech>
smo-install/helm-override/default/onap-override.yaml
smo-install/scripts/sub-scripts/preconfigure-smo.sh

index 4b88c44..2caf67f 100644 (file)
@@ -100,6 +100,8 @@ a1policymanagement:
       managedElementIds:
         - kista_1
         - kista_2
+cps:
+  enabled: true
 dcaegen2-services:
   enabled: true
   dcae-bbs-eventprocessor-ms:
@@ -150,6 +152,8 @@ mariadb-galera:
       storageClassName: mariadb-galera-sc
     galera:
       enabled: false
+postgres:
+  enabled: true
 policy:
   enabled: true
   policy-api:
index 27a77bf..ab118f6 100644 (file)
 # ============LICENSE_END============================================
 #
 
+# Check whether k8s is multinode or not and provide warning
+if [ $(kubectl get nodes --no-headers | wc -l) -gt 1 ]; then
+    echo "----------------------------------- WARNING!!! -------------------------------------------"
+    echo "This is a multi-node cluster."
+    echo "----------------------------------- Node Details  -----------------------------------------"
+    kubectl get nodes
+    echo "-------------------------------------------------------------------------------------------"
+    echo "This installation uses /dockerdata-nfs as a volume mount point."
+    echo "Each application creates its own sub-directory under /dockerdata-nfs."
+    echo "The file permission of the sub-directory should be set to 777. "
+    echo "Setting the permission to 777 is required for the application to work properly."
+    echo "Hence, the following command should be run on all nodes in the cluster."
+    echo "-------------------------------------------------------------------------------------------"
+    echo "sudo mkdir -p /dockerdata-nfs/onap"
+    echo "sudo mkdir -p /dockerdata-nfs/onap/mariadb"
+    echo "sudo mkdir -p /dockerdata-nfs/onap/elastic-master-0"
+    echo "sudo mkdir -p /dockerdata-nfs/onap/cps-temporal/data"
+    echo "sudo chmod -R 777 /dockerdata-nfs"
+    echo "-------------------------------------------------------------------------------------------"
+fi
+
 # This needs to be done on all nodes in case of multi-node setup
 sudo mkdir -p /dockerdata-nfs/onap
 sudo mkdir -p /dockerdata-nfs/onap/mariadb
 sudo mkdir -p /dockerdata-nfs/onap/elastic-master-0
+sudo mkdir -p /dockerdata-nfs/onap/cps-temporal/data
 sudo chmod -R 777 /dockerdata-nfs
 
 # Mariadb operator installation