kubernetes-sigs / sig-windows-tools

Repository for tools and artifacts related to the sig-windows charter in Kubernetes. Scripts to assist kubeadm and wincat and flannel will be hosted here.
Apache License 2.0
123 stars 123 forks source link

CSI driver registration fails by wmic not found #358

Closed laozc closed 7 months ago

laozc commented 7 months ago

Describe the bug CSI driver registration failed with vSphere CSI.

I0131 16:03:31.383613    6684 main.go:121] Received NotifyRegistrationStatus call: &RegistrationStatus{PluginRegistered:false,Error:RegisterPlugin error -- plugin registration failed with err: rpc error: code = Internal desc = failed to get system uuid for node VM with error: rpc error: code = Unknown desc = exec: "wmic": executable file not found in %PATH%,}
E0131 16:03:31.383613    6684 main.go:123] Registration process failed with error: RegisterPlugin error -- plugin registration failed with err: rpc error: code = Internal desc = failed to get system uuid for node VM with error: rpc error: code = Unknown desc = exec: "wmic": executable file not found in %PATH%, restarting registration container.

To Reproduce

Expected behavior wmic.exe is called in the exposed API which may require wmic.exe on the %PATH%. https://github.com/kubernetes-csi/csi-proxy/blob/07be14dabebca5d1590e670f9a796fcfce44d6e6/pkg/os/system/api.go#L37

Kubernetes (please complete the following information):

Additional context

laozc commented 7 months ago

/assign @laozc

laozc commented 7 months ago

Fixed merged.