Skip to content

Panic on startup with csi-proxy version v1.3.0/v2.0.0-alpha.2 in CSI Driver #411

@ConnorJC3

Description

@ConnorJC3

What happened:

Hi, I'm a maintainer on the EBS CSI Driver. We recently tried to bump our version of the csi-proxy library from v1.2.1 to v1.3.0. Upon testing this bump, we find the new WMI library included causes our driver to repeatedly crash on startup with a panic:

$ kubectl -n kube-system logs -f ebs-csi-node-windows-lxfxq             
Defaulted container "ebs-plugin" out of: ebs-plugin, node-driver-registrar, liveness-probe
panic: couldn't initialize the WmiSessionManager: Invalid class string

goroutine 1 [running]:
github.com/microsoft/wmi/pkg/wmiinstance.NewWmiSessionManager()
        /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver/wmi/pkg/wmiinstance/WmiSessionManager.go:32 +0x6b
github.com/microsoft/wmi/pkg/base/session.init.0()
        /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver/wmi/pkg/base/session/session.go:28 +0x6d

What you expected to happen:

Upgrading the library shouldn't cause the driver to panic.

How to reproduce it:

Working on getting easy repro steps, but attempting to use the csi-proxy in a CSI Driver on a eksctl-created Windows cluster should cause the issue.

Anything else we need to know?:

Unfortunately, this comes from a panic here, which is in a function run via init() here. So there's a good chance we'll need to report this upstream.

Environment:

  • CSI Driver version: N/A
  • Kubernetes version (use kubectl version): 1.33 (doesn't seem to matter)
  • OS (e.g. from /etc/os-release): Windows Server 2022 Core (Official EKS AMI ami-073ce66bebaa6242b in us-west-2)
  • Kernel (e.g. uname -a): N/A
  • Install tools: N/A
  • Others: N/A

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions