Skip to content

Commit

Permalink
Script changes to adapt to latest updates in ranpm repository
Browse files Browse the repository at this point in the history
Issue-Id: AIMLFW-45

Change-Id: I407b38fca0d9bb5f39cb4a714c59a9d4e209e690
Signed-off-by: josephthaliath <[email protected]>
  • Loading branch information
josephthaliath committed May 31, 2023
1 parent 8ce601e commit 78f6836
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions demos/hrelease/scripts/push-to-file-ready-topic-qoe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

4 changes: 2 additions & 2 deletions demos/hrelease/scripts/push_qoe_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78f6836

Please sign in to comment.