Problem:
I am seeing this error when building a VM from Template via Foreman 1.15.6 (running on CentOS 7.4).
[app] [E] Unprocessable entity Host::Managed (id: new):
| Failed to create a compute SGP vCentre (VMware) instance my host.mydomain.com: undefined method `resourcePool' for nil:NilClass
Expected outcome:
The builds should complete as expected. We have other Compute Resources defined pointing to our legacy ESX 6.0.0 environment, these all build without issue. We’d expect the build to complete on EXS 6.5.0.
Foreman and Proxy versions:
Foreman 1.15.6
Proxy 1.15.6
ESX 6.5.0
Foreman and Proxy plugin versions:
foreman-vmware-1.15.6
Other relevant data:
NoMethodError: undefined method
resourcePool’ for #RbVmomi::VIM::Folder:0x007f1eb233adb0`
We confirmed the authenticating user defined in the Compute Resource has sufficient permissions on ESX (also tried as admin). We are not using Resource Pools in our environment. We tried creating one to test but it was not visible from the Foreman UI drop-down and resulted in the same message when attempting to build. We’ve waited several minutes and re-attempted the build but at no point are we able to build on ESX 6.5.
Please let me know if further information is needed.