You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
klog.V(4).Infof("Checking if disk %s is partitioned", diskID)
because PartitionDisk naively checks if any partition exists and erroneously detects the GPT 16MB reserved partition as one such partition. Result is that the UseMaximumSize partition doesn't get created and ListVolumeondisk unexpectedly returns one entry with empty string.
I0601 19:05:14.144201 5564 server.go:123] calling ListDiskIDs
I0601 19:05:16.365505 5564 server.go:122] calling PathExists with path "c:\\var\\lib\\kubelet\\plugins\\kubernetes.io\\csi\\pv\\pvc-ece81bd9-b1ed-4830-98ea-bf27958ef4bd\\globalmount"
I0601 19:05:16.366181 5564 server.go:238] calling GetVolumeFromMount with request &{Mount:c:\var\lib\kubelet\plugins\kubernetes.io\csi\pv\pvc-ece81bd9-b1ed-4830-98ea-bf27958ef4bd\globalmount}
E0601 19:05:16.694188 5564 server.go:251] failed GetVolumeFromMount error getting the volume for the mount c:\var\lib\kubelet\plugins\kubernetes.io\csi\pv\pvc-ece81bd9-b1ed-4830-98ea-bf27958ef4bd\globalmount, internal error error getting volume from mount. cmd: (Get-Item -Path c:\var\lib\kubelet\plugins\kubernetes.io\csi\pv\pvc-ece81bd9-b1ed-4830-98ea-bf27958ef4bd\globalmount).Target, output: , error: <nil>
I0601 19:05:16.694464 5564 server.go:59] calling PartitionDisk with diskID "5"
I0601 19:05:18.923412 5564 server.go:69] Initializing disk 5
I0601 19:05:21.396159 5564 server.go:79] Checking if disk 5 is partitioned
I0601 19:05:23.877015 5564 server.go:93] Disk 5 already partitioned
I0601 19:05:26.353187 5564 server.go:109] calling IsVolumeFormatted with request: &{VolumeId:}
E0601 19:05:26.353187 5564 server.go:114] volume id empty
What you expected to happen: PartitionDisk works, volume gets found, formatted, and mounted, and my Pod using the volume runs.
How to reproduce it:
use latest csi-proxy with a csi driver
Anything else we need to know?:
Environment:
CSI Driver version:
Kubernetes version (use kubectl version):
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:
The text was updated successfully, but these errors were encountered:
What happened: #128 (comment) (default to GPT instead of MBR) breaks PartitionDisk
csi-proxy/internal/server/disk/server.go
Line 79 in a0b516e
What you expected to happen: PartitionDisk works, volume gets found, formatted, and mounted, and my Pod using the volume runs.
How to reproduce it:
use latest csi-proxy with a csi driver
Anything else we need to know?:
Environment:
kubectl version
):uname -a
):The text was updated successfully, but these errors were encountered: