proxmox-csi-plugin: MountVolume.MountDevice failed for volume The file /dev/disk/by-id/wwn-[hex] does not exist and no size was specified

Bug Report

I’m trying to volume_mount on a pod, and it’s giving this error:

  Warning  FailedMount             1s (x7 over 33s)  kubelet                  MountVolume.MountDevice failed for volume "pvc-c0f894e9-576b-404d-a270-86d20767d37d" : rpc error: code = Internal desc = format of disk "/dev/disk/by-id/wwn-0x5056432d49443033" failed: type:("ext4") target:("/var/lib/kubelet/plugins/kubernetes.io/csi/csi.proxmox.sinextra.dev/c58612b0a78f02c0fca6aa37f64ad7c7a45d6155add0c6dff22a898d428fc0a9/globalmount") options:("noatime,defaults") errcode:(exit status 1) output:(mke2fs 1.46.2 (28-Feb-2021)
The file /dev/disk/by-id/wwn-0x5056432d49443033 does not exist and no size was specified.

Description

What’s strange is that on proxmox the wwn is one: scsi3: local-zfs:vm-9999-pvc-c0f894e9-576b-404d-a270-86d20767d37d,backup=0,iothread=1,size=1G,wwn=0x5056432d49443033

But if I use talosctl to list /dev, wwn doesn’t match. This volume disk is mounting on the vm as sde, I saw that because before starting the pod sde wasn’t there:

❯ talosctl -n [REDACTED] list -l /dev | grep sd
[REDACTED]   Drw-------    0     0     0         Oct 24 01:59:54   sda
[REDACTED]   Drw-------    0     0     0         Oct 24 02:08:42   sdb
[REDACTED]   Drw-------    0     0     0         Oct 24 02:00:07   sdc
[REDACTED]   Drw-------    0     0     0         Oct 25 00:19:28   sde

❯ talosctl -n [REDACTED] list -l /dev/disk/by-id | grep sd
[REDACTED]   Lrwxrwxrwx   0     0     9         Oct 24 02:00:07   scsi-33000000024585f0a -> ../../sdc
[REDACTED]   Lrwxrwxrwx   0     0     9         Oct 25 00:19:28   scsi-330000000c5fb5a6d -> ../../sde <- not matching id
[REDACTED]   Lrwxrwxrwx   0     0     9         Oct 24 01:59:54   scsi-35056432d49443031 -> ../../sda
[REDACTED]   Lrwxrwxrwx   0     0     9         Oct 24 02:08:42   scsi-35056432d49443032 -> ../../sdb
[REDACTED]   Lrwxrwxrwx   0     0     9         Oct 24 02:00:07   wwn-0x3000000024585f0a -> ../../sdc
[REDACTED]   Lrwxrwxrwx   0     0     9         Oct 25 00:19:28   wwn-0x30000000c5fb5a6d -> ../../sde <- not matching id
[REDACTED]   Lrwxrwxrwx   0     0     9         Oct 24 01:59:54   wwn-0x5056432d49443031 -> ../../sda
[REDACTED]   Lrwxrwxrwx   0     0     9         Oct 24 02:08:42   wwn-0x5056432d49443032 -> ../../sdb

As you can see, wwn doesn’t match for some reason, should end with 3033.

Logs

Environment

  • Plugin version: ghcr.io/sergelogvinov/proxmox-csi-controller:v0.3.0
  • Kubernetes version:
Client Version: v1.28.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.3
  • Proxmox version: 8.0.4

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 22 (10 by maintainers)

Most upvoted comments

This issue was closed because it has been stalled for 14 days with no activity.