Trident fails to create snapshot with "cannot get claim from snapshot"
Applies to
NetApp Astra Trident
Issue
kubectl apply
for snapshot creation returns result of created.
# kubectl apply -f snapshot.yaml
volumesnapshot.snapshot.storage.k8s.io/<NAME> created
kubectl describe volumesnapshot
shows the snapshot creation is failed with error:
Failed to create snapshot content with error snapshot controller failed to update <NAME> on API server: cannot get claim from snapshot
- snapshot-controller log shows error:
cannot get claim from snapshot [<NAME>]: [failed to retrieve PVC <PVC> from the lister: "persistentvolumeclaim \"<PVC>\" not found"] Claim may be deleted already. No need to remove finalizer on the claim.
- PersistentVolumeClaim (PVC) for the snapshot is not in default namespace.
- Namespace for the snapshot is not specified.