Bug #10912
closedfailed to create vm: undefined method `resourcePool' for nil:NilClass
Description
This is similar to http://projects.theforeman.org/issues/10151 but altering the code like http://projects.theforeman.org/projects/foreman/repository/revisions/7087017cbaff07489694cf270447336854334ebb/diff/app/models/compute_resources/foreman/model/vmware.rb doesn't change the result.
I have two vcenters in two datacenters, dfw and ord. I have a 1.9.0-develop install of katello+foreman in dfw working with the dfw vcenter - I can add the vcenter as a compute resource and build VMs on it from pxe boot to puppet run.
I cannot do this in the ord vcenter. I did a nice clean 1.8.2 install of katello+foreman and was able to use node.rb to report facts to it to create new hosts from. But, when I go to build a new VM, I get the error in the subject.
I tried using the hammer cli but get the same error.
I tried reinstalling as a "katello capsule" and initiating the build from the working dfw vcenter. I get the same exact error.
I asked the hosting provider support to check logs - they see this authenticating but nothing afterward. There is no firewall filtering to the vcenter from either vcenter network. They also opened up the permissions to admin for the vcenter user being used for the API calls just to eliminate any permissions issues, but testing yielded the same result.
Using tcpdump, requests definitely are sent to the vcenter server when I click the submit button for a new host in katello.
I think I set debug logging on before reproducing. I ran foreman-debug and had it upload the output file to theforeman.org:
A debug file has been created: /tmp/foreman-debug-D7FyW.tar.xz (2291156 bytes)
Thanks!
Updated by Dominic Cleal over 9 years ago
- Translation missing: en.field_release deleted (
35)
Updated by Dominic Cleal over 9 years ago
- Related to Bug #9779: first host creation submit doesn't work using VMWare compute resource added
Updated by adriano lopes over 9 years ago
I am having the same problem using version 1.9 with vmware 5.0
The problem is to create a network card
Updated by Anonymous over 8 years ago
what's the status here with newer foreman releases?
Updated by Anonymous over 8 years ago
what's the status here with newer foreman releases?