Feature #11643
closedAllow through API methods to render templates without configuring a host in build mode
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1207044
Description of problem:
If a host isn't in build mode, you cannot check if the kickstart template is rendered properly. Either you enable build mode and use http://sat6host/unattended/provision or you get an authentication cookie and use https://sat6host/unattended/provision?spoof=<hostname>. Both ways are tricky.
How reproducible:
Always
Steps to Reproduce:
1. Access to http://sat6host/unattended/provision from a host which is not in build mode and you won't get the template
2. Access to https://sat6.host/unattended/provision/?spoof=>hostname> and you will be redirected to login pages
3. No more methods to get it rendered
Expected results:
At least [1] should work, no matter the build status. Or it would be even better to have any API method to get it rendered.
Updated by Dominic Cleal over 9 years ago
Bryan Kearney wrote:
1. Access to http://sat6host/unattended/provision from a host which is not in build mode and you won't get the template
[..]
At least [1] should work, no matter the build status
No, it really should not, it can change states. It is not part of the user API, it should not be called directly. Ditto the spoof URL, it's part of the UI, not API.
Updated by Bryan Kearney over 9 years ago
Is there a better way for users to get at the rendered ks file?
-- bk
Dominic Cleal wrote:
Bryan Kearney wrote:
1. Access to http://sat6host/unattended/provision from a host which is not in build mode and you won't get the template
[..]
At least [1] should work, no matter the build status
No, it really should not, it can change states. It is not part of the user API, it should not be called directly. Ditto the spoof URL, it's part of the UI, not API.
Updated by The Foreman Bot about 9 years ago
- Status changed from New to Ready For Testing
- Assignee set to Shlomi Zadok
- Pull request https://github.com/theforeman/foreman/pull/2889 added
Updated by Dominic Cleal about 9 years ago
- Translation missing: en.field_release set to 71
Updated by Dominic Cleal about 9 years ago
- Related to Refactor #12529: Use load_template_vars in TFTP orchestration's PXE menu generation added
Updated by Shlomi Zadok about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 8a817cb209c9499663beb850f7eb8f1726da42ad.
Updated by Dominic Cleal about 9 years ago
- Related to Bug #12621: Excessive TemplateKind DB queries when retrieving API docs added