Bug #17893

Unable to preview iPXE template because of missing method bootdisk_chain_url

Added by Shlomi Zadok 4 months ago. Updated 3 months ago.

Status:Closed
Priority:Normal
Assigned To:Ondřej Pražák
Category:-
Target version:Foreman - Team Marek backlog
Difficulty: Pull request:https://github.com/theforeman/foreman_bootdisk/pull/37, https://github.com/theforeman/foreman_bootdisk/pull/36
Bugzilla link:1393848

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1393848
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:
~~~
...
  1. Chainload from Foreman rather than embedding OS info here, so the behaviour
  2. is entirely dynamic.
    chain <%= bootdisk_chain_url %>
    exit 0
    ...
    ~~~
To:
~~~
...
  1. Chainload from Foreman rather than embedding OS info here, so the behaviour
  2. is entirely dynamic.
    chain <%= foreman_url ('iPXE') %>
    exit 0
    ...
    ~~~

Related issues

Related to Foreman - Feature #18175: Optionally disable preview for a template Resolved 01/20/2017

Associated revisions

Revision ec0acf54
Added by Ondřej Pražák 3 months ago

Fixes #17893 - Fix preview for bootdisk templates

History

#1 Updated by Marek Hulán 4 months ago

  • Priority changed from High to Normal
  • Target version set to Team Marek backlog

#2 Updated by Ondřej Pražák 3 months ago

  • Related to Feature #18175: Optionally disable preview for a template added

#3 Updated by The Foreman Bot 3 months ago

  • Status changed from New to Ready For Testing
  • Assigned To set to Ondřej Pražák
  • Pull request https://github.com/theforeman/foreman_bootdisk/pull/36 added

#4 Updated by The Foreman Bot 3 months ago

  • Pull request https://github.com/theforeman/foreman_bootdisk/pull/37 added

#5 Updated by Ondřej Pražák 3 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF