Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1142160 - Unable to use cloned PXELinux global default template with 6.0.4
Unable to use cloned PXELinux global default template with 6.0.4
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Provisioning (Show other bugs)
6.0.4
Unspecified Unspecified
high Severity high (vote)
: Unspecified
: Unused
Assigned To: Stephen Benjamin
Jan Hutař
http://projects.theforeman.org/issues...
: Triaged
Depends On:
Blocks: 1122832
  Show dependency treegraph
 
Reported: 2014-09-16 05:30 EDT by Lukas Zapletal
Modified: 2017-02-23 15:57 EST (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-12 01:16:30 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1219353 None None None Never
Red Hat Product Errata RHSA-2015:1592 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 05:04:35 EDT

  None (edit)
Description Lukas Zapletal 2014-09-16 05:30:32 EDT
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 Product and Program Management 2014-09-16 05:33:21 EDT
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 05:49:38 EDT
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 12:31:37 EDT
Created redmine issue http://projects.theforeman.org/issues/7480 from this bug
Comment 8 Bryan Kearney 2014-11-26 06:03:56 EST
Upstream bug assigned to stbenjam@redhat.com
Comment 9 Bryan Kearney 2014-12-18 12:03:57 EST
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 03:42:38 EST
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 09:20:27 EDT
This bug is slated to be released with Satellite 6.1.
Comment 16 errata-xmlrpc 2015-08-12 01:16:30 EDT
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

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