Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1142160

Summary: Unable to use cloned PXELinux global default template with 6.0.4
Product: Red Hat Satellite Reporter: Lukas Zapletal <lzap>
Component: ProvisioningAssignee: Stephen Benjamin <stbenjam>
Status: CLOSED ERRATA QA Contact: Jan Hutaƙ <jhutar>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.4CC: dcleal, eminguez, greartes, jhutar, mburgerh, mmello, pcfe, stbenjam, xdmoon
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/7480
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 05:16:30 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: 1122832    

Description Lukas Zapletal 2014-09-16 09:30:32 UTC
Since "PXELinux global default" template is locked and the name is hardcoded in Foreman codebase, there is no way to use Foreman Discovery since we can't configure initial boot.

Workaround: Unlock the locked template and edit it.

# foreman-rake console
> ct = ConfigTemplate.find_by_name("PXELinux global default"); ct.locked = false; ct.save!
> exit

Comment 1 RHEL Program Management 2014-09-16 09:33:21 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Lukas Zapletal 2014-09-16 09:49:38 UTC
It looks like there are two options to do:

A) Implement a global settings for all hardcoded template names. This is easy to do.

B) Implement these settings per-subnet which adds more granularity but it is more complicated.

We can implement both A+B (A as a fallback when B is not specified per-subnet).

Comment 5 Bryan Kearney 2014-09-16 16:31:37 UTC
Created redmine issue http://projects.theforeman.org/issues/7480 from this bug

Comment 8 Bryan Kearney 2014-11-26 11:03:56 UTC
Upstream bug assigned to stbenjam

Comment 9 Bryan Kearney 2014-12-18 17:03:57 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/7480 has been closed
-------------
Dominic Cleal
Katello should not be locking core Foreman templates: https://github.com/Katello/katello/blob/katello-2.0.0-0/db/seeds.rb#L39-L44
-------------
Stephen Benjamin
> Katello should not be locking core Foreman templates: https://github.com/Katello/katello/blob/katello-2.0.0-0/db/seeds.rb#L39-L44

I disagree.  Foreman should be locking core templates, so that you can update them at will, but you're stuck due to precedence.

In a multi-org and multi-loc setup, having the core templates editable is just totally broken.

-------------
Anonymous
Applied in changeset commit:katello|268ea646bcc163956b73ae7c474f386774902550.

Comment 13 Stephen Benjamin 2015-02-16 08:42:38 UTC
To test this, just confirm you edit "PXELinux global default" config template in the UI.  

It should be unlocked in 6.1.

Comment 15 Bryan Kearney 2015-08-11 13:20:27 UTC
This bug is slated to be released with Satellite 6.1.

Comment 16 errata-xmlrpc 2015-08-12 05:16:30 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-2015:1592