免責事項:これは英文の記事「Attaching of PVCs to TKC VMs or Service VMs does not work and also error "ReconcileCnsVolumeMetadata: Failed to delete entry in CNS for instance with name" is seen in vSphere Namespace's Events」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。
root@SV [ ~ ]# kubectl get events -n <vsphere-namespace>
LAST SEEN TYPE REASON OBJECT MESSAGE
1m Warning UpdateFailed cnsvolumemetadata/[...] ReconcileCnsVolumeMetadata: Failed to delete entry in CNS for instance with name "<TKC>-etcd-0" and entity type "POD" in the guest cluster "#######-####-####-####-############". Requeuing request.
2m Warning UpdateFailed cnsvolumemetadata/[...] ReconcileCnsVolumeMetadata: Failed to delete entry in CNS for instance with name "<TKC>-etcd-1" and entity type "POD" in the guest cluster "#######-####-####-####-############". Requeuing request.
3m Warning UpdateFailed cnsvolumemetadata/[...] ReconcileCnsVolumeMetadata: Failed to delete entry in CNS for instance with name "<TKC>-etcd-2" and entity type "POD" in the guest cluster "#######-####-####-####-############". Requeuing request.
root@SV [ ~ ]# kubectl logs -n vmware-system-csi vsphere-csi-controller-#########-##### vsphere-syncer | grep "op timeout"
{"level":"info","time":"####-##-##T##:##:##.000Z","caller":"volume/listview.go:253","msg":"op timeout. context deadline exceeded. using listview context without a timeout","TraceId":"########-####-####-####-############"}
VMware vSphere 8.0 / 9.0
VMware vSphere Kubernetes Service
vsphere-csi-controller は、まれな状況においてタスクの完了を検知できない場合があります。
本問題は、将来の vCenter リリースにて修正される予定です。
回避策
本問題の回避策として、Supervisor 上で vsphere-csi-controller を再起動してください。
# kubectl rollout restart deployment -n vmware-system-csi vsphere-csi-controller
環境の規模によっては、処理が追いつくまでに数分(約 5~15 分)程度お待ちください。
本問題は、Kubernetes における将来の upstream 版 vsphere-csi-driver においても修正されています。詳細については、以下をご参照ください。https://github.com/kubernetes-sigs/vsphere-csi-driver/pull/3584