Bug 1142160 - Unable to use cloned PXELinux global default template with 6.0.4
Summary: Unable to use cloned PXELinux global default template with 6.0.4
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: Stephen Benjamin
QA Contact: Jan Hutař
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: 1122832
TreeView+ depends on / blocked
 
Reported: 2014-09-16 09:30 UTC by Lukas Zapletal
Modified: 2017-02-23 20:57 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 05:16:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1142656 0 unspecified CLOSED [RFE] Per-subnet PXELinux global default files 2021-02-22 00:41:40 UTC
Red Hat Knowledge Base (Solution) 1219353 0 None None None Never
Red Hat Product Errata RHSA-2015:1592 0 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 09:04:35 UTC

Internal Links: 1142656

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


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