Closed
Description
On Windows, we found that this node-driver-registrar hang on below statement forever in a little possibility, and then after restart registrar manually, it could register correctly, question: is there any way to add timeout and retry in below statement?
node-driver-registrar/cmd/csi-node-driver-registrar/node_register.go
Lines 63 to 64 in d79871c
- node-driver-registrar hang
I0429 19:12:33.856777 5500 main.go:113] Version: v2.1.0-0-g80d42f24
E0429 19:12:35.055779 5500 processstarttime.go:43] Could not get process start time, could not read /proc: CreateFile /proc: The system cannot find the file specified.
E0429 19:12:35.055779 5500 processstarttime.go:43] Could not get process start time, could not read /proc: CreateFile /proc: The system cannot find the file specified.
I0429 19:12:35.055779 5500 main.go:137] Attempting to open a gRPC connection with: "unix://C:\\\\csi\\\\csi.sock"
I0429 19:12:35.055779 5500 connection.go:153] Connecting to unix://C:\\csi\\csi.sock
I0429 19:12:44.501633 5500 main.go:144] Calling CSI driver to discover driver name
I0429 19:12:44.511914 5500 main.go:154] CSI driver name: "disk.csi.azure.com"
I0429 19:12:44.512939 5500 node_register.go:52] Starting Registration Server at: /registration/disk.csi.azure.com-reg.sock
I0429 19:12:44.523926 5500 node_register.go:61] Registration Server started at: /registration/disk.csi.azure.com-reg.sock
I0429 19:12:44.524941 5500 node_register.go:83] Skipping healthz server because HTTP endpoint is set to: ""
- After restart driver(run node-driver-registrar), it works
0429 19:12:34.188716 5480 main.go:113] Version: v2.1.0-0-g80d42f24
E0429 19:12:35.839739 5480 processstarttime.go:43] Could not get process start time, could not read /proc: CreateFile /proc: The system cannot find the file specified.
E0429 19:12:35.840735 5480 processstarttime.go:43] Could not get process start time, could not read /proc: CreateFile /proc: The system cannot find the file specified.
I0429 19:12:35.840735 5480 main.go:137] Attempting to open a gRPC connection with: "unix://C:\\\\csi\\\\csi.sock"
I0429 19:12:35.840735 5480 connection.go:153] Connecting to unix://C:\\csi\\csi.sock
I0429 19:12:45.261075 5480 main.go:144] Calling CSI driver to discover driver name
I0429 19:12:45.264589 5480 main.go:154] CSI driver name: "disk.csi.azure.com"
I0429 19:12:45.264589 5480 node_register.go:52] Starting Registration Server at: /registration/disk.csi.azure.com-reg.sock
I0429 19:12:45.266595 5480 node_register.go:61] Registration Server started at: /registration/disk.csi.azure.com-reg.sock
I0429 19:12:45.268093 5480 node_register.go:83] Skipping healthz server because HTTP endpoint is set to: ""
I0429 19:12:45.616080 5480 main.go:80] Received GetInfo call: &InfoRequest{}
I0429 19:12:47.292740 5480 main.go:90] Received NotifyRegistrationStatus call: &RegistrationStatus{PluginRegistered:true,Error:,}
/kind bug
/sig windows