Describe the bug
We are in a kubernetes environment and when using the following command
cat <<EOF | kubectl exec -n trident -it trident-csi-xxx -- tridentctl import volume ontap-san trident_pvc_23c1a0aa_61a4_439a_bfa6_5f992d013935_5646 -f -
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
meta.helm.sh/release-name: xxx
meta.helm.sh/release-namespace: xxx
labels:
app.kubernetes.io/component: xxx
app.kubernetes.io/instance: xxx
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: xxx
helm.sh/chart: xxx
name: xxx
namespace: xxx
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: netapp-san
EOF
it is not importing the volume, but renaming and deleting it. If we look in the ONTAP System Manager, we see that a Volume was delete, but with a different name.
Environment
- Trident version: 22.07.0
- Trident installation flags used: via helmchart operator
- Container runtime: docker://20.10.17
- Kubernetes version: 1.22.9
- Kubernetes orchestrator: Rancher v2.6.6
- OS: Ubuntu 20.04.4 LTS]
- NetApp backend types: ONTAP SAN
Expected behavior
It should just import it, so when you do
kubectl exec -n trident -it trident-csi-xxx -- tridentctl get volume
you the volume you imported.
Describe the bug
We are in a kubernetes environment and when using the following command
it is not importing the volume, but renaming and deleting it. If we look in the ONTAP System Manager, we see that a Volume was delete, but with a different name.
Environment
Expected behavior
It should just import it, so when you do
kubectl exec -n trident -it trident-csi-xxx -- tridentctl get volumeyou the volume you imported.