Script changes to adapt to latest updates in ranpm repository 51/11251/1
authorjosephthaliath <jo.thaliath@samsung.com>
Wed, 31 May 2023 09:20:03 +0000 (14:50 +0530)
committerjosephthaliath <jo.thaliath@samsung.com>
Wed, 31 May 2023 09:20:03 +0000 (14:50 +0530)
Issue-Id: AIMLFW-45

Change-Id: I407b38fca0d9bb5f39cb4a714c59a9d4e209e690
Signed-off-by: josephthaliath <jo.thaliath@samsung.com>
demos/hrelease/scripts/push-to-file-ready-topic-qoe.sh
demos/hrelease/scripts/push_qoe_data.sh

index 00c24c1..1d33757 100755 (executable)
@@ -25,9 +25,9 @@ START_EPOCH=$3
 END_EPOCH=$4
 
 chmod +x kafka-client-send-file-ready-qoe.sh
-kubectl cp kafka-client-send-file-ready-qoe.sh nonrtric/client:/home/appuser -c client
+kubectl cp kafka-client-send-file-ready-qoe.sh nonrtric/kafka-client:/home/appuser -c kafka-client
 
-kubectl exec client -c client -n nonrtric -- bash -c './kafka-client-send-file-ready-qoe.sh '$NODE_NAME_BASE' '$FILENAME' '$START_EPOCH' '$END_EPOCH' '
+kubectl exec kafka-client -c kafka-client -n nonrtric -- bash -c './kafka-client-send-file-ready-qoe.sh '$NODE_NAME_BASE' '$FILENAME' '$START_EPOCH' '$END_EPOCH' '
 
 echo "done"
 
index 1d3b30b..b936bcb 100755 (executable)
@@ -24,8 +24,8 @@ if [ $# -lt 3 ]; then
 fi
 
 kubectl patch StatefulSet pm-https-server -n ran -p '{"spec":{"template":{"spec":{"containers":[{"name":"pm-https-server", "env":[{"name":"ALWAYS_RETURN", "value":""}]}]}}}}'
-while [[ $(kubectl get pods pm-https-server-0 -n ran -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "waiting for pm-https-server to be up" && sleep 1; done
-kubectl exec -it pm-https-server-0 -n ran -- mkdir -p /files
+kubectl rollout status statefulset/pm-https-server -n ran
+kubectl exec -it pm-https-server-0 -n ran -c pm-https-server -- mkdir -p /files
 sudo apt install -y python3-pip
 pip3 install pandas
 wget https://raw.githubusercontent.com/o-ran-sc/ric-app-qp/g-release/src/cells.csv -O qoedata.csv