Project

General

Profile

Actions

Bug #12871

closed

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

Added by Sachin Ghai almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
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 1 (1 open0 closed)

Blocks Katello - Feature #11435: Host Unification TrackerNewActions
Actions

Also available in: Atom PDF