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 1220728 - rendering a host-group provisioning template fails with undefined method `content_facet'
Summary: rendering a host-group provisioning template fails with undefined method `con...
Keywords:
Status: CLOSED DUPLICATE of bug 1337931
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning Templates
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: Marek Hulan
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks: 1098183 1126087 1126937
TreeView+ depends on / blocked
 
Reported: 2015-05-12 09:38 UTC by Kedar Bidarkar
Modified: 2019-11-14 06:43 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-06 10:55:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Kedar Bidarkar 2015-05-12 09:38:22 UTC
Description of problem:

I think this should be a new bug. The rendering was not successful and the same was update earlier to the below bug.

https://bugzilla.redhat.com/show_bug.cgi?id=1126937


1) created a host_group
2)associate katello kickstart default to a host-group
3) Deploy default PXE files
4) check the file on sat6  /var/lib/tftpboot/pxelinux.cfg/default

Rendering fails:

http://dhcp201-167.englab.pnq.redhat.com/unattended/template/Katello%20Kickstart%20Default/rhel66_grp

Get the below message when accessing the URL or provisioning.

There was an error rendering the Unnamed template: undefined method 'mac' for Hostgroup::Jail (Hostgroup)

Version-Release number of selected component (if applicable):
sat6.1-GA-snap3-c2

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
There was an error rendering the Unnamed template: undefined method 'mac' for Hostgroup::Jail (Hostgroup)

Expected results:
rendering the template should be possible.

Additional info:

Comment 3 Peter Vreman 2015-10-19 10:45:41 UTC
The @provision_type works fine since 6.0.5 or so, we use it on a daily basis for at least 6 months.

The failure on the hostgroup jail that is cannot find the .mac is correct. The accessing of the .mac shall be done only when the @provision_type != hostgroup.

Comment 4 Kedar Bidarkar 2016-04-01 19:53:30 UTC
Many bugs are blocked due to this issue, which cannot be verified.



2016-04-01 15:49:45 [app] [I] Started GET "/unattended/template/Katello%20Kickstart%20Default/rhel72_hgrp" for 10.10.49.95 at 2016-04-01 15:49:45 -0400
2016-04-01 15:49:45 [app] [I] Processing by UnattendedController#hostgroup_template as HTML
2016-04-01 15:49:45 [app] [I]   Parameters: {"id"=>"Katello Kickstart Default", "hostgroup"=>"rhel72_hgrp"}
2016-04-01 15:49:45 [app] [W] Action failed
 | NoMethodError: undefined method `content_facet' for #<Hostgroup:0x007fefca8630f0>
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activemodel-4.1.5/lib/active_model/attribute_methods.rb:435:in `method_missing'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/attribute_methods.rb:208:in `method_missing'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.12/app/models/katello/concerns/redhat_extensions.rb:60:in `distribution_repositories'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.12/app/models/katello/concerns/redhat_extensions.rb:55:in `kickstart_repo'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.12/app/models/katello/concerns/redhat_extensions.rb:47:in `medium_uri_with_content_uri'
 | /usr/share/foreman/app/models/operatingsystems/redhat.rb:11:in `mediumpath'
 | /usr/share/foreman/lib/foreman/renderer.rb:164:in `kickstart_attributes'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.12/app/lib/katello/concerns/renderer_extensions.rb:11:in `kickstart_attributes_with_katello'

Comment 5 Kedar Bidarkar 2016-04-01 19:54:44 UTC
I face the above mentioned issue when trying to access the host-group provisioning template.

Tested with Sat62-snap6


This blocks all the bugs mentioned in the BLOCKS field.

Comment 6 Ohad Levy 2016-05-26 07:05:43 UTC
Justin - is this a dup of bz1337931 ?

Comment 8 Justin Sherrill 2016-05-26 13:12:29 UTC
The content facet error is a duplicate of 1337931

The template error is not handled by 1337931. A ton of the templates do not work with hostgroup based provisioning. I started down that path but stopped once it became clear it was not just one or two issues.  Mike, Stephen, and I discussed that for 1337931, its not worth fixing the templates as we were not confident they worked in 6.1 either (but maybe we are wrong?)

Comment 10 Lukas Pramuk 2016-06-06 10:55:52 UTC

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


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