K8s Pod が vSAN File Service 上の Persistent Volume のマウントに失敗 - "NodePublishVolume failed: An operation with the given Volume ID already exists"
search cancel

K8s Pod が vSAN File Service 上の Persistent Volume のマウントに失敗 - "NodePublishVolume failed: An operation with the given Volume ID already exists"

book

Article ID: 437025

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

免責事項: これは英文の記事「K8s pods fail to mount vSAN File Service PV with error: "NodePublishVolume failed: An operation with the given Volume ID already exists"」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。

K8sポッドがvSANファイルサービス上に永続ボリュームをマウントしようとすると、次のエラーが発生して失敗します。

# kubectl describe pod <POD_NAME>
Warning  FailedMount  47m (x6 over 48m) kubelet MountVolume.SetUp failed for volume "pvc-<id>" : rpc error: code = Aborted desc = NodePublishVolume failed: An operation with the given Volume ID <volume-id> already exists

Environment

  • vSphere Kubernetes Service
  • vSAN File Service

Cause

vSAN File Service の処理に異常が発生。

Resolution

まず最初に、Persistent Volume をマウントするPod が稼働する Worker Node に SSH でログインし、vSAN File Service への接続ができるかどうかを確認します。

curl -v telnet://<VSAN_FILE_SERVICE_IP>:2049 # Conenected or not

もしアクセスできない場合は、以下のナレッジベース記事を参照してください。

https://knowledge.broadcom.com/external/article/400625/

上記のKBの手順を実施しても問題が解決しない場合は、vSAN 観点での調査が必要なため新規にサポートケースを起票し、本ナレッジベース記事を参照として記載してください。