Project

General

Profile

Actions

Bug #1453

closed

Solaris install fails if Safemode-rendering is enabled

Added by David M. over 12 years ago. Updated almost 6 years ago.

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

Description

The installation of solaris using foreman fails if "safemode_render" is true.

This message is shown when trying to open the template:

There was an error rendering the Jumpstart Default template: undefined method 'use_image' for Host::Jail (Host)

Workaround: Set "safemode_render" to false in "More->Settings".


Related issues 1 (1 open0 closed)

Related to Foreman - Refactor #11293: Add tests for methods functionality defined in HostTemplateHelpersNew08/05/2015Actions
Actions #1

Updated by David M. about 12 years ago

There is also an error when viewing the pxegrub-template. This time the workaround doesnt help:

There was an error rendering the Jumpstart default PXEGrub template: undefined local variable or method `multiboot' for #<#<Class:0x7ffa030e0038>:0x7ffa02a55f60>
Actions #2

Updated by Garrett D about 10 years ago

I am experiencing this with foreman-1.4.2-1.el6.noarch on CentOS 6.5.

There was an error rendering the Jumpstart default PXEGrub template: undefined local variable or method `multiboot' for #<#<Class:0x007f147cdbf258>:0x007f147cda92f0>

Actions #3

Updated by Marek Hulán almost 9 years ago

  • Description updated (diff)
  • Category changed from Web Interface to Templates
  • Assignee changed from Ohad Levy to Marek Hulán

This was caused by https://github.com/theforeman/community-templates/blob/develop/jumpstart/provision.erb#L8

For multiboot (and other) we need to allow several methods in host jail and change the template to load it from @host, since it's defined in HostTemplateHelpers concern, which is not included in controller.

Actions #4

Updated by The Foreman Bot almost 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2525 added
  • Pull request deleted ()
Actions #5

Updated by Marek Hulán almost 9 years ago

Community templates related PR opened at https://github.com/theforeman/community-templates/pull/193

Actions #6

Updated by Marek Hulán over 8 years ago

  • Related to Refactor #11293: Add tests for methods functionality defined in HostTemplateHelpers added
Actions #7

Updated by Dominic Cleal over 8 years ago

  • translation missing: en.field_release set to 63
Actions #8

Updated by Marek Hulán over 8 years ago

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

Also available in: Atom PDF