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:
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.
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'
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.
Justin - is this a dup of bz1337931 ?
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?)
*** This bug has been marked as a duplicate of bug 1337931 ***