Bug #17795
closed"Failed to fetch vm information" while trying to deploy a VM
Description
Hi All,
I am trying to get Foreman working with XenServer 6.2.0.
I am able to add my xen server as a compute resource and I can see the connection is successful.
Moreover, I can see the VMs which are already running on this host. So far so good :-)
Next, I am trying to deploy a regular VM on this host.
I am always getting the following message:
2016-12-20T11:22:57 77ee588d [app] [W] Failed to fetch vm information | ActionView::Template::Error: undefined method `name' for nil:NilClass | /usr/share/foreman/vendor/ruby/2.3.0/gems/foreman_xen-0.4.0/app/views/compute_resources_vms/show/_xenserver.html.erb:1:in `_e52ac537341dabfcf2653f5b781af5d9' | /usr/share/foreman/vendor/ruby/2.3.0/gems/actionview-4.2.7.1/lib/action_view/template.rb:145:in `block in render'
Which finally ends with status code 500 on the server side.
VM is hanging in 'Pending installation' state, but nothing seems to happen, checking on the server side there is no new VM created etc.
I attach foreman and foreman-proxy logs.
Cheers,
Lukasz
Files
Updated by Anonymous over 8 years ago
While I don't really think it's making a difference for this issue, please update your foreman_xen to 0.4.1 and try again. Please also check the logs in the XenServer, I suspect some error message not to get propagated to the fog/Foreman side, like in https://github.com/theforeman/foreman-xen/pull/48