-
Bug
-
Resolution: Duplicate
-
Undefined
-
None
-
4.13
-
None
-
No
-
False
-
Description of problem:
FormatAndMountFailed when restore vpc volume with fstype xfs
Version-Release number of selected component (if applicable):
4.13.0-0.ci.test-2023-02-20-013242-ci-ln-1382kf2-latest
How reproducible:
Always
Steps to Reproduce:
1.Create storageclass with xfs allowVolumeExpansion: true apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: annotations: storageclass.kubernetes.io/is-default-class: "false" creationTimestamp: "2023-02-20T06:01:59Z" labels: addonmanager.kubernetes.io/mode: Reconcile app: ibm-vpc-block-csi-driver razee/force-apply: "true" name: ibmc-vpc-xfs resourceVersion: "142541" uid: 86230e94-d07f-4d90-b8ea-b21a83732ff2 parameters: csi.storage.k8s.io/fstype: xfs encrypted: "false" encryptionKey: "" profile: 10iops-tier region: "" resourceGroup: "" tags: "" zone: "" provisioner: vpc.block.csi.ibm.io reclaimPolicy: Delete volumeBindingMode: WaitForFirstConsumer 2.Create pvc/pod, pod is running 3.Create volumesnapshot/ restored pvc/pod oc get pv NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE pvc-a02fdca3-61e6-4e55-875f-d3d242496525 10Gi RWO Delete Bound openshift-cluster-csi-drivers/restore-pvc ibmc-vpc-xfs 6m23s pvc-a64302ad-fab0-4cfa-acd5-0015ce3e3701 10Gi RWO Delete Bound openshift-cluster-csi-drivers/pvc1 ibmc-vpc-xfs 54m oc get pods pod-restore 0/1 ContainerCreating 0 6m22s pod1 1/1 Running 0 54m 4.oc describe pods/pod-restore Warning FailedMount 4s (x5 over 12s) kubelet MountVolume.MountDevice failed for volume "pvc-a02fdca3-61e6-4e55-875f-d3d242496525" : rpc error: code = Internal desc = {RequestID: 0eadf6c4-8843-4a1a-8cbf-02e82bcc4d8a , Code: FormatAndMountFailed, Description: Failed to format '/dev/disk/by-id/virtio-0797-b7fd83a7-39dc-4' and mount it at '/var/lib/kubelet/plugins/kubernetes.io/csi/vpc.block.csi.ibm.io/a64bb670b9f1909d2c2e436c687c0ab202a2e0de2a9fff4ac0aa3f126d6ed07b/globalmount', BackendError: mount failed: exit status 32 Mounting command: mount Mounting arguments: -t xfs -o defaults /dev/disk/by-id/virtio-0797-b7fd83a7-39dc-4 /var/lib/kubelet/plugins/kubernetes.io/csi/vpc.block.csi.ibm.io/a64bb670b9f1909d2c2e436c687c0ab202a2e0de2a9fff4ac0aa3f126d6ed07b/globalmount Output: mount: /var/lib/kubelet/plugins/kubernetes.io/csi/vpc.block.csi.ibm.io/a64bb670b9f1909d2c2e436c687c0ab202a2e0de2a9fff4ac0aa3f126d6ed07b/globalmount: wrong fs type, bad option, bad superblock on /dev/vde, missing codepage or helper program, or other error. , Action: Please check if there is any error in POD describe related with volume attach}
Actual results:
Expected results:
Additional info:
- duplicates
-
OCPBUGS-16920 [ibm-vpc-block-csi-driver] xfs volume snapshot volume mount failed of "Filesystem has duplicate UUID"
- Closed