Bug #12871
closedErrror on creating hostgroup: undefined method `content_facet' for #<Hostgroup:0x0000001036b338>
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:
Updated by Dominic Cleal almost 9 years ago
- Project changed from Foreman to Katello
- Triaged set to No
Updated by Justin Sherrill almost 9 years ago
- Blocks Feature #11435: Host Unification Tracker added
Updated by Eric Helms almost 9 years ago
- Translation missing: en.field_release set to 86
- Triaged changed from No to Yes
Updated by The Foreman Bot almost 9 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
Updated by The Foreman Bot almost 9 years ago
- Pull request https://github.com/theforeman/foreman_remote_execution/pull/92 added
Updated by Justin Sherrill almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|f934e5af82eb16472689ff4f2f09e5904165220a.
Updated by Stephen Benjamin over 8 years ago
- Pull request deleted (
https://github.com/theforeman/foreman_remote_execution/pull/92)
Removing incorrect PR
Updated by Bryan Kearney over 8 years ago
- Bugzilla link changed from 1292713 to 1337931