免責事項:これは英文の記事「CNS volumes fail to mount on Tanzu Kubernetes Cluster」の日本語訳です。
記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。
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_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\""vSphere Kubernetes Service
CSIコントローラがボリュームをクエリできません。
この問題は、vCenter 8.0P07またはvCenter 9.0.2で解決されました。
Workaround
以下のコマンドによってcsi-controller deploymentを再起動します:
kubectl rollout restart deployment csi-controller -n vmware-system-csi