Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1207044 - [RFE] Allow through API methods to render templates without configuring a host in build mode
[RFE] Allow through API methods to render templates without configuring a hos...
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: API (Show other bugs)
Unspecified
Unspecified Linux
unspecified Severity low (vote)
: Beta
: Unused
Assigned To: Shlomi Zadok
Stephen Benjamin
http://projects.theforeman.org/issues...
: FutureFeature, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-30 02:44 EDT by sgarciam
Modified: 2016-07-27 04:50 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-07-27 04:50:08 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
Foreman Issue Tracker 11643 None None None 2016-04-22 11:01 EDT
Red Hat Product Errata RHBA-2016:1500 normal SHIPPED_LIVE Red Hat Satellite 6.2 Base Libraries 2016-07-27 08:24:38 EDT

  None (edit)
Description sgarciam 2015-03-30 02:44:32 EDT
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.
Comment 1 RHEL Product and Program Management 2015-03-30 03:03:28 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 Bryan Kearney 2015-09-01 13:19:06 EDT
Created redmine issue http://projects.theforeman.org/issues/11643 from this bug
Comment 5 Bryan Kearney 2015-11-04 06:05:13 EST
Upstream bug assigned to szadok@redhat.com
Comment 6 Bryan Kearney 2015-11-19 10:05:43 EST
Moving to POST since upstream bug http://projects.theforeman.org/issues/11643 has been closed
-------------
Shlomi Zadok
Applied in changeset commit:8a817cb209c9499663beb850f7eb8f1726da42ad.
Comment 7 Bryan Kearney 2015-11-20 11:31:45 EST
Move to 6.2 since this will be contained in the next rebase.
Comment 11 Stephen Benjamin 2016-07-15 09:18:48 EDT
Verified in Satellite 6.2 Snap 20.1. There's now an API to preview templates:


[root@sat-snap-rhel7 ~]# curl -u admin:changeme -H "Content-Type:application/json" -H "Accept:application/json"  https://sat-snap-rhel7.example.com/api/v2/hosts/centos7.example.com/template/provision

{"template":"\n\ninstall\nurl --url...[snip]
Comment 13 errata-xmlrpc 2016-07-27 04:50:08 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/RHBA-2016:1500

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