From: josephthaliath Date: Wed, 31 May 2023 09:20:03 +0000 (+0530) Subject: Script changes to adapt to latest updates in ranpm repository X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=78f68365a0d6308040cf47bc1821982fb46e8cae;p=aiml-fw%2Faimlfw-dep.git Script changes to adapt to latest updates in ranpm repository Issue-Id: AIMLFW-45 Change-Id: I407b38fca0d9bb5f39cb4a714c59a9d4e209e690 Signed-off-by: josephthaliath --- diff --git a/demos/hrelease/scripts/push-to-file-ready-topic-qoe.sh b/demos/hrelease/scripts/push-to-file-ready-topic-qoe.sh index 00c24c1..1d33757 100755 --- a/demos/hrelease/scripts/push-to-file-ready-topic-qoe.sh +++ b/demos/hrelease/scripts/push-to-file-ready-topic-qoe.sh @@ -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" diff --git a/demos/hrelease/scripts/push_qoe_data.sh b/demos/hrelease/scripts/push_qoe_data.sh index 1d3b30b..b936bcb 100755 --- a/demos/hrelease/scripts/push_qoe_data.sh +++ b/demos/hrelease/scripts/push_qoe_data.sh @@ -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