Tanzu Kubernetes ClusterへのCNSボリュームのマウントが失敗する
search cancel

Tanzu Kubernetes ClusterへのCNSボリュームのマウントが失敗する

book

Article ID: 432159

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

免責事項:これは英文の記事「CNS volumes fail to mount on Tanzu Kubernetes Cluster」の日本語訳です。
記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。

  • Podが ContainerCreating または Init 状態になっている
  • 問題のPodに対してkubectl describe すると以下のエラーが表示される:
    Warning  FailedAttachVolume  16s (x2 over 2m19s)    attachdetach-controller  AttachVolume.Attach failed for volume "pvc-###" : rpc error: code = Internal desc = Watch on cnsfileaccessconfig instance "<node_name>" timed out. Last seen error on the instance="Failed to query CNS volume: file:#### with error: rpc error: code = Internal desc = queryVolumeAsync failed for queryFilter: {{} [{{} file:####}] [] []  [] []   <nil> }. Err=time out for task Task:task-#### before response from CNS"

  • csi-controllerに以下のようなログが表示される:
    csi_handler.go:243] "Error processing" VolumeAttachment="csi-####" err="failed to attach: rpc error: code = Internal desc = Watch on cnsfileaccessconfig instance \"<node_name>\" timed out. Last seen error on the instance=\"Failed to query CNS volume: file:#### with error: rpc error: code = Internal desc = queryVolumeAsync failed for queryFilter: {{} [{{} file:####}] [] []  [] []   <nil> }. Err=time out for task Task:task-#### before response from CNS\""

Environment

vSphere Kubernetes Service

Cause

CSIコントローラがボリュームをクエリできません。

Resolution

この問題は、vCenter 8.0P07またはvCenter 9.0.2で解決されました。

Workaround

以下のコマンドによってcsi-controller deploymentを再起動します:

kubectl rollout restart deployment csi-controller -n vmware-system-csi