Persistent volume is fails to attach with error: "The input volume <Volume handle ID> is not registered as a CNS volume"
search cancel

Persistent volume is fails to attach with error: "The input volume <Volume handle ID> is not registered as a CNS volume"

book

Article ID: 429152

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • pvc fails to attach to the pods with error "The input volume <Volume handle ID> is not registered as a CNS volume" seen in vsanvcmgmt logs of the vCenter.
  • csi-controller logs reports below errors:
    failed to detach disk <Volume handle ID> with err failed to detach cns volume: \"<Volume handle ID>
  • KB  Reconciling Discrepancies in the Managed Virtual Disk Catalog as well as  Persistent volume is failing to attach with Error: "The input volume <Volume handle ID> is not registered as a CNS volume" has already been performed but it did not resolve the issue.
  • In the vmfd file of the complaining disk, we do not find the cns.tag.
  • When csi-controller is trying to , it is fails with "Invalid Cns metadata":
    (*types.CnsBlockBackingDetails)(0xc002bf4680)({\n  CnsBackingObjectDetails: (types.CnsBackingObjectDetails) {\n   DynamicData: (types.DynamicData) {\n   },\n   CapacityInMb: (int64) 0\n  },\n  BackingDiskId: (string) (len=36) \"<ID>\",\n  BackingDiskUrlPath: (string) \"\",\n  BackingDiskObjectId: (string) \"\"\n }),\n Profile: ([]types.BaseVirtualMachineProfileSpec) <nil>,\n CreateSpec: (types.BaseCnsBaseCreateSpec) <nil>,\n VolumeSource: (types.BaseCnsVolumeSource) <nil>\n}\n. Err: failed to create volume with fault: \"(*types.LocalizedMethodFault)(0xc00577c820)({\\n DynamicData: (types.DynamicData) {\\n },\\n Fault: (types.CnsFault) {\\n  BaseMethodFault: (types.BaseMethodFault) <nil>,\\n  Reason: (string) (len=20) \\\"Invalid Cns metadata\\\"\\n },\\n LocalizedMessage: (string) (len=36) \\\"CnsFault error: Invalid Cns metadata\\\"\\n})\\n\""}
  • We see below entries in /var/log/vmware/vsan-health/vsanvcmgmt.log:
    <YYYY-MM-DD:Time> error vsanvcmgmtd[2473190] [vSAN@6876 sub=MetadataSerializerV2 opID=33ffe8ec] Invalid Cns metadata
    <YYYY-MM-DD:Time> error vsanvcmgmtd[2473190] [vSAN@6876 sub=FcdService opID=33ffe8ec] Failed to update metadata for volume: <ID> with error: N3cns12CnsExceptionE(Invalid Cns metadata)
    <YYYY-MM-DD:Time> error vsanvcmgmtd[2473190] [vSAN@6876 sub=Workflow opID=33ffe8ec] Workflow current action has fault (vim.fault.CnsFault)

Environment

VMware Cloud Native Storage

Cause

The Cloud Native Storage (CNS) tag was missing from the First Class Disk (FCD) metadata. This tag is a required attribute for a disk to be successfully registered and recognized as a CNS volume.
The discrepancy likely occurs during the VMDK-to-FCD conversion via the registerVolume workflow, where the cns.tag failed to persist in the metadata file. Without this tag, the system cannot validate the volume, leading to PVC attachment failures.

Resolution

If you encounter the issue described above, reach out to Broadcom Support.