Actions
Bug #23012
closedCoreOS provision template uses an udeclared method.
Difficulty:
Triaged:
Description
When you preview coreos provision template, it renders an error: "There was an error during rendering, return to the Code tab to edit the template."
Looking at the logs reveals:
2018-03-26T09:59:36 7c9264d0 [app] [W] Error rendering the CoreOS provision template | Safemode::NoMethodError: undefined method '#release' for Operatingsystem::Jail (Redhat) | /usr/local/rvm/gems/ruby-2.4.1@foreman/gems/safemode-1.3.4/lib/safemode/jail.rb:22:in `method_missing' | CoreOS provision:58:in `bind' | /usr/local/rvm/gems/ruby-2.4.1@foreman/gems/safemode-1.3.4/lib/safemode.rb:51:in `eval' | /usr/local/rvm/gems/ruby-2.4.1@foreman/gems/safemode-1.3.4/lib/safemode.rb:51:in `eval' | /home/shim/Documents/foreman/foreman/lib/foreman/renderer.rb:84:in `render_safe' | /home/shim/Documents/foreman/foreman/lib/foreman/renderer.rb:202:in `unattended_render' | /home/shim/Documents/foreman/foreman/app/controllers/templates_controller.rb:115:in `safe_render' | /home/shim/Documents/foreman/foreman/app/controllers/templates_controller.rb:96:in `preview' | /usr/local/rvm/gems/ruby-2.4.1@foreman/gems/actionpack-5.1.4/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action' | /usr/local/rvm/gems/ruby-2.4.1@foreman/gems/actionpack-5.1.4/lib/abstract_controller/base.rb:186:in `process_action' | /usr/local/rvm/gems/ruby-2.4.1@foreman/gems/actionpack-5.1.4/lib/action_controller/metal/rendering.rb:30:in `process_action' | /usr/local/rvm/gems/ruby-2.4.1@foreman/gems/actionpack-5.1.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Assignee set to Tomer Brisker
- Pull request https://github.com/theforeman/foreman/pull/5358 added
Updated by Anonymous over 6 years ago
- Translation missing: en.field_release set to 330
Updated by Anonymous over 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 8ae9d962fcc95fcafcf4e6163ae51b2063f32e01.
Updated by Anonymous over 6 years ago
- Translation missing: en.field_release changed from 330 to 296
Updated by The Foreman Bot over 6 years ago
- Pull request https://github.com/theforeman/foreman/pull/5366 added
Actions