Project

General

Profile

Actions

Bug #25650

closed

AutoYast Default iPXE Template Broken due to Template Changes

Added by Eric Hansen over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

After upgrade from 1.18.1 to 1.20.0, building SLES is broken.
If I a attempt to preview this template,
https://github.com/theforeman/community-templates/blob/develop/provisioning_templates/iPXE/autoyast_default_ipxe.erb

I see the following error,
Warning! There was an error rendering the AutoYaST default iPXE template: undefined local variable or method `medium_uri' for #<Foreman::Renderer::Scope::Provisioning:0x00007f3d1136db70> Did you mean? medium_url media_url

Actions #1

Updated by Eric Hansen over 5 years ago

If I change this from medium_uri to medium_url, I get a different error

There was an error rendering the AutoYaST default iPXE template: No route matches {:action=>"update", :controller=>"media"}, missing required keys: [:id]

Actions #2

Updated by Eric Hansen over 5 years ago

  • Category set to Templates
  • Found in Releases 1.20.0 added
Actions #3

Updated by Eric Hansen over 5 years ago

Trying media_url, I get the following error

There was an error rendering the AutoYaST default iPXE template: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true

Actions #4

Updated by Eric Hansen over 5 years ago

Fixed by modifying to @host.os.medium_uri(@host)

Actions #5

Updated by Tomer Brisker over 5 years ago

  • Assignee set to Shimon Shtein
  • Target version set to 1.20.2
  • Triaged changed from No to Yes
Actions #6

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6316 added
Actions #7

Updated by Shimon Shtein over 5 years ago

  • Bugzilla link set to 1654160
Actions #8

Updated by Lukas Zapletal over 5 years ago

  • Fixed in Releases 1.21.0 added
Actions #9

Updated by Lukas Zapletal over 5 years ago

  • Status changed from Ready For Testing to Resolved
Actions #10

Updated by Tomer Brisker over 5 years ago

  • Fixed in Releases 1.20.2 added
Actions #11

Updated by Tomer Brisker over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF