vmware / pyvmomi-community-samples

A place for community contributed samples for the pyVmomi library.
Apache License 2.0
1.02k stars 922 forks source link

Create VM failed with error 'Cannot Create File' #303

Open tonardo2015 opened 8 years ago

tonardo2015 commented 8 years ago

Hi Expert,

Anyone can help looking into this failure? We randomly run into this failure and we'd like to know how to avoid it or fix it. Thanks a lot!

The method we used to create virtual machine as below: task_info = vm_data['vmFolder'].CreateVM_Task(config=config, pool=vm_data['resourcePool'], host=vm_data['esxiHost'])

Below is the run log and exception:

10/26/2016 21:36:29 INFO Initiate Create VM Task 10/26/2016 21:36:29 INFO Task State: running 10/26/2016 21:36:34 ERROR Task State: error 10/26/2016 21:36:34 ERROR error.....: (vim.fault.CannotCreateFile) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], msg = 'Cannot complete file creation operation.', faultCause = , faultMessage = (vmodl.LocalizableMessage) [ (vmodl.LocalizableMessage) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], key = 'com.vmware.esx.hostctl.default', arg = (vmodl.KeyAnyValue) [ (vmodl.KeyAnyValue) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], key = 'reason', value = 'Hostsvc::osfs::CreateDirectory : Failed to create directory CycloneVirtualMachineTest (Cannot Create File)' } ], message = 'Operation failed, diagnostics report: Hostsvc::osfs::CreateDirectory : Failed to create directory CycloneVirtualMachineTest (Cannot Create File)' } ], file = 'Hostsvc::osfs::CreateDirectory : Failed to create directory VirtualMachineTest (Cannot Create File)'

praveenkumarudatha17 commented 2 years ago

same issue with me also