PersistentVolumeClaim resizing fails with "volume plugin does not support resize" on vSphere

Solution Verified - Updated -

Issue

  • When I was trying to expand the existing PVC, I've got an error and this happens even if the AllowVolumeExpansion flag is set to TRUE in the StorageClass:

    Could not save persistent volume claim 'jenkins'
    Reason: persistentvolumeclaims "jenkins" is forbidden: volume plugin does not support resize"
    [..]
    $ oc describe sc vsphere-standard
    Name:                  vsphere-standard
    IsDefaultClass:        Yes
    Annotations:           storageclass.kubernetes.io/is-default-class=true
    Provisioner:           kubernetes.io/vsphere-volume
    Parameters:            datastore=EXAMPLE_Datastore
    AllowVolumeExpansion:  True
    MountOptions:          <none>
    ReclaimPolicy:         Delete
    VolumeBindingMode:     Immediate
    Events:                <none>
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 3.11
    • 4
  • In-tree vSphere volumes

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content