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 1347748 - The templates proxy is hard to understand
Summary: The templates proxy is hard to understand
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Proxy
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 6.4.0
Assignee: Lukas Zapletal
QA Contact: Jan Hutař
URL:
Whiteboard:
: 1395377 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-17 14:13 UTC by Stephen Benjamin
Modified: 2019-11-05 23:00 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Release Note
Doc Text:
In previous versions of Satellite, Satellite was able to retrieve templates from Capsules via the TFTP feature. Users were asked to enable TFTP and Templates modules on Capsules to have templating ability. Starting from Satellite 6.4, Satellite uses the Templates feature to retrieve templates from Capsules. During the upgrade, Satellite will automatically set the Templates feature for all Capsules that also have the TFTP feature. After the upgrade, verify that Templates feature is enabled for all Capsules that are supposed to have it. If not, navigate to *Infrastructure* > *Capsules* and click *Refresh Features* for all required Capsules. Then manually associate these Capsules with required subnets.
Clone Of:
Environment:
Last Closed: 2018-10-16 18:57:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 17316 0 None None None 2018-03-16 19:50:57 UTC
Red Hat Bugzilla 1624072 0 unspecified CLOSED Templates subnet association renders to Capsule URL and not template_url 2021-02-22 00:41:40 UTC

Internal Links: 1624072

Description Stephen Benjamin 2016-06-17 14:13:07 UTC
The 'Templates' feature was added to the foreman proxy so that clients could retrieve templates from their Capsule instead of the Satellite.  It was done by the Foreman team as part of their side of the capsule isolation feature. It works like this:

+-----------+
| Client    |
+-----+-----+
      |
      |  8000/http
+-----v-----+
| Capsule   |
+-----+-----+
      |
      |   443/https
+-----v-----+
| Satellite |
+-----------+

In all of our provisioning templates, we use a macro called foreman_url that is replaced with the appropriate URL. The Capsule URL is used for a host ONLY used when 3 conditions are true:

   1. The capsule supports TFTP
   2. The capsule's TFTP Feature is associated to the host's subnet
   3. The capsule also has the templates feature

This is very confusing for a number of edge cases. Generally, proxies relevant to a host are assigned directly - but individually.  The puppet CA, puppet master, openscap proxies, etc are all assigned each.  The magic was added to avoid having an explicit Templates association but I think we need it anyway.

No one intuitively understands this feature, and because it affects a number of features like boot disk, discovery, normal provisioning, etc.

Neither Boot disk ISO's nor finish templates use TFTP, why does this feature need to be enabled for them to work correctly with the template URL? Additionally, numerous users enable the feature on the Satellite and end up uselessly proxying their templates through the foreman-proxy service as well.

Comment 5 Dmitri Dolguikh 2017-01-16 11:16:32 UTC
FWIW, smart-proxy itself doesn't require tftp to be enabled in order for templates module to work.

Comment 6 Lukas Zapletal 2017-01-16 11:25:08 UTC
Not smart proxy, but there is a check in Foreman (foreman_url method) unfortunately. This is very confusing.

Comment 7 Satellite Program 2018-03-16 20:08:26 UTC
Upstream bug assigned to lzap

Comment 8 Satellite Program 2018-03-16 20:08:29 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17316 has been resolved.

Comment 9 Sean O'Keeffe 2018-04-10 08:14:16 UTC
*** Bug 1395377 has been marked as a duplicate of this bug. ***

Comment 16 Bryan Kearney 2018-10-16 18:57:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2927


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