Project

General

Profile

Actions

Bug #3612

closed

Editing host after an compute associate ends in an oops

Added by Werner Dijkerman over 10 years ago. Updated over 10 years ago.

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

Description

I've added an VMware "compute resources".
It has an valid connection and I see all VMs in Foreman which are present in vcenter. I've associated one host with an foreman host.

Now when I want to edit this server (from Hosts --> <server> --> Edit) I'll get an error:

undefined method `stringify_keys' for #<RbVmomi::VIM:0x007f592130a0d0>

Stacktrace:

NoMethodError
undefined method `stringify_keys' for #<RbVmomi::VIM:0x007f592130a0d0>
app/helpers/layout_helper.rb:108:in `block in selectable_f'
app/helpers/layout_helper.rb:130:in `block (2 levels) in field'
app/helpers/layout_helper.rb:129:in `block in field'
app/helpers/layout_helper.rb:124:in `field'
app/helpers/layout_helper.rb:107:in `selectable_f'
app/views/compute_resources_vms/form/_vmware.html.erb:5:in `_app_views_compute_resources_vms_form__vmware_html_erb__3919416122880988611_70321240'
app/views/hosts/_compute.html.erb:4:in `block in _app_views_hosts__compute_html_erb___2887658847824910434_70010391448020'
app/views/hosts/_compute.html.erb:1:in `_app_views_hosts__compute_html_erb___2887658847824910434_70010391448020'
app/views/hosts/_unattended.html.erb:2:in `_app_views_hosts__unattended_html_erb___53643206464098241_70010393230100'
app/views/hosts/_form.html.erb:79:in `block (2 levels) in _app_views_hosts__form_html_erb__1104210628030565048_72182420'
app/helpers/layout_helper.rb:205:in `form_for'
app/views/hosts/_form.html.erb:7:in `block in _app_views_hosts__form_html_erb__1104210628030565048_72182420'
app/models/taxonomy.rb:55:in `block (2 levels) in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:143:in `as_location'
app/models/taxonomy.rb:54:in `block in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:108:in `as_org'
app/models/taxonomy.rb:53:in `as_taxonomy'
app/views/hosts/_form.html.erb:5:in `_app_views_hosts__form_html_erb__1104210628030565048_72182420'
app/views/hosts/edit.html.erb:7:in `_app_views_hosts_edit_html_erb___3159881281948401086_72150600'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'


Files

weberror.log weberror.log 149 KB Werner Dijkerman, 11/11/2013 04:59 PM

Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #2680: Unable to provisioning host using UI - vSphere 4.1.0ClosedDominic Cleal06/19/201306/20/2013Actions
Actions #1

Updated by Werner Dijkerman over 10 years ago

It is with the 1.3 release and "foreman-vmware" is installed.

Actions #2

Updated by Dominic Cleal over 10 years ago

  • Is duplicate of Bug #2680: Unable to provisioning host using UI - vSphere 4.1.0 added
Actions #3

Updated by Dominic Cleal over 10 years ago

  • Status changed from New to Duplicate

Same issue as #2680. I've just written a patch for this issue, linked from that bug report - would you mind trying it?

Actions #4

Updated by Werner Dijkerman over 10 years ago

I've installed the file, but I've got error when opening a page in foreman. See attachement: weberror.log.
I've installed it as /usr/share/foreman/config/initializers/rbvmomi.rb and as /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/generators/rails/app/templates/config/initializers/rbvmomi.rb

It's a VMware 5.5.
My linux machine is CentOS 6.4 updated this evening with jum update (Foreman 1.3.1 is installed to)

Actions #5

Updated by Dominic Cleal over 10 years ago

The error log says "undefined method `reScue'" which suggests the case of the "s" character in the rbvmomi.rb file has been flipped from lower to upper case - can you check it's all lower?

Actions #6

Updated by Werner Dijkerman over 10 years ago

You are right, sorry!
It is working now, thanks!

Actions #7

Updated by Dominic Cleal over 9 years ago

  • Related to Bug #8619: undefined method `stringify_keys' for #<RbVmomi::VIM ..> added
Actions #8

Updated by Dominic Cleal over 9 years ago

  • Related to deleted (Bug #8619: undefined method `stringify_keys' for #<RbVmomi::VIM ..>)
Actions

Also available in: Atom PDF