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
Trident fail to delete child FlexClone of a FlexClone #878
Comments
The issue seems to be reducible to the following sequence of actions (strictly on k8s entities): $ oc create -f pvc.yaml
persistentvolumeclaim/simple-pvc created
$ oc get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
simple-pvc Bound pvc-acefa31e-61f4-4bef-9e82-daf30a4d85c0 1Gi RWX trident-csi-fsx 3s
$ oc create -f snap.yaml
volumesnapshot.snapshot.storage.k8s.io/snapshot created
$ oc get volumesnapshot
NAME READYTOUSE SOURCEPVC SOURCESNAPSHOTCONTENT RESTORESIZE SNAPSHOTCLASS SNAPSHOTCONTENT CREATIONTIME AGE
snapshot true simple-pvc 296Ki csi-snapclass snapcontent-7d00e584-5ce6-40f2-b1f0-40f254845e3d 3s 3s
$ oc delete pvc simple-pvc
persistentvolumeclaim "simple-pvc" deleted
$ oc create -f restore.yaml
persistentvolumeclaim/restore-pvc-1 created
$ oc get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
restore-pvc-1 Bound pvc-4d92a2ea-02a7-404d-9f9d-054c7dd8361b 1Gi RWX trident-csi-fsx 2s
$ oc delete pvc restore-pvc-1
persistentvolumeclaim "restore-pvc-1" deleted
$ oc delete volumesnapshot snapshot
volumesnapshot.snapshot.storage.k8s.io "snapshot" deleted
# Doesn't converge Where the manifests are simply apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: simple-pvc
spec:
storageClassName: trident-csi-fsx
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshot
metadata:
name: snapshot
spec:
volumeSnapshotClassName: csi-snapclass
source:
persistentVolumeClaimName: simple-pvc
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: restore-pvc-1
spec:
dataSource:
name: snapshot
kind: VolumeSnapshot
apiGroup: snapshot.storage.k8s.io
storageClassName: trident-csi-fsx
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi |
Following this as an issue to investigate. |
If anyone is interested in the reproducer in kubevirt terms (I expected the reduced reproducer to be of more interest here):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using trident as backend for virtual machines with kubevirt, if one restore a volume of a VM and later on delete the VM, we are left with FlexClone without it parent, which require manual intervention with cli to resolve it
Environment
-d -n trident
To Reproduce
(On this stage we see the FlexClone from step 3 was deleted)
what we see in the backend is that the last FlexClone is left in offline state. And can't be deleted without doing a split.
When using this as part of our testing of OCP on AWS with FSx, we see this behavier,
and later on this block the deprovision of the FSx storage, as you can't delete the volumes from AWS.
Expected behavior
All resources should be deleted when the VM is deleted.
Additional context
The text was updated successfully, but these errors were encountered: