Project

General

Profile

Bug #29191

Unable to render iPXE template 'Kickstart default iPXE': no implicit conversion of URI::HTTP into String"

Added by Oleh Fedorenko 5 months ago. Updated 3 months ago.

Status:
Closed
Priority:
High
Category:
Templates
Target version:
-
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1807073

Description of problem:

Unable to render iPXE template 'Kickstart default iPXE': no implicit conversion of URI::HTTP into String"]

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Create a Host and fill all the mandatory fields
2. Under the 'Parameters' tab, add a host parameter as below:
-> Name: kickstart_liveimg
-> Type: string
-> Value: custom/RHEL_8_Image/RHEL_8_Image/devserver2-1.tar.xz

3. Click on 'Submit'

Actual results:
We get the below message:
---
The following errors may prevent a successful build:

Templates

Failure parsing Kickstart default iPXE: no implicit conversion of URI::HTTP into String.
---
Expected results:
The build finishes successfully

Additional info:
Workaround:
Change 'Kickstart default iPXE' template as below:

Modify the line below from:
stage2 = host_param('kickstart_liveimg') ? 'inst.stage2=' + medium_uri : ''
To:
stage2 = host_param('kickstart_liveimg') ? 'inst.stage2=' + medium_uri.to_s : ''

Associated revisions

Revision a4c603a6 (diff)
Added by Oleh Fedorenko 5 months ago

Fixes #29191 - Use medium_uri.to_s in Kickstart default iPXE

History

#1 Updated by Oleh Fedorenko 5 months ago

  • Triaged changed from No to Yes
  • Difficulty set to easy
  • Assignee set to Oleh Fedorenko
  • Status changed from New to Assigned
  • Category changed from TFTP to Templates

#2 Updated by The Foreman Bot 5 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/community-templates/pull/694 added

#3 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases 2.1.0 added

#4 Updated by Oleh Fedorenko 5 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Tomer Brisker 3 months ago

  • Subject changed from Unable to render iPXE template 'Kickstart default iPXE': no implicit conversion of URI::HTTP into String"] to Unable to render iPXE template 'Kickstart default iPXE': no implicit conversion of URI::HTTP into String"

Also available in: Atom PDF