Trident无法创建快照、并显示"Cannot get claim from snapshot"
适用场景
NetApp Astra Trident
问题描述
kubectl apply
对于创建快照、将返回 创建的结果。
# kubectl apply -f snapshot.yaml
volumesnapshot.snapshot.storage.k8s.io/<NAME> created
kubectl describe volumesnapshot
显示快照创建失败并显示错误:
Failed to create snapshot content with error snapshot controller failed to update <NAME> on API server: cannot get claim from snapshot
- Snapshot-controller日志显示错误:
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)不在默认命名空间中。
- 未指定快照的命名空间。