Restart of POD fails with error iSCSI login failed after adding new iSCSI LIFs and removing old iSCSI LIFs in ONTAP
Applies to
NetApp Trident
Issue
Restart of POD fails with "iSCSI login failed" error after adding new iSCSI LIFs and removing old iSCSI LIFs in ONTAP.
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedMount 106s (x47 over 97m) kubelet MountVolume.MountDevice failed for volume "pvc-name" : rpc error: code = Internal desc = rpc error: code = Internal desc = failed to stage volume: iSCSI login failed
It fails only when restart a POD using following command.
kubectl get pod pod-name -o yaml | kubectl replace --force -f -
But, using following commands, POD creates successfully.
kubectl delete pod pod-name, then kubectl create -f pod.yaml
