Project

General

Profile

Bug #25038

500 Error when viewing CoreOS provisioning template.

Added by Kyle Button 3 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

2018-09-25T20:58:17 [W|app|4d1e2] There was an error rendering the CoreOS provision template: | ActionView::Template::Error: ERF42-7327 [Foreman::Exception]: The snippet 'coreos_cloudconfig' threw an error: undefined method '#present?' for Subnet::Jail (Subnet::Ipv4) | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.5/lib/safemode/jail.rb:22:in `method_missing' | coreos_cloudconfig:100:in `bind' | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.5/lib/safemode.rb:51:in `eval' | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.5/lib/safemode.rb:51:in `eval' | /usr/share/foreman/lib/foreman/renderer.rb:127:in `render_safe' | /usr/share/foreman/lib/foreman/renderer.rb:245:in `unattended_render' | /usr/share/foreman/lib/foreman/renderer.rb:191:in `snippet' | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.5/lib/safemode/scope.rb:37:in `method_missing' | CoreOS provision:88:in `bind' | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.5/lib/safemode.rb:51:in `eval' | /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.5/lib/safemode.rb:51:in `eval' | /usr/share/foreman/lib/foreman/renderer.rb:127:in `render_safe' | /usr/share/foreman/lib/foreman/renderer.rb:245:in `unattended_render'

This looks similar to https://projects.theforeman.org/issues/23012

Associated revisions

Revision 7061acbc (diff)
Added by Kyle Button 3 months ago

fixes #25038 - allow subnet present in safemode

History

#1 Updated by The Foreman Bot 3 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6091 added

#2 Updated by Timo Goebel 3 months ago

  • Fixed in Releases 1.20.0 added

#3 Updated by Kyle Button 3 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Tomer Brisker 2 months ago

  • Assignee set to Kyle Button
  • Category set to Templates

Also available in: Atom PDF