[Satellite 6] cannot clone new hosts, "Error rendering the custom Satellite Kickstart Default template: ActionView::Template::Error: Safemode doesn't allow to access 'block_pass' on &:present"

Solution Verified - Updated -

Issue

  • Could not clone new hosts, receiving 500 internal error during the provisioning:
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
2018-03-06 10:19:05 1bf80ed1 [app] [I]   Rendered text template (0.0ms)
2018-03-06 10:19:05 1bf80ed1 [app] [I] Completed 500 Internal Server Error in 56ms (Views: 0.3ms | ActiveRecord: 8.1ms)
2018-03-06 10:19:05 2c471510 [app] [I] Started GET "/notification_recipients" for 10.1.5.1 at 2018-03-06 10:19:05 +1300
2018-03-06 10:19:05 2c471510 [app] [I] Processing by NotificationRecipientsController#index as JSON
2018-03-06 10:19:05 2c471510 [app] [I] Current user: foreman-admin (administrator)
2018-03-06 10:19:05 2c471510 [app] [I] Expire fragment views/tabs_and_title_records-3 (0.1ms)
2018-03-06 10:19:05 2c471510 [app] [I] Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.7ms)
2018-03-06 10:19:06 b37e5707 [app] [I] Started GET "/unattended/provision?token=+FILTERED+ for 10.1.1.10 at 2018-03-06 10:19:06 +1300
2018-03-06 10:19:06 b37e5707 [app] [I] Processing by UnattendedController#host_template as TEXT
2018-03-06 10:19:06 b37e5707 [app] [I]   Parameters: {"token"=+FILTERED+ "static"=>"yes", "kind"=>"provision"}
2018-03-06 10:19:06 b37e5707 [app] [I] Current user: foreman_api_admin (administrator)
2018-03-06 10:19:06 b37e5707 [templates] [I] Rendering template 'RHEL7-custom'
2018-03-06 10:19:06 b37e5707 [templates] [I] Rendering template 'Custom Satellite Kickstart Default'
2018-03-06 10:19:06 b37e5707 [app] [I]   Rendered inline template (18.6ms)
2018-03-06 10:19:06 b37e5707 [app] [W] There was an error rendering the Custom Satellite Kickstart Default template: 


2018-03-06 10:19:04 84b77b8c [app] [I]   Parameters: {"token"=+FILTERED+ "static"=>"yes", "kind"=>"provision"}
2018-03-06 10:19:04 84b77b8c [app] [I] Current user: foreman_api_admin (administrator)
2018-03-06 10:19:04 84b77b8c [templates] [I] Rendering template 'RHEL7-custom'
2018-03-06 10:19:04 84b77b8c [templates] [I] Rendering template 'Custom Satellite Kickstart Default'
2018-03-06 10:19:04 84b77b8c [app] [I]   Rendered inline template (19.3ms)
2018-03-06 10:19:04 84b77b8c [app] [W] There was an error rendering the Custom Satellite Kickstart Default template: 
ActionView::Template::Error: Safemode doesn't allow to access 'block_pass' on &:present? 

Environment

  • Red Hat Satellite 6.2 or later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In