Project

General

Profile

Actions

Bug #11079

closed

ovirt 3.5 compute profile edit error: undefined method `text' for nil:NilClass

Added by Steve D almost 9 years ago. Updated almost 6 years ago.

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

Description

Foreman version 1.8.2

Attempting to create a new resource profile on a new ovirt compute resource errors out:

Warning!
undefined method `text' for nil:NilClass

If you feel this is an error with Foreman itself, please open a new issue with Foreman ticketing system, You would probably need to attach the Full trace and relevant log entries.
NoMethodError
undefined method `text' for nil:NilClass
app/helpers/layout_helper.rb:112:in `block in select_f'
app/helpers/layout_helper.rb:169:in `block (3 levels) in field'
app/helpers/layout_helper.rb:168:in `block (2 levels) in field'
app/helpers/layout_helper.rb:158:in `block in field'
app/helpers/layout_helper.rb:157:in `field'
app/helpers/layout_helper.rb:110:in `select_f'
app/views/compute_resources_vms/form/ovirt/_base.html.erb:10:in `_app_views_compute_resources_vms_form_ovirt__base_html_erb__4409097850897090305_73637740'
app/views/compute_attributes/_compute_form.html.erb:3:in `_app_views_compute_attributes__compute_form_html_erb__1756491331636043450_83732500'
app/views/compute_attributes/_form.html.erb:10:in `block (2 levels) in app_views_compute_attributes_form_html_erb__2970560782621538195_81668060'
app/views/compute_attributes/_form.html.erb:8:in `block in app_views_compute_attributes_form_html_erb__2970560782621538195_81668060'
app/helpers/layout_helper.rb:273:in `form_for'
app/views/compute_attributes/_form.html.erb:2:in `_app_views_compute_attributes__form_html_erb__2970560782621538195_81668060'
app/views/compute_attributes/new.html.erb:3:in `_app_views_compute_attributes_new_html_erb__3418808687226322706_81462020'
app/controllers/concerns/application_shared.rb:13:in `set_timezone'
app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

/var/log/foreman/production.log:
Started GET "/foreman/compute_profiles/7-ovirt_guest_compute/compute_resources/2-ovirt-pcic-uvic-ca/compute_attributes/new" for 142.104.194.17 at 2015-07-09 18:17:45 -0700
2015-07-09 18:17:45 [I] Processing by ComputeAttributesController#new as */*
2015-07-09 18:17:45 [I] Parameters: {"compute_profile_id"=>"7-ovirt_guest_compute", "compute_resource_id"=>"2-ovirt-pcic-uvic-ca"}
2015-07-09 18:17:45 [I] Successfully decrypted field for Foreman::Model::Ovirt ovirt.pcic.uvic.ca
2015-07-09 18:17:45 [I] Successfully decrypted field for Foreman::Model::Ovirt ovirt.pcic.uvic.ca
2015-07-09 18:17:45 [I] Rendered compute_resources_vms/form/ovirt/_base.html.erb (132.8ms)
2015-07-09 18:17:45 [I] Rendered compute_attributes/_compute_form.html.erb (133.8ms)
2015-07-09 18:17:45 [I] Rendered compute_attributes/_form.html.erb (222.7ms)
2015-07-09 18:17:45 [I] Rendered compute_attributes/new.html.erb (226.3ms)
2015-07-09 18:17:45 [W] Operation FAILED: undefined method `text' for nil:NilClass
2015-07-09 18:17:45 [I] Rendered common/500.html.erb (5.0ms)
2015-07-09 18:17:45 [I] Completed 500 Internal Server Error in 241ms (Views: 5.6ms | ActiveRecord: 1.3ms)
2015-07-09 18:17:45 [I]

Started GET "/foreman/compute_profiles/7-ovirt_guest_compute/compute_resources/2-ovirt-pcic-uvic-ca/compute_attributes/new" for 142.104.194.17 at 2015-07-09 18:17:45 -0700
2015-07-09 18:17:45 [I] Processing by ComputeAttributesController#new as */*
2015-07-09 18:17:45 [I] Parameters: {"compute_profile_id"=>"7-ovirt_guest_compute", "compute_resource_id"=>"2-ovirt-pcic-uvic-ca"}
2015-07-09 18:17:45 [I] Successfully decrypted field for Foreman::Model::Ovirt ovirt.pcic.uvic.ca
2015-07-09 18:17:45 [I] Successfully decrypted field for Foreman::Model::Ovirt ovirt.pcic.uvic.ca
2015-07-09 18:17:45 [I] Rendered compute_resources_vms/form/ovirt/_base.html.erb (115.9ms)
2015-07-09 18:17:45 [I] Rendered compute_attributes/_compute_form.html.erb (116.4ms)
2015-07-09 18:17:45 [I] Rendered compute_attributes/_form.html.erb (305.0ms)
2015-07-09 18:17:45 [I] Rendered compute_attributes/new.html.erb (306.5ms)
2015-07-09 18:17:45 [W] Operation FAILED: undefined method `text' for nil:NilClass
2015-07-09 18:17:45 [I] Rendered common/500.html.erb (5.0ms)
2015-07-09 18:17:45 [I] Completed 500 Internal Server Error in 317ms (Views: 5.5ms | ActiveRecord: 1.2ms)
2015-07-09 18:21:52 [I]


Files

Screenshot from 2015-07-10 21-19-17.png View Screenshot from 2015-07-10 21-19-17.png 37 KB list of ovirt templates Steve D, 07/11/2015 12:20 AM
Screenshot from 2015-07-10 21-35-45.png View Screenshot from 2015-07-10 21-35-45.png 25.7 KB image field multiple listings of 'centos6_compute_template' Steve D, 07/11/2015 12:36 AM

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #14090: unable to list ovirt vms (under compute resource vms tab)ResolvedLukas Zapletal03/08/2016Actions
Actions

Also available in: Atom PDF