Error: only dynamically provisioned pvc can be resized and the storageclass that provisions the pvc must support resize
book
Article ID: 408984
calendar_today
Updated On:
Products
VMware Telco Cloud Automation
Issue/Introduction
Attempting to resize a PVC fails with the message:
forbidden: only dynamically provisioned pvc can be resized and the storageclass that provisions the pvc must support resize
The cluster was deployed through versions of TCA prior to 3.2
The vsphere-csi cluster addon was removed and re-installed, and the default configuration was accepted.
Environment
3.2
Cause
Previous versions of TCA used the default storageclass name of 'vsphere-sc'. The default name is now 'vsphere-csi'.
By removing and re-installing the addons, unless the default name of the storageclass is changed, the new storageclass will have the name 'vsphere-csi'.
Existing PVCs will still be referencing the previous storageclass, which was removed with the addon.
Resolution
Remove and re-install the vsphere-csi addon, updating the storage class name to the expected name, or
Create a new storageclass
SSH to the affected cluster
Output the configuration of the existing storageclass to yaml
kubectl get sc <NAME> -o yaml > <FILENAME>
Edit the 'name' field in the output file to match what is expected