Actions
Bug #1812
closed500 server error on vSphere compute_resources page
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Compute resources
Target version:
-
Description
I'm running Foreman 1.0.0 on CentOS 6.3 with Apache Passenger.
I created a compute resource for my vsphere server. The datacenters populated correctly in the drop-down list when adding the vsphere server, so Foreman looks to have communicated OK with my vsphere server. When I click on the Virtual Machine tab however, it has a loading icon with "Loading Virtual Machines information", but never gets further than that.
Upon further inspection with Firebug in Firefox, I see it gets a 500 Internal sever error when trying http://foreman:4000/compute_resources/1-vcenter-mydomain-com/vms.
Traceback:
NoMethodError undefined method `[]=' for nil:NilClass app/controllers/compute_resources_vms_controller.rb:6:in `index'
So it chokes on the @vms line in compute_resources_vms_controller:
def index @vms = @compute_resource.vms.all.to_a.paginate :page => params[:page] respond_to do |format| format.html format.json { render :json => @vms } end end
I don't see anything of interest in the apache or system logs.
Actions