Project

General

Profile

Actions

Bug #10267

closed

can't convert String into Integer When clicking edit host

Added by Joshua Gordon about 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

I believe foreman-xen is putting in a value that is not allowed. I believe this because other hosts that do not use xenserver as a compute module work fine.
Any advice on how to resolve this would be appreciated.

Full Trace
TypeError
can't convert String into Integer
app/helpers/lookup_keys_helper.rb:24:in `block (2 levels) in new_child_fields_template'
app/helpers/lookup_keys_helper.rb:21:in `block in new_child_fields_template'
app/helpers/lookup_keys_helper.rb:20:in `new_child_fields_template'
app/views/hosts/_compute.html.erb:5:in `block in _468489494d6a02edef874d56799ed31e'
app/views/hosts/_compute.html.erb:1:in `_468489494d6a02edef874d56799ed31e'
app/views/hosts/_unattended.html.erb:2:in `_8eac1889d01bc4c35cb61938cd71a34c'
app/views/hosts/_form.html.erb:94:in `block (2 levels) in _ac4e2d6bec443dc94b8e8f9be32a90e0'
app/helpers/layout_helper.rb:268:in `form_for'
app/views/hosts/_form.html.erb:8:in `block in _ac4e2d6bec443dc94b8e8f9be32a90e0'
app/models/taxonomy.rb:59:in `block (2 levels) in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:148:in `as_location'
app/models/taxonomy.rb:58:in `block in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:113:in `as_org'
app/models/taxonomy.rb:57:in `as_taxonomy'
app/views/hosts/_form.html.erb:6:in `_ac4e2d6bec443dc94b8e8f9be32a90e0'
app/views/hosts/edit.html.erb:9:in `_dfc4ac7696dff71af8dc623b96152443'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

Actions #1

Updated by Ben Bettridge almost 9 years ago

Any chance you could attach an excerpt from production.log? It usually contains more information than the stacktrace output to the UI.

Actions #2

Updated by Joshua Gordon almost 9 years ago

Sure here is the prodution.log This is right after I click edit on a host deployed to xen server using the xen server plugin.
Started GET "/hosts/uttest01.psi-cu-software.com/edit" for 192.168.0.107 at 2015-04-30 07:50:28 -0600
Processing by HostsController#edit as HTML
Parameters: {"id"=>"uttest01.psi-cu-software.com"}
Rendered hosts/_progress.html.erb (0.2ms)
Rendered puppetclasses/_selectedClasses.html.erb (0.0ms)
Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms)
Rendered puppetclasses/_classes.html.erb (6.5ms)
Rendered puppetclasses/_class_selection.html.erb (83.4ms)
Successfully decrypted field for ForemanXen::Xenserver utxenserver01
Rendered vendor/ruby/1.9.1/gems/foreman_xen-0.0.4.1/app/views/compute_resources_vms/form/_templates.html.erb (691.3ms)
Rendered vendor/ruby/1.9.1/gems/foreman_xen-0.0.4.1/app/views/compute_resources_vms/form/_xenstore.html.erb (0.3ms)
Rendered vendor/ruby/1.9.1/gems/foreman_xen-0.0.4.1/app/views/compute_resources_vms/form/_volume.html.erb (1.7ms)
Rendered vendor/ruby/1.9.1/gems/foreman_xen-0.0.4.1/app/views/compute_resources_vms/form/_xenserver.html.erb (1448.2ms)
Rendered hosts/_compute.html.erb (1501.4ms)
Rendered hosts/_unattended.html.erb (1503.4ms)
Rendered hosts/_form.html.erb (1604.3ms)
Rendered hosts/edit.html.erb within layouts/application (1606.1ms)
Operation FAILED: can't convert String into Integer
Rendered common/500.html.erb within layouts/application (4.9ms)
Rendered layouts/base.html.erb (1.3ms)
Completed 500 Internal Server Error in 1630.9ms (Views: 8.2ms | ActiveRecord: 17.7ms)

Actions #3

Updated by Joshua Gordon almost 9 years ago

Joshua Gordon wrote:

Sure here is the prodution.log This is right after I click edit on a host deployed to xen server using the xen server plugin.
Started GET "/hosts/uttest01.domain.com/edit" for 192.168.0.107 at 2015-04-30 07:50:28 -0600
Processing by HostsController#edit as HTML
Parameters: {"id"=>"uttest01.psi-cu-software.com"}
Rendered hosts/_progress.html.erb (0.2ms)
Rendered puppetclasses/_selectedClasses.html.erb (0.0ms)
Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms)
Rendered puppetclasses/_classes.html.erb (6.5ms)
Rendered puppetclasses/_class_selection.html.erb (83.4ms)
Successfully decrypted field for ForemanXen::Xenserver utxenserver01
Rendered vendor/ruby/1.9.1/gems/foreman_xen-0.0.4.1/app/views/compute_resources_vms/form/_templates.html.erb (691.3ms)
Rendered vendor/ruby/1.9.1/gems/foreman_xen-0.0.4.1/app/views/compute_resources_vms/form/_xenstore.html.erb (0.3ms)
Rendered vendor/ruby/1.9.1/gems/foreman_xen-0.0.4.1/app/views/compute_resources_vms/form/_volume.html.erb (1.7ms)
Rendered vendor/ruby/1.9.1/gems/foreman_xen-0.0.4.1/app/views/compute_resources_vms/form/_xenserver.html.erb (1448.2ms)
Rendered hosts/_compute.html.erb (1501.4ms)
Rendered hosts/_unattended.html.erb (1503.4ms)
Rendered hosts/_form.html.erb (1604.3ms)
Rendered hosts/edit.html.erb within layouts/application (1606.1ms)
Operation FAILED: can't convert String into Integer
Rendered common/500.html.erb within layouts/application (4.9ms)
Rendered layouts/base.html.erb (1.3ms)
Completed 500 Internal Server Error in 1630.9ms (Views: 8.2ms | ActiveRecord: 17.7ms)

Actions #4

Updated by Anonymous almost 9 years ago

does this still occur with Foreman 1.7.x and foreman_xen 0.0.6 or Foreman 1.8.1 and foreman_xen 0.1.0?

Actions #5

Updated by Operations ooVoo almost 9 years ago

  • Status changed from New to Resolved

This issue has been fixed in latest commits which suppose to work only with Foreman 1.8 or 1.8.1, please try to use latest version and report back

Actions

Also available in: Atom PDF