Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent mount failures on xfs volumes using v2.3.0-rc.3 #1189

Closed
bathina2 opened this issue Jul 23, 2021 · 4 comments · Fixed by #1204
Closed

Inconsistent mount failures on xfs volumes using v2.3.0-rc.3 #1189

bathina2 opened this issue Jul 23, 2021 · 4 comments · Fixed by #1204
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@bathina2
Copy link

bathina2 commented Jul 23, 2021

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug

What happened:
Our plan was to test the latest driver's xfs capabilities.

  • Using the v2.3.0-rc.3 we were able to dynamically provision a CSI xfs volume.
  • Using the vslm global object manager we can take a snapshot using the CreateSnapshot method.
  • We are also able to create a volume from this snapshot using the CreateDiskFromSnapshot method.

The issues arise when we try to mount the newly created volume. We statically create a PV, PVC and a Pod to use this new volume. However the Pod is stuck in the ContainerCreating state with the following error-

MountVolume.MountDevice failed for volume "<pvname>" : rpc error: code = Internal desc = error in formating and mounting volume. Parameters: {20d6625e-dac2-4952-9ef4-dcce53a0c0d0 xfs /var/vcap/data/kubelet/plugins/kubernetes.io/csi/pv/<pvname>/globalmount [] false} err: mount failed: exit status 32

mount: /var/vcap/data/kubelet/plugins/kubernetes.io/csi/pv/kio-d08227bdeb2a11ebba85deec1d624672-0/globalmount: wrong fs type, bad option, bad superblock on /dev/sdm, missing codepage or helper program, or other error.

The interesting this is that this error isn't consistent. On some nodes it succeeds in mounting the volume and others it doesn't.

What you expected to happen:

The expectation is that this mount succeeds all the time. There is no discernible difference between the nodes. Also the error message is vague.

How to reproduce it (as minimally and precisely as possible):

As mentioned above we use the v2.3.0-rc.3 release for the driver and the syncer on the controller and the driver running on the nodes. Using the vlsm GOM we do a CreateSnapshot and a CreateDiskFromSnapshot to get a copy of the volume. Then we attempt to use this volume to do static provisioning.

Anything else we need to know?:

Environment:

  • csi-vsphere version: v2.3.0-rc.3
  • vsphere-cloud-controller-manager version: v2.3.0-rc.3
  • Kubernetes version: v1.19.3+vmware.1
  • vSphere version: 7.0.1.00000
  • OS (e.g. from /etc/os-release): VMware Photon OS/Linux
  • Kernel (e.g. uname -a): 4.19.150-1.ph3
  • Install tools: TKG 1.2.1
  • Container runtime: containerd://1.4.1
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jul 23, 2021
@xing-yang
Copy link
Contributor

You may be running into this issue: container-storage-interface/spec#482

We'll try to fix this when implementing CSI snapshot.

@xing-yang
Copy link
Contributor

CC @lintongj @deepakkinni

@bathina2
Copy link
Author

So i was able to avoid the mount failure by using the nouuid mount option in the storage class-

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: xfs
provisioner: csi.vsphere.vmware.com
reclaimPolicy: Delete
volumeBindingMode: Immediate
parameters:
  csi.storage.k8s.io/fstype: "xfs"
mountOptions:
  - nouuid

This seems like a reasonable workaround for now. @xing-yang your thoughts?

@xing-yang
Copy link
Contributor

@bathina2 This looks fine as a workaround. Thanks for testing this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants