VCF Workload Domain Creation Fails Due to CannotCreateFile Error on vSAN Datastore
search cancel

VCF Workload Domain Creation Fails Due to CannotCreateFile Error on vSAN Datastore

book

Article ID: 424125

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer

Issue/Introduction

During Workload Domain deployment or expansion within VMware Cloud Foundation (VCF), the orchestration process fails during the datastore availability validation task.

 

The following error strings are observed in the VCF-OPS  UI:

Message: Failed to create file inside datastore datastore-## of datacenter
datacenter-#
Remediation Message: Check whether datastore datastore-##of datacenter
datacenter-## is accessible

  • In SDDCManager /var/log/vmware/vcf/domainmanager/domaianmanager.log   we may see errors similar to below: 

Log Snippet : 

ERROR [vcf_dm,693a657ff86bb7f95fbc3c6d0b46a170,c9e7] [c.v.e.s.c.c.v.vsphere.VcManagerBase,dm-exec-15]  FileFault exception while making a new Directory:
com.vmware.vim.binding.vim.fault.CannotCreateFile: Cannot complete file creation operation.
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
YYYY-MM-DD06:32:31.070+0000 ERROR [vcf_dm,693a657e914dae050796c9a5e673ee41,c601] [c.v.e.s.o.model.error.ErrorFactory,dm-exec-28]  [JI6R3V] FAILED_TO_CREATE_FILE_INSIDE_DATASTORE Failed to create file inside datastore datastore-## of datacenter datacenter-#
        com.vmware.evo.sddc.orchestrator.exceptions.OrchTaskException: Failed to create file inside datastore datastore-## of datacenter datacenter-#
        at com.vmware.evo.sddc.common.services.storage.actions.DatastoreAvailabilityValidationAction.execute(DatastoreAvailabilityValidationAction.java:102)
        at com.vmware.evo.sddc.common.services.storage.actions.DatastoreAvailabilityValidationAction.execute(DatastoreAvailabilityValidationAction.java:39)
        at com.vmware.evo.sddc.orchestrator.platform.action.FsmActionState.invoke(FsmActionState.java:66)
 
  • In VCSA  /var/log/vmware/vpxd/vpxd.log  we may see errors similar to below: 
 
Log Snippet : 

error vpxd[19801] [Originator@6876 sub=Default opID=2f8a494] [VpxLRO] -- ERROR lro-107140 -- 52203526-2461-57b1-92d6-21ab3bc2fa30(52e9f88e-9f9c-539d-5d67-07adaf4a527b) -- FileManager -- vim.FileManager.makeDirectory: vim.fault.CannotCreateFile
Result:
--> (vim.fault.CannotCreateFile)
faultCause = (vmodl.MethodFault) null,
faultMessage = (vmodl.LocalizableMessage) [
(vmodl.LocalizableMessage) {
key = "vob.vsan.vsanprovider.object.creation.failed",
arg = unset,
message = "Failed to create object."
},
(vmodl.LocalizableMessage) {
key = "vob.vsan.clomd.needMoreFaultDomains2",
arg = (vmodl.KeyAnyValue) [
(vmodl.KeyAnyValue) {
key = "1",
value = "1"
},
(vmodl.KeyAnyValue) {
key = "2",
value = "2"
}
],
message = "There are currently 1 usable fault domains. The operation requires 2 more usable fault domains."
}
],
file = "[vSAN-Datstore] vcf-test-"
msg = "Received SOAP response fault from [kcs: p:00007faf8c5b9d50, PIPE:/var/run/envoy-hgw/hgw-pipe>, /hgw/host-28/vpxa>]: MakeDirectory
Received SOAP response fault from [<SSL(<io_obj t:N7Vmcore6System19TCPSocketObjectAsioE, h:18, <TCP '127.0.0.1 : 49978'>, <TCP '127.0.0.1 : 443'>>), /sdk>]: makeDirectory
Cannot complete file creation operation."
-->
Args:
--> Arg name:
"[Datastore-name] vcf-domain"
--> Datacenter:
'vim.Datacenter:datacenter-#'
--> createParentDirectories:
true

info vpxd[19797] [Originator@6876 sub=vpxLro opID=11fcf212] [VpxLRO] -- BEGIN lro-107141 -- SessionManager -- vim.SessionManager.logout -- 52203526-2461-57b1-92d6-21ab3bc2fa30(52e9f88e-9f9c-539d-5d67-07adaf4a527b)

Environment

VMware Cloud Foundation 9.x

Cause

The Workload Domain creation failed due to  insufficient fault domains on vSAN Datastore 

Resolution

To restore vSAN cluster communication and satisfy the storage policy requirements

Please follow the steps mentioned :  "There are currently [X] usable fault domains. The operation requires [Y] more usable fault domains" in vSAN.

If you encounter any difficulties, please raise a case with the Broadcom support team.

Additional Information

Verify the vSAN transport layer end-to-end MTU matching parameters. Ensure a uniform Jumbo Frame specification of 9000 is configured uniformly across all host VMkernel ports (vmknic), Distributed Virtual Switches, and physical switch interface ports assigned to vSAN traffic to prevent silent network drops during large object sync transactions.