Bug #1453
closedSolaris install fails if Safemode-rendering is enabled
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".
Updated by David M. over 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>
Updated by Garrett D over 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>
Updated by Marek Hulán over 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.
Updated by The Foreman Bot over 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2525 added
- Pull request deleted (
)
Updated by Marek Hulán over 9 years ago
Community templates related PR opened at https://github.com/theforeman/community-templates/pull/193
Updated by Marek Hulán about 9 years ago
- Related to Refactor #11293: Add tests for methods functionality defined in HostTemplateHelpers added
Updated by Dominic Cleal about 9 years ago
- Translation missing: en.field_release set to 63
Updated by Marek Hulán about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 6ea461fe5d14212fe6c9203634a67105e8334391.