csi-driver-smb icon indicating copy to clipboard operation
csi-driver-smb copied to clipboard

smb mount fails with mount error(5): Input/output error

Open vignesh-hbk opened this issue 10 months ago • 13 comments

What happened:

I have issues mounting a NetApp SMB share onto my ubuntu 22.04 machine using csi-smb-driver. The storage has AD auth enabled and with smbclient, I am able to connect and authenticate to the storage. However when I try to mount using CIFS or CSI-smb-driver, I am running into issues.

Smb logs : E0120 09:59:29.001256 1 utils.go:81] GRPC error: rpc error: code = Internal desc = volume(smb-01-vol) mount "//xxxx/yyy" on "/var/lib/kubelet/plugins/kubernetes.io/csi/smb.csi.k8s.io/9b400ffc4472d1e8195452d738fac44a1ff7719ad65879f69fda6f55599971b1/globalmount" failed with mount failed: exit status 32 Mounting command: mount Mounting arguments: -t cifs -o domain=fmee, //xxx/yyy /var/lib/kubelet/plugins/kubernetes.io/csi/smb.csi.k8s.io/9b400ffc4472d1e8195452d738fac44a1ff7719ad65879f69fda6f55599971b1/globalmount Output: mount error(5): Input/output error Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg) dmesg log [ 39.528383] kernel: FS-Cache: Netfs 'cifs' registered for caching [ 39.638853] kernel: Key type cifs.spnego registered [ 39.638869] kernel: Key type cifs.idmap registered [ 39.639378] kernel: CIFS: Attempting to mount \xxx\yyy [ 39.960848] kernel: kauditd_printk_skb: 53 callbacks suppressed [ 39.960852] kernel: audit: type=1400 audit(1737111830.818:65): apparmor="DENIED" operation="capable" profile="/usr/sbin/cupsd" pid=1180 comm="cupsd" capability=12 capname="net_admin" [ 40.188282] kernel: CIFS: VFS: \xxx\yyy Send error in SessSetup = -5 [ 40.189072] kernel: CIFS: VFS: cifs_mount failed w/return code = -5 [ 40.746703] kernel: audit: type=1400 audit(1737111831.602:66): apparmor="DENIED" operation="capable" profile="/usr/sbin/cups-browsed" pid=1259 comm="cups-browsed" capability=23 capname="sys_nice" [ 44.913797] kernel: loop12: detected capacity change from 0 to 8 (edited)

What you expected to happen:

Mount to be successful

How to reproduce it:

Try mounting a SMB share on Ubuntu 22.04 using csi-smb driver.

Anything else we need to know?:

I am able to connect and authenticate and see the shares using smbclient on the same server. But when attempting to mount using CIFS or smb-driver, it fails with the below error.

Environment:

  • CSI Driver version: v1.11.0
  • Kubernetes version (use kubectl version): v1.31.3+k3s1
  • OS (e.g. from /etc/os-release): Ubuntu 22.04

vignesh-hbk avatar Jan 23 '25 06:01 vignesh-hbk

PRETTY_NAME="Ubuntu 22.04.5 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.5 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy

vignesh-hbk avatar Jan 23 '25 07:01 vignesh-hbk

Could someone help with this?

vignesh-hbk avatar Jan 28 '25 17:01 vignesh-hbk

does manual mount work on the node?

mount -t cifs -o domain=fmee, //xxx/yyy /mountpath

andyzhangx avatar Jan 30 '25 03:01 andyzhangx

@andyzhangx - no - it does not. See the below error. Output: mount error(5): Input/output error Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg).

However, when we use smbclient, we are able to authenticate and list the shares etc.

vignesh-hbk avatar Jan 31 '25 16:01 vignesh-hbk

what is smbclient?

andyzhangx avatar Feb 01 '25 02:02 andyzhangx

@andyzhangx - It's an ftp-like client to access SMB/CIFS resources on servers - https://www.samba.org/samba/docs/4.9/man-html/smbclient.1.html

vignesh-hbk avatar Feb 03 '25 05:02 vignesh-hbk

@andyzhangx - Could you help with this issue? Please let me know if you need further info. Thanks.

vignesh-hbk avatar Feb 05 '25 09:02 vignesh-hbk

@andyzhangx : Could you please help us with an input on this to proceed further in order to mount the storage on the Ubuntu server using CSI-SMB driver?

Akash-HBK avatar Feb 07 '25 08:02 Akash-HBK

smb csi driver only uses standard smb driver on linux, and I see smbclient is an unmaintained version, not sure how to leverage that smbclient in smb csi driver.

andyzhangx avatar Feb 07 '25 08:02 andyzhangx

@andyzhangx - I mentioned smbclient only to indicate that there are no connectivity or authentication issues. The core issue is that we are unable to mount the smb drive using the csi-smb driver.

vignesh-hbk avatar Feb 10 '25 09:02 vignesh-hbk

point is this smb csi driver only uses mount -t cifs command to mount file share.

andyzhangx avatar Feb 10 '25 10:02 andyzhangx

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar May 11 '25 11:05 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar Jun 10 '25 11:06 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

k8s-triage-robot avatar Jul 10 '25 12:07 k8s-triage-robot

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Jul 10 '25 12:07 k8s-ci-robot