Project

General

Profile

Bug #12871

Errror on creating hostgroup: undefined method `content_facet' for #<Hostgroup:0x0000001036b338>

Added by Sachin Ghai almost 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1292713
Description of problem: I was trying to create a new hostgroup from webUI and as soon as I clicked on "New Host Group", following traceback appears in production.log

2015-12-18 02:21:14 [app] [I] | | Started GET "/hostgroups/new" for 10.65.193.200 at 2015-12-18 02:21:14 -0500
2015-12-18 02:21:14 [app] [I] Processing by HostgroupsController#new as HTML
2015-12-18 02:21:14 [app] [I] Deface: [WARNING] No :original defined for 'add_activation_keys_tab', you should change its definition to include: | :original => 'aefc8e355300ccc5af0592fb2e7c1e5eb7a2ba6d'
2015-12-18 02:21:14 [app] [I] Deface: [WARNING] No :original defined for 'add_activation_keys_tab_pane', you should change its definition to include: | :original => 'ce4076956541552b74e2f8cbca1656e439822d95'
2015-12-18 02:21:14 [app] [I] Deface: [WARNING] No :original defined for 'hostgroups_update_environments_select', you should change its definition to include: | :original => 'e59a74ceb5a592f99dc58f1a691847290b5132d7'
2015-12-18 02:21:14 [app] [I] Rendered hostgroups/_form.html.erb (251.5ms)
2015-12-18 02:21:14 [app] [I] Rendered hostgroups/new.html.erb within layouts/application (252.3ms)
2015-12-18 02:21:14 [app] [W] Action failed | NoMethodError: undefined method `content_facet' for #<Hostgroup:0x007f713d5c3fb8> | /opt/rh/ruby193/root/usr/share/gems/gems/activemodel-3.2.8/lib/active_model/attribute_methods.rb:407:in `method_missing' | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/attribute_methods.rb:149:in `method_missing' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.5.0/app/helpers/katello/hosts_and_hostgroups_helper.rb:26:in `lifecycle_environment_options' | /usr/share/foreman/app/views/hostgroups/_form.html.erb:22:in `block (2 levels) in _5f705d0471771558a27c007b86e148f4' | /usr/share/foreman/app/helpers/layout_helper.rb:254:in `block (3 levels) in field'

Version-Release number of selected component (if applicable):
Nightly

foreman-1.11.0-0.develop.201512111432git98f6ca5.el6.noarch
foreman-release-1.11.0-0.develop.201512111432git98f6ca5.el6.noarch
katello-2.5.0-2.nightly.el6.noarch
katello-installer-2.5.0-1.nightly.201512140226git40b4975.el6.noarch
katello-repos-2.4.0-2.nightly.el6.noarch
pulp-katello-0.4-3.el6.noarch
katello-service-2.5.0-2.nightly.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. create a new hostgroup
2.
3.

Actual results: | NoMethodError: undefined method `content_facet' for #<Hostgroup:0x007f713d5c3fb8>

Expected results:
Hostgroup form should be opened up to create new host group

Additional info:


Related issues

Blocks Katello - Feature #11435: Host Unification TrackerNew

Associated revisions

Revision f934e5af (diff)
Added by Justin Sherrill almost 4 years ago

fixes #12871,#12897 - fixing hostgroup new and creation for facets and rails 4

Revision 37cd4d9b
Added by Justin Sherrill almost 4 years ago

Merge pull request #5679 from jlsherrill/12871

fixes #12871,#12897 - fixing hostgroup new and create for facets and rails 4

History

#1 Updated by Dominic Cleal almost 4 years ago

  • Project changed from Foreman to Katello
  • Triaged set to No

#2 Updated by Justin Sherrill almost 4 years ago

#3 Updated by Eric Helms almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 86
  • Triaged changed from No to Yes

#4 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Justin Sherrill
  • Pull request https://github.com/Katello/katello/pull/5679 added

#5 Updated by The Foreman Bot almost 4 years ago

  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/92 added

#6 Updated by Justin Sherrill almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#7 Updated by Stephen Benjamin over 3 years ago

  • Pull request deleted (https://github.com/theforeman/foreman_remote_execution/pull/92)

Removing incorrect PR

#8 Updated by Bryan Kearney over 3 years ago

  • Bugzilla link changed from 1292713 to 1337931

Also available in: Atom PDF