Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1132133 - ISE when clicking New Host or All Hosts (Hardware Models)
Summary: ISE when clicking New Host or All Hosts (Hardware Models)
Keywords:
Status: CLOSED DUPLICATE of bug 1112777
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: GSS_Sat6Beta_Tracker, GSS_Sat6_Tracker
TreeView+ depends on / blocked
 
Reported: 2014-08-20 18:23 UTC by Shannon Hughes
Modified: 2018-12-09 18:24 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-16 16:19:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Shannon Hughes 2014-08-20 18:23:01 UTC
Description of problem:

Built new sat6 and tried to build a client system using PXE but it did not work (Do not have the exact customer problem/error). Deleted Host Group, activation key, host collection, content view, life cycle environment and created new .


When customer clicks on either Hosts->New host, or Hosts->All hosts->New Host
- Fails with error:

Error
undefined method `id' for nil:NilClass 

NoMethodError
undefined method `id' for nil:NilClass
app/views/hosts/_form.html.erb:119:in `block (3 levels) in
_app_views_hosts__form_html_erb___2517794720616716771_126236580'
app/helpers/layout_helper.rb:159:in `block (3 levels) in field'
app/helpers/layout_helper.rb:158:in `block (2 levels) in field'
app/helpers/layout_helper.rb:149:in `block in field'
app/helpers/layout_helper.rb:148:in `field'
app/views/hosts/_form.html.erb:118:in `block (2 levels) in
_app_views_hosts__form_html_erb___2517794720616716771_126236580'
app/helpers/layout_helper.rb:250:in `form_for'
app/views/hosts/_form.html.erb:8:in `block in
_app_views_hosts__form_html_erb___2517794720616716771_126236580'
app/models/taxonomy.rb:48:in `block (2 levels) in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:143:in `as_location'
app/models/taxonomy.rb:47:in `block in as_taxonomy'
app/models/concerns/foreman/thread_session.rb:108:in `as_org'
app/models/taxonomy.rb:46:in `as_taxonomy'
app/views/hosts/_form.html.erb:6:in
`_app_views_hosts__form_html_erb___2517794720616716771_126236580'
app/views/hosts/new.html.erb:7:in
`_app_views_hosts_new_html_erb___1307166877427700607_126365180'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call' 

Possible Hardware Models might be coming into play from code: 

From the code we see references to this foreman feature: 

<%= select_f f, :model_id, Model.all, :id, :to_label, { :include_blank => true }, {:label =>

_("Hardware Model")} unless @host.compute_resource_id%>

Comment 1 RHEL Program Management 2014-08-20 18:33:07 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 5 Dominic Cleal 2014-09-16 16:19:02 UTC
Complete stack trace from production.log:

Operation FAILED: undefined method `id' for nil:NilClass
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/helpers/katello/hosts_and_hostgroups_helper.rb:45:in `block (2 levels) in grouped_env_options'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/helpers/katello/hosts_and_hostgroups_helper.rb:39:in `map'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/helpers/katello/hosts_and_hostgroups_helper.rb:39:in `block in grouped_env_options'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/helpers/katello/hosts_and_hostgroups_helper.rb:29:in `map'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/helpers/katello/hosts_and_hostgroups_helper.rb:29:in `grouped_env_options'
/usr/share/foreman/app/views/hosts/_form.html.erb:119:in `block (3 levels) in _app_views_hosts__form_html_erb___3704410781509911512_133078460'
/usr/share/foreman/app/helpers/layout_helper.rb:159:in `block (3 levels) in field'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
/opt/rh/ruby193/root/usr/share/gems/gems/haml-3.1.6/lib/haml/helpers/xss_mods.rb:109:in `with_output_buffer_with_haml_xss'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/capture_helper.rb:40:in `capture'
/opt/rh/ruby193/root/usr/share/gems/gems/haml-3.1.6/lib/haml/helpers/action_view_mods.rb:105:in `capture_with_haml'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/tag_helper.rb:95:in `content_tag'
/opt/rh/ruby193/root/usr/share/gems/gems/haml-3.1.6/lib/haml/helpers/action_view_mods.rb:115:in `content_tag_with_haml'
/usr/share/foreman/app/helpers/layout_helper.rb:158:in `block (2 levels) in field'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
/opt/rh/ruby193/root/usr/share/gems/gems/haml-3.1.6/lib/haml/helpers/xss_mods.rb:109:in `with_output_buffer_with_haml_xss'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/capture_helper.rb:40:in `capture'
/opt/rh/ruby193/root/usr/share/gems/gems/haml-3.1.6/lib/haml/helpers/action_view_mods.rb:105:in `capture_with_haml'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/tag_helper.rb:95:in `content_tag'
/opt/rh/ruby193/root/usr/share/gems/gems/haml-3.1.6/lib/haml/helpers/action_view_mods.rb:115:in `content_tag_with_haml'
/usr/share/foreman/app/helpers/layout_helper.rb:149:in `block in field'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
/opt/rh/ruby193/root/usr/share/gems/gems/haml-3.1.6/lib/haml/helpers/xss_mods.rb:109:in `with_output_buffer_with_haml_xss'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/capture_helper.rb:40:in `capture'
/opt/rh/ruby193/root/usr/share/gems/gems/haml-3.1.6/lib/haml/helpers/action_view_mods.rb:105:in `capture_with_haml'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/tag_helper.rb:95:in `content_tag'
/opt/rh/ruby193/root/usr/share/gems/gems/haml-3.1.6/lib/haml/helpers/action_view_mods.rb:115:in `content_tag_with_haml'
/usr/share/foreman/app/helpers/layout_helper.rb:148:in `field'
/usr/share/foreman/app/views/hosts/_form.html.erb:118:in `block (2 levels) in _app_views_hosts__form_html_erb___3704410781509911512_133078460'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/capture_helper.rb:40:in `block in capture'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer'
/opt/rh/ruby193/root/usr/share/gems/gems/haml-3.1.6/lib/haml/helpers/xss_mods.rb:109:in `with_output_buffer_with_haml_xss'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/capture_helper.rb:40:in `capture'
/opt/rh/ruby193/root/usr/share/gems/gems/haml-3.1.6/lib/haml/helpers/action_view_mods.rb:105:in `capture_with_haml'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/form_helper.rb:607:in `fields_for'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/helpers/form_helper.rb:378:in `form_for'
/opt/rh/ruby193/root/usr/share/gems/gems/haml-3.1.6/lib/haml/helpers/action_view_mods.rb:183:in `form_for_with_haml'
/opt/rh/ruby193/root/usr/share/gems/gems/haml-3.1.6/lib/haml/helpers/xss_mods.rb:132:in `form_for_with_haml_xss'
/usr/share/foreman/app/helpers/layout_helper.rb:250:in `form_for'
/usr/share/foreman/app/views/hosts/_form.html.erb:8:in `block in _app_views_hosts__form_html_erb___3704410781509911512_133078460'
/usr/share/foreman/app/models/taxonomy.rb:48:in `block (2 levels) in as_taxonomy'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:143:in `as_location'
/usr/share/foreman/app/models/taxonomy.rb:47:in `block in as_taxonomy'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:108:in `as_org'
/usr/share/foreman/app/models/taxonomy.rb:46:in `as_taxonomy'
/usr/share/foreman/app/views/hosts/_form.html.erb:6:in `_app_views_hosts__form_html_erb___3704410781509911512_133078460'

Packages:
foreman-1.6.0.21-1.el6sat.noarch
foreman-compute-1.6.0.21-1.el6sat.noarch
foreman-gce-1.6.0.21-1.el6sat.noarch
foreman-libvirt-1.6.0.21-1.el6sat.noarch
foreman-ovirt-1.6.0.21-1.el6sat.noarch
foreman-postgresql-1.6.0.21-1.el6sat.noarch
foreman-proxy-1.6.0.9-1.el6sat.noarch
foreman-selinux-1.6.0-5.el6sat.noarch
foreman-vmware-1.6.0.21-1.el6sat.noarch
katello-1.5.0-26.el6sat.noarch
katello-ca-1.0-1.noarch
katello-certs-tools-1.5.5-1.el6sat.noarch
katello-installer-0.0.53-1.el6sat.noarch
pulp-katello-0.3-3.el6sat.noarch
ruby193-rubygem-foreman_bootdisk-2.0.6-1.1.el6sat.noarch
ruby193-rubygem-foreman_discovery-1.3.0-0.1.rc2.el6sat.noarch
ruby193-rubygem-foreman_hooks-0.3.5-2.el6sat.noarch
ruby193-rubygem-foreman-redhat_access-0.0.4-1.el6sat.noarch
ruby193-rubygem-foreman-tasks-0.6.3-2.el6sat.noarch
ruby193-rubygem-katello-1.5.0-65.el6sat.noarch
rubygem-hammer_cli_foreman-0.1.1-9.el6sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3-2.el6sat.noarch
rubygem-hammer_cli_katello-0.0.4-7.el6sat.noarch

This appears to be bug #1112777.  Please try using Satellite 6.0 GA.

*** This bug has been marked as a duplicate of bug 1112777 ***


Note You need to log in before you can comment on or make changes to this bug.