Project

General

Profile

Actions

Bug #1812

closed

500 server error on vSphere compute_resources page

Added by Jason Ashby over 11 years ago. Updated over 11 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Compute resources
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #1589: Cannot create VMs on vSphere (4.0) clusterResolvedOhad Levy04/27/2012Actions
Actions #1

Updated by Ohad Levy over 11 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF