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 1257833 - Disabling token_duration disables ks template substitution
Summary: Disabling token_duration disables ks template substitution
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning Templates
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact:
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-28 08:10 UTC by Chris Jenkins
Modified: 2019-11-14 06:54 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-07 17:24:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 11602 0 Normal Rejected Disabling token_duration disables ks template substitution 2020-02-08 15:22:09 UTC

Description Chris Jenkins 2015-08-28 08:10:57 UTC
Description of problem: When using capsules, setting the token_duration to "0" stops the ks=<capsule> in the PXE template being set and reverts to ks=<satellite server> 


Version-Release number of selected component (if applicable):6.1.1


How reproducible:
Every time.

Steps to Reproduce:
1. Create a capsule and set subnet, domain and location. Capsule requires "Templates" option.
2. Create a new host using the subnet associated to the capsule & subnet
3. Check  /var/lib/tftboot/pxelinux.cfg/<mac addr> on the capsule

Actual results:
default linux
label linux
kernel boot/RedHat-7.1-x86_64-vmlinuz
append initrd=boot/RedHat-7.1-x86_64-initrd.img ks=http://<satellite Server>:80/unattended/provision network ks.sendmac
IPAPPEND 2


Expected results:
default linux
label linux
kernel boot/RedHat-7.1-x86_64-vmlinuz
append initrd=boot/RedHat-7.1-x86_64-initrd.img ks=http://<capsule servre>:8000/unattended/provision?token=42e3c2e3-3841-44ab-a65a-c2dddfdff16f network ks.sendmac
IPAPPEND 2

Comment 1 Lukas Zapletal 2015-08-28 14:18:24 UTC
Triage notes: Template proxying cannot work without tokens. Instead silently falling back to direct connection, we could raise an error.

Comment 2 Bryan Kearney 2015-08-28 17:33:41 UTC
Created redmine issue http://projects.theforeman.org/issues/11602 from this bug

Comment 5 Ohad Levy 2016-02-22 07:50:43 UTC
I would not like to support token less installation in general, and in particular on capsules. the token is a unique way of identifying the host, regardless of ip address / mac address (e.g. which NIC used to boot it) etc. all the other alternative/legacy options have their own quirks.

the token duration is configurable (e.g. if the use wish to create a nearly fixed tokens that is possible) however its usually hidden from the user, and I would like to understand the root cause of why disabling tokens.

however, afaiu, in https://github.com/theforeman/smart-proxy/commit/38a0935152a0cc6f04c3843b8258866b2b96e0ad lukas added a way to proxy the additional information required to identify the requesting host, in which case, this might be already solved in 6.2

adding needinfo for lzap to confirm, and needinfo or reported to explain more of what is the usage case for turning off tokens.

thanks!

Comment 6 Lukas Zapletal 2016-02-23 13:21:39 UTC
Yes, that should fix the issue (Satellite 6.2).

Comment 7 Brad Buckingham 2016-04-01 15:40:52 UTC
Hi Lukas,

Can you provide some verification steps for QE based upon the changes referenced in comment 5?  Thanks!

Comment 8 Lukas Zapletal 2016-04-04 08:14:15 UTC
Sure thing,

so the process is simple, setup provisioning with Capsule templating (without direct connection to Satellite - make sure to block all the communication) and also set token_duration to zero in global settings. Then provision a bare-metal or VM host which installs via Anaconda (e.g. not image-based provisioning).

Comment 9 Bryan Kearney 2016-10-07 17:24:32 UTC
Based on Comment 8, I am marking this as closed for 6.2 If you are seeing issues with this, please feel free to re-open with additional information.


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