dsList = vmutils.get_datastores(si)
moveDS = getDS(dsList, targetDS)
# Finding source VM
vm = vmutils.get_vm_by_name(si, vm_name)
# relocate spec to migrate
relocate_spec = vim.vm.RelocateSpec(datastore=moveDS)
# does the actual migration to host
Output suggest that the datastore is found since it is returned the datastore name and ID however when the task is sent to vCenter an error is returned: "Unable to access the VM configuration: Unable to access file [datastore name]"
The error suggests it is trying to move files from the destination datastore instead of the source. Am I missing something basic here?