Bug 2029414 - Alibaba Disk snapshots with XFS filesystem cannot be used
Summary: Alibaba Disk snapshots with XFS filesystem cannot be used
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.10.0
Assignee: Jan Safranek
QA Contact: Rohit Patil
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-06 12:57 UTC by Jan Safranek
Modified: 2022-03-10 16:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:32:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift alibaba-cloud-csi-driver pull 6 0 None open Bug 2029414: UPSTREAM: 570: Fix snapshot recover disks mount 2021-12-07 16:22:38 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:32:33 UTC

Description Jan Safranek 2021-12-06 12:57:42 UTC
It is not possible to restore a snapshot of a XFS volume and use it on the same node as the original volume.

Steps to reproduce:

1. Create a StorageClass with csi.storage.k8s.io/fstype: xfs.
2. Create PVC A + Pod A using it, store some data on the provisioned volume.
3. Stop the Pod A
4. Take a snapshot of the PVC A, restore it into a new volume as PVC B.
5. Run both Pod A (with PVC A) and Pod B (with PVC B) on the same node.

Actual result: one of the pods can't be started:

MountVolume.MountDevice failed for volume "pvc-25a7129e-2cd7-4170-9050-550057ed0e20" : rpc error: code = Internal desc = mount failed: exit status 32
Mounting command: mount
Mounting arguments: -t xfs -o shared,defaults /dev/vde /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-25a7129e-2cd7-4170-9050-550057ed0e20/globalmount
Output: mount: /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-25a7129e-2cd7-4170-9050-550057ed0e20/globalmount: wrong fs type, bad option, bad superblock on /dev/vde, missing codepage or helper program, or other error.


Kernel says:

[17567.886004] XFS (vde): Filesystem has duplicate UUID b5820d11-d42d-4fc1-8e4a-ae431b33039d - can't mount


Expected result: both pods can run.

Comment 1 Jan Safranek 2021-12-06 12:58:16 UTC
This has been fixed upstream in https://github.com/kubernetes-sigs/alibaba-cloud-csi-driver/pull/570. We need to backport the PR.

Comment 2 Jan Safranek 2021-12-06 13:04:17 UTC
This needs to be fixed before declaring the CSI driver GA in 4.10.

Comment 9 errata-xmlrpc 2022-03-10 16:32:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0056


Note You need to log in before you can comment on or make changes to this bug.