Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Created attachment 1219378[details]
error_template
Description of problem: Unable to preview provisioning template "Boot disk iPXE - host"
Version-Release number of selected component (if applicable):
Satellite 6.2.3
How reproducible:
100%
Steps to Reproduce:
1. Try to preview the "Boot disk iPXE - host" for any host
2.
3.
Actual results:
Warning! There was an error rendering the Boot disk iPXE - host template: undefined method `bootdisk_chain_url' for #
Expected results:
Preview the template
Additional info:
Can be resolved by creating a clone for the "Boot disk iPXE - host"
Change the following from:
~~~
...
# Chainload from Foreman rather than embedding OS info here, so the behaviour
# is entirely dynamic.
chain <%= bootdisk_chain_url %>
exit 0
...
~~~
To:
~~~
...
# Chainload from Foreman rather than embedding OS info here, so the behaviour
# is entirely dynamic.
chain <%= foreman_url ('iPXE') %>
exit 0
...
~~~
A bit of experimenting seems to imply that the above work around is not quite complete, and to get the same output as bootdisk_chain_url you need to add the mac address to the query string:-
# Chainload from Foreman rather than embedding OS info here, so the behaviour
# is entirely dynamic.
chain <%= foreman_url ('iPXE') %>&mac=<%= interface.mac %>
exit 0
...
Can someone confirm that is going to be a complete workaround with no hidden gotchas?
Thanks
Hello, sorry for the delay.
Bootdisk templates are not supposed to be associated with any host, therefore preview is not relevant. You may want to find or create iPXE template (regular one), but the bootdisk one is used when generating bootdisk images. It's special.
We ship one or more iPXE regular templates, please find them and associate them.
To fix this bug, please prevent associating bootdisk templates with OS objects. This requires change in the bootdisk plugin.
Comment 18Satellite Program
2018-02-21 16:54:17 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-2018:0336
Hello team,
I am reopening this bug as it seems to be the regression.
In satellite 6.3.1, tfm-rubygem-foreman_bootdisk-10.0.2.2-1.fm1_15.el7sat.noarch.
template is still generated with the below.
======
chain <%= bootdisk_chain_url %>
======
While downloading the HOST ISO below is the error.
Error: Failed to render boot disk template: ERF42-5290 [Foreman::Exception]: Unable to find template specified by bootdisk_host_template setting
I have cross-checked that all the templates have been added in correct organization and location.
While trying to review the bootdisk template below error was observed.
===============
There was an error rendering the Boot disk iPXE - host template: undefined method `bootdisk_chain_url' for #<#<Class:0x00007f3e7e17c9b0>:0x00007f3e7dd27b58>
Did you mean? bootdisk_url
===============
Please tell me know if you need any more inputs fro my side.
Regards,
Suraj Patil
Red Hat
Please don't reopen bugs that were verified, it would be much better to open a new one and add this one as "See also". Also please provide logs after you enabled all loggers and debug log level from a moment, the host iso is downloaded. See https://access.redhat.com/solutions/1155573 for instructions how to configure logging in that way. Don't forget to revert after you get the logs, it could produce a lot of data on production machine.
Preview can fail because of other reasons, which is why we need logs from the actual rendering.
Created attachment 1219378 [details] error_template Description of problem: Unable to preview provisioning template "Boot disk iPXE - host" Version-Release number of selected component (if applicable): Satellite 6.2.3 How reproducible: 100% Steps to Reproduce: 1. Try to preview the "Boot disk iPXE - host" for any host 2. 3. Actual results: Warning! There was an error rendering the Boot disk iPXE - host template: undefined method `bootdisk_chain_url' for # Expected results: Preview the template Additional info: Can be resolved by creating a clone for the "Boot disk iPXE - host" Change the following from: ~~~ ... # Chainload from Foreman rather than embedding OS info here, so the behaviour # is entirely dynamic. chain <%= bootdisk_chain_url %> exit 0 ... ~~~ To: ~~~ ... # Chainload from Foreman rather than embedding OS info here, so the behaviour # is entirely dynamic. chain <%= foreman_url ('iPXE') %> exit 0 ... ~~~