ONTAPで新しいiSCSI LIFを追加して古いiSCSI LIFを削除すると、「iSCSI login failed」というエラーでPODの再起動が失敗する
環境
NetApp Trident
問題
ONTAPで新しいiSCSI LIFを追加して古いiSCSI LIFを削除すると、PODの再起動が「iscsi login failed」エラーで失敗します。
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
次のコマンドを使用してポッドを再起動した場合にのみ失敗します。
kubectl get pod pod-name -o yaml | kubectl replace --force -f -
ただし、次のコマンドを使用すると、ポッドは正常に作成されます。
kubectl delete pod pod-name、の場合 kubectl create -f pod.yaml