-
Notifications
You must be signed in to change notification settings - Fork 245
Closed
Labels
Description
Describe the bug
A CSI clone works by creating an ephemeral snapshot behind the scenes.
This snapshot is not cleaned up potentially resulting in hitting the snapshot limit for FSx:
https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/snapshots-ontap.html (1023 per volume)
Environment
Provide accurate information about the environment to help us reproduce the issue.
- Trident version: v24.02.0
- Trident installation flags used: [e.g. -d -n trident --use-custom-yaml]
- Container runtime: [e.g. Docker 19.03.1-CE]
- Kubernetes version: [e.g. 1.15.1]
- Kubernetes orchestrator: OpenShift 4.15
- Kubernetes enabled feature gates: [e.g. CSINodeInfo]
- OS: [e.g. RHEL 7.6, Ubuntu 16.04]
- NetApp backend types: ONTAP
- Other:
To Reproduce
- Create PVC
- Clone the above PVC
kind: PersistentVolumeClaim
metadata:
name: simple-pvc
spec:
storageClassName: trident-csi-fsx
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: clone
spec:
accessModes:
- ReadWriteMany
storageClassName: trident-csi-fsx
resources:
requests:
storage: 1Gi
dataSource:
kind: PersistentVolumeClaim
name: simple-pvc
Expected behavior
Ephemeral snapshot removed
Additional context
Snapshot remains:
FsxIdxxxxxxx::> vol snapshot show
---Blocks---
Vserver Volume Snapshot Size Total% Used%
-------- -------- ------------------------------------- -------- ------ -----
svm1 svm1_root
hourly...
trident_pvc_3df42396_be95_4f94_a7f9_f97bb39c5659
20240418T141852Z 176KB 0% 36%
...