Project

General

Profile

Bug #25650

AutoYast Default iPXE Template Broken due to Template Changes

Added by Eric Hansen 11 months ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
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

Associated revisions

Revision bce7dcfd (diff)
Added by Shimon Shtein 11 months ago

Fixes #25650 - Added medium_uri macro to templates

History

#1 Updated by Eric Hansen 11 months 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]

#2 Updated by Eric Hansen 11 months ago

  • Category set to Templates
  • Found in Releases 1.20.0 added

#3 Updated by Eric Hansen 11 months 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

#4 Updated by Eric Hansen 11 months ago

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

#5 Updated by Tomer Brisker 11 months ago

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

#6 Updated by The Foreman Bot 11 months ago

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

#7 Updated by Shimon Shtein 11 months ago

  • Bugzilla link set to 1654160

#8 Updated by Lukas Zapletal 11 months ago

  • Fixed in Releases 1.21.0 added

#9 Updated by Lukas Zapletal 11 months ago

  • Status changed from Ready For Testing to Resolved

#10 Updated by Tomer Brisker 10 months ago

  • Fixed in Releases 1.20.2 added

#11 Updated by Tomer Brisker 9 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF