Skip to content

Commit f88e2df

Browse files
authored
Update csi-debug.md
1 parent 4bf4da0 commit f88e2df

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/csi-debug.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
## CSI driver debug tips
22

33
### case#1: volume create/delete failed
4-
- locate csi driver pod
4+
> There could be multiple controller pods (only one pod is the leader), if there are no helpful logs, try to get logs from the leader controller pod.
5+
- find csi driver controller pod
56
```console
67
$ kubectl get pod -o wide -n kube-system | grep csi-nfs-controller
78
NAME READY STATUS RESTARTS AGE IP NODE
89
csi-nfs-controller-56bfddd689-dh5tk 5/5 Running 0 35s 10.240.0.19 k8s-agentpool-22533604-0
910
csi-nfs-controller-56bfddd689-sl4ll 5/5 Running 0 35s 10.240.0.23 k8s-agentpool-22533604-1
1011
```
11-
- get csi driver logs
12+
- get pod description and logs
1213
```console
14+
$ kubectl describe csi-nfs-controller-56bfddd689-dh5tk -n kube-system > csi-nfs-controller-description.log
1315
$ kubectl logs csi-nfs-controller-56bfddd689-dh5tk -c nfs -n kube-system > csi-nfs-controller.log
1416
```
15-
> note: there could be multiple controller pods, if there are no helpful logs, try to get logs from other controller pods
1617

1718
### case#2: volume mount/unmount failed
1819
- locate csi driver pod that does the actual volume mount/unmount
@@ -24,8 +25,9 @@ csi-nfs-node-cvgbs 3/3 Running 0 7m4s 1
2425
csi-nfs-node-dr4s4 3/3 Running 0 7m4s 10.240.0.4 k8s-agentpool-22533604-0
2526
```
2627

27-
- get csi driver logs
28+
- get pod description and logs
2829
```console
30+
$ kubectl describe po csi-nfs-node-cvgbs -n kube-system > csi-nfs-node-description.log
2931
$ kubectl logs csi-nfs-node-cvgbs -c nfs -n kube-system > csi-nfs-node.log
3032
```
3133

0 commit comments

Comments
 (0)