Error when trying to create container volume on vSAN datastore CnsFault error: VSLM task failed
search cancel

Error when trying to create container volume on vSAN datastore CnsFault error: VSLM task failed

book

Article ID: 401698

calendar_today

Updated On:

Products

VMware vSAN

Issue/Introduction

  • When trying to create a Persistent Volume Claim on vSAN cluster you receive the error, "CnsFault error: VSLM task failed"
  • If you review the failed task you'll see further info: "A general system error occurred: Failed to get vsan cluster partition status. Won't be creating namespaces: nameSpacePath = /vmfs/volumes/vsan:######-######/fcd"

Environment

vCenter Server 7.x, 8.x
vSAN OSA
vSAN ESA

Cause

When Tanzu issues the create PVC request to the vSAN cluster the receiving ESXI host is unable to verify it's vSAN partition status and is unable to create files/folders

Resolution

  • Review vSAN skyline health for Network Partition Errors and resolve
  • If partition errors have been resolved and you can create files on the vSAN datastore, manually create the fcd folder
    • Open the vSphere Client and connect to your vCenter Server.
    • Locate and select the vSAN datastore where you want to create the folder.
    • Go to the "Monitor" tab and then select "Datastore".
    • Click on the "Files" tab and then click on the "New Folder" icon.
    • Enter the name for the new folder as "fcd" and click "OK".
  • Re-try the container create operation.

Additional Information

https://github.com/kubernetes-sigs/vsphere-csi-driver/issues/1416