Project

General

Profile

Bug #23012

CoreOS provision template uses an udeclared method.

Added by Shimon Shtein over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:

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'

Associated revisions

Revision 8ae9d962 (diff)
Added by Tomer Brisker over 2 years ago

Fixes #23012 - allow OS release in safemode

This is needed for CoreOS provisioning templates.

History

#1 Updated by The Foreman Bot over 2 years ago

  • Assignee set to Tomer Brisker
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5358 added

#2 Updated by Anonymous over 2 years ago

  • Legacy Backlogs Release (now unused) set to 330

#3 Updated by Anonymous over 2 years ago

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

#4 Updated by Anonymous over 2 years ago

  • Legacy Backlogs Release (now unused) changed from 330 to 296

#5 Updated by The Foreman Bot over 2 years ago

  • Pull request https://github.com/theforeman/foreman/pull/5366 added

Also available in: Atom PDF