Bug 1220728
| Summary: | rendering a host-group provisioning template fails with undefined method `content_facet' | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Kedar Bidarkar <kbidarka> |
| Component: | Provisioning Templates | Assignee: | Marek Hulan <mhulan> |
| Status: | CLOSED DUPLICATE | QA Contact: | Lukas Pramuk <lpramuk> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.1.0 | CC: | bbuckingham, bkearney, jsherril, lpramuk, mmccune, ohadlevy, peter.vreman |
| Target Milestone: | Unspecified | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-06-06 10:55:52 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1098183, 1126087, 1126937 | ||
|
Description
Kedar Bidarkar
2015-05-12 09:38:22 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. 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. 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 *** |