Project

General

Profile

Actions

Bug #1589

closed

Cannot create VMs on vSphere (4.0) cluster

Added by Rytis Sileika about 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
VM management
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Steps that I followed:

- Updated lib/foreman/model/vmware.rb with the correct HASH (:vsphere_expected_pubkey_hash)
- Added new compute resource, setting type to VMWare. Fetching Datacentres worked fine - I received a list of available DCs. Selected one of them.

PROBLEM 1
---------

When creating a new host, I changed type from 'bare metal' to 'VMWare'. Filled in all the details. When I clicked on "Submit", it failed with the following error:

Missing partial compute_resources/vms/form/vmware with {:locale=>[:en, :en], :formats=>[:html], :handlers=>[:builder, :rjs, :rhtml, :rxml, :erb]} in view paths "/opt/foreman/app/views"

Full stack trace:

ActionView::MissingTemplate
Missing partial compute_resources/vms/form/vmware with {:locale=>[:en, :en], :formats=>[:html], :handlers=>[:builder, :rjs, :rhtml, :rxml, :erb]} in view paths "/opt/foreman/app/views"
app/views/hosts/_compute.html.erb:2:in `_app_views_hosts__compute_html_erb__383971327_70176225426240_4706636'
app/views/hosts/_compute.html.erb:1:in `_app_views_hosts__compute_html_erb__383971327_70176225426240_4706636'
app/views/hosts/_unattended.html.erb:6:in `_app_views_hosts__unattended_html_erb___317377005_70176226311880_6131276'
app/views/hosts/_form.html.erb:52:in `_app_views_hosts__form_html_erb___1710001210_70176226962920_1176350'
app/views/hosts/_form.html.erb:3:in `_app_views_hosts__form_html_erb___1710001210_70176226962920_1176350'
app/views/hosts/new.html.erb:3:in `_app_views_hosts_new_html_erb___2094403440_70176226972220_0'
app/controllers/application_controller.rb:258:in `process_error'
app/controllers/application_controller.rb:253:in `process_error'
app/controllers/hosts_controller.rb:100:in `create'

PROBLEM 2
---------

I don't know if this is related, or should be a separate bug report.

If I go to "Compute Resources" then select VMWare resource and click on "Virtual Machines" I get an error message:

Sorry but there was an error: 500 Internal Server Error

It seems that an AJAX call is being made to /compute_resources/1-<name>/vms

If I go there directly, I get the following error message:

undefined method `[]=' for nil:NilClass

And the stack trace:

NoMethodError
undefined method `[]=' for nil:NilClass
app/controllers/compute_resources/vms_controller.rb:6:in `index'


Related issues 1 (0 open1 closed)

Has duplicate Foreman - Bug #1812: 500 server error on vSphere compute_resources pageDuplicate08/07/2012Actions
Actions

Also available in: Atom PDF