RKE 版本:
2.6.8
背景
之前在RKE1配置了树内vSphere存储,后面想迁移到树外vSphere存储,树外教程是按照官方教程部署的(打开了Migration功能)将 vSphere 树内卷迁移到 CSI | Rancher
需求
新创建的PVC基于新的树外vSphere storageClass可以正常执行扩容操作
但是基于之前已经创建过的树内vSphere storageClass的PVC却无法正常执行扩容操作,PVC的事件日志如下:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Provisioning 40s csi.vsphere.vmware.com_vsphere-csi-controller-86c485444d-8dssm_25455ef9-b2ef-4ee8-aa8f-f14ea0d96a99 External provisioner is provisioning volume for claim "default/test-new2"
Normal ExternalProvisioning 33s (x2 over 40s) persistentvolume-controller waiting for a volume to be created, either by external provisioner "csi.vsphere.vmware.com" or manually created by system administrator
Normal ProvisioningSucceeded 32s csi.vsphere.vmware.com_vsphere-csi-controller-86c485444d-8dssm_25455ef9-b2ef-4ee8-aa8f-f14ea0d96a99 Successfully provisioned volume pvc-758a4f33-571b-43d8-ac66-e4ce70e4753c
Normal ExternalExpanding 8s volume_expand CSI migration enabled for kubernetes.io/vsphere-volume; waiting for external resizer to expand the pvc
Normal Resizing 3s (x5 over 8s) external-resizer csi.vsphere.vmware.com External resizer is resizing volume pvc-758a4f33-571b-43d8-ac66-e4ce70e4753c
Warning VolumeResizeFailed 3s (x5 over 8s) external-resizer csi.vsphere.vmware.com resize volume "pvc-758a4f33-571b-43d8-ac66-e4ce70e4753c" by resizer "csi.vsphere.vmware.com" failed: rpc error: code = Unimplemented desc = cannot expand migrated vSphere volume. :"[IRPOX01-vSANDataStore] 847ad064-6c17-b28b-4793-b8cef69e035e/0d8f84e1042142569ed0135c43d3120d.vmdk"