When trying to create a volume with the vSphere thin-csi storageClass provision fails

Solution Verified - Updated -

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • VMware vSphere

Issue

  • When trying to create a volume through the thin-csi storageClass the provisioning fails with the following message:
29s         Warning   ProvisioningFailed     persistentvolumeclaim/jenkins     failed to provision volume with StorageClass "thin-csi": rpc error: code = Internal desc = failed to create volume. Error: POST "/vsanHealth": 503 Service Unavailable

Resolution

Check if the vSAN health Service is reachable:

# curl -k https://vicente.mblach.lab/vsanHealth
no healthy upstream

If it fails with no healthy upstream check in the vSphere platform that the service is up and running.

If the service is down, start the vSAN health Service.

If the service fails to start, contact VMware support.

Root Cause

The CSI Driver checks that the vSAN health Service is up and running before proceeding with volume creation.

If the service vSAN health Service is down at volume creation, the CSI driver will fail to create the volume.

Diagnostic Steps

Check that the vSAN health Service is reachable:

# curl -k https://vicente.mblach.lab/vsanHealth
no healthy upstream

If the output returns no healthy upstream proceed with Resolution steps.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments