Skip to content

Commit 1985e52

Browse files
authored
Merge pull request #429 from satr/patch-2
Added log for multiple pods command, fexed markup
2 parents a0af3ab + 7ddcb20 commit 1985e52

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

docs/csi-debug.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,52 @@
22
### Case#1: volume create/delete issue
33
- locate csi driver pod
44
```console
5-
$ kubectl get po -o wide -n kube-system | grep csi-blob-controller
5+
kubectl get po -o wide -n kube-system | grep csi-blob-controller
6+
```
7+
<pre>
68
NAME READY STATUS RESTARTS AGE IP NODE
79
csi-blob-controller-56bfddd689-dh5tk 4/4 Running 0 35s 10.240.0.19 k8s-agentpool-22533604-0
810
csi-blob-controller-56bfddd689-sl4ll 4/4 Running 0 35s 10.240.0.23 k8s-agentpool-22533604-1
9-
```
11+
</pre>
1012
- get csi driver logs
1113
```console
12-
$ kubectl logs csi-blob-controller-56bfddd689-dh5tk -c blob -n kube-system > csi-blob-controller.log
14+
kubectl logs csi-blob-controller-56bfddd689-dh5tk -c blob -n kube-system > csi-blob-controller.log
1315
```
1416
> note: there could be multiple controller pods, logs can be taken from all of them simultaneously, also with `follow` (realtime) mode
1517
> `kubectl logs deploy/csi-blob-controller -c blob -f -n kube-system`
1618
1719
### Case#2: volume mount/unmount failed
1820
- locate csi driver pod and make sure which pod do tha actual volume mount/unmount
1921
```console
20-
$ kubectl get po -o wide -n kube-system | grep csi-blob-node
22+
kubectl get po -o wide -n kube-system | grep csi-blob-node
23+
```
24+
<pre>
2125
NAME READY STATUS RESTARTS AGE IP NODE
2226
csi-blob-node-cvgbs 3/3 Running 0 7m4s 10.240.0.35 k8s-agentpool-22533604-1
2327
csi-blob-node-dr4s4 3/3 Running 0 7m4s 10.240.0.4 k8s-agentpool-22533604-0
24-
```
28+
</pre>
2529

2630
- get csi driver logs
2731
```console
28-
$ kubectl logs csi-blob-node-cvgbs -c blob -n kube-system > csi-blob-node.log
32+
kubectl logs csi-blob-node-cvgbs -c blob -n kube-system > csi-blob-node.log
2933
```
34+
> note: to watch logs in realtime from multiple `csi-blob-node` DaemonSet pods simultaneously, run the command:
35+
> ```console
36+
> kubectl logs daemonset/csi-blob-node -c blob -n kube-system -f
37+
> ```
3038
3139
### get blobfuse driver version
3240
```console
33-
# kubectl exec -it csi-blob-node-fmbqw -n kube-system -c blob -- sh
34-
# blobfuse -v
35-
blobfuse 1.2.4
41+
kubectl exec -it csi-blob-node-fmbqw -n kube-system -c blob -- sh
42+
blobfuse -v
3643
```
44+
<pre>
45+
blobfuse 1.2.4
46+
</pre>
3747

3848
### check blobfuse mount on the agent node
3949
```console
40-
# mount | grep blobfuse | uniq
50+
mount | grep blobfuse | uniq
4151
```
4252

4353
### troubleshooting connection failure on agent node

0 commit comments

Comments
 (0)