node-disk-manager icon indicating copy to clipboard operation
node-disk-manager copied to clipboard

NVME mount points not being recognized on OpenSUSE 15.3

Open dborman-hpe opened this issue 3 years ago • 0 comments

What steps did you take and what happened: [A clear and concise description of what the bug is, and the sequence of operations performed / commands you ran.] I have NVME disks, and they are not being detected properly for filtering out mount points. The issue is in the getParentBlockDevice() routine at getParentBlockDevice

The code is looking for a /nvme/ component, like in the given example of:

/sys/devices/pci0000:00/0000:00:0e.0/nvme/nvme0/nvme0n1/nvme0n1p1

However, on my OpenSUSE 15.2 and 15.3 systems, the paths are different, for example from the NDM logs:

E0707 17:40:05.246852       7 osdiskexcludefilter.go:92] unable to configure os disk filter for mountpoint: /mnt/openebs-local, error: could not find parent device for /sys/devices/virtual/nvme-subsystem/nvme-subsys0/nvme0n1/nvme0n1p1

There is a directory for each NVME disk, not just a single /nvme/ directory:

# ls /sys/devices/virtual/nvme-subsystem
nvme-subsys0  nvme-subsys1  nvme-subsys2  nvme-subsys3  nvme-subsys4

What did you expect to happen: The NVME code needs to be expanded to handle /nvme-subsysX/ in addition to just /nvme/

Environment:

  • OpenEBS version: 3.2 (NDM 1.9.0)
  • Kubernetes version (use kubectl version): 1.20.15
  • Kubernetes installer & version: kubeadm
  • Cloud provider or hardware configuration: baremetal
  • Type of disks connected to the nodes: NVME
  • OS (e.g. from /etc/os-release): openSUSE Leap 15.3

dborman-hpe avatar Jul 08 '22 16:07 dborman-hpe