Error: "Failed to provision volume with StorageClass" when attempting to attach volumes in Kubernetes cluster
search cancel

Error: "Failed to provision volume with StorageClass" when attempting to attach volumes in Kubernetes cluster

book

Article ID: 414347

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • User is unable to attach volumes in Kubernetes cluster
  • The kubectl get pvc shows the below error in CSI,
    Warning  ProvisioningFailed 1s (x5 over 18s) <named-disk>_csi-vcd-controllerplugin-####-####-####-4537-####-##### failed to provision volume with StorageClass "<storage_class>": rpc error: code = Unknown desc = error while obtaining access token: [failed to refresh VCD client with the refresh token: [error connecting to vCD using token: API Error: 406: The request has invalid accept header: Invalid API version(s) requested: []. Supported API versions are: [40.0.0-alpha, 39.1, 39.0, 38.1, 38.0, 37.3 [D], 37.2 [D], 37.1 [D], 37.0 [D]] ([D] indicates deprecated versions)]]

Environment

  • VMware Cloud Director 10.6..x
  • CSE (Container Service Extension 4.3
  • CSI (Container Storage Interface) 1.5.0

Cause

Container Storage Interface 1.5.0 version is not compatible with the VMware Cloud Director 10.6.1.  

Resolution