Skip to content

Commit 191c398

Browse files
committed
test: fix blobfuse-proxy log print issue
test: fix blobfuse-proxy install logs fix log print fix
1 parent d1b9f49 commit 191c398

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

test/utils/blob_log.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,14 @@ echo "==========================================================================
5454
ip=`kubectl get svc csi-$DRIVER-controller -n kube-system | awk '{print $4}'`
5555
curl http://$ip:29634/metrics
5656

57+
if [ -n "$ENABLE_BLOBFUSE_PROXY" ]; then
58+
echo "print out install-blobfuse-proxy logs ..."
59+
echo "======================================================================================"
60+
LABEL="app=csi-$DRIVER-node"
61+
PROXY=install-blobfuse-proxy
62+
kubectl get pods -n${NS} -l${LABEL} \
63+
| awk 'NR>1 {print $1}' \
64+
| xargs -I {} kubectl logs {} --prefix -c${PROXY} -n${NS}
65+
fi
66+
5767

58-
echo "print out sysctl-install-blobfuseproxy logs ..."
59-
echo "======================================================================================"
60-
LABEL='app=csi-blobfuse-proxy'
61-
PROXY=sysctl-install-blobfuse-proxy
62-
kubectl get pods -n${NS} -l${LABEL} \
63-
| awk 'NR>1 {print $1}' \
64-
| xargs -I {} kubectl logs {} --prefix -c${PROXY} -n${NS}

0 commit comments

Comments
 (0)