Problem: I am using Foreman 1.20 and creating VM’s on vSphere 6.7 This is a CentOS 7 VM, with kickstart files that have been used many times.
Issue: As soon as I press submit in Foreman, I immediately get an error stating "Unable to save - Failed to create a compute [nameofESXserver] (VMware) instance [hostnameIambuilding]: NoPermission.
When I look on the ESX server, the VM has been created (not powered on) .
Foreman logs - production.log shows no errors. I check the DHCP logs and nothing is listed for the VM I am trying to build.
If I wait 15 minutes or so, sometimes it works, and sometimes I get the same error. I was thinking there must be some sort of timeout I am missing, or I need to clear some variable.
I hope I’m not too vague, but this error crops up every 5 or 6 VMs we build.
Foreman & proxy version: 1.20
VCenter version: 6.5