Bug #20836
closedSafe mode rendering does not correctly prevent using symbol to proc calls
Description
Using methods such as `.each`, a user can pass as an argument a symbol to be called, for example `.each(&:delete)`.
This allows execution of commands that should be blocked by the jail.
A fix proposal in the safemode gem has been suggested: https://github.com/svenfuchs/safemode/pull/23
Once it is merged we should update our version of the gem to the latest one.
All of the above already happened, templates must be updated in order to work with the safemode gem version 1.3.2+, I think this should be cherry-picked to 3.4-stable
Updated by Marek Hulán about 7 years ago
- Copied from Bug #20271: Safe mode rendering does not correctly prevent using symbol to proc calls added
Updated by The Foreman Bot about 7 years ago
- Pull request https://github.com/Katello/katello/pull/6931 added
Updated by Justin Sherrill about 7 years ago
- Has duplicate Bug #20753: After upgrade to latest version katello 3.4.5 the default templates still broken added
Updated by Mario Gamboa about 7 years ago
I just apply the patch in the katello kickstart and still have issues
Started POST "/templates/provisioning_templates/92-Katello%20Kickstart%20Default/preview" for 10.210.140.135 at 2017-09-21 12:02:05 +0200
2017-09-21 12:02:05 3c0836e6 [app] [I] Processing by ProvisioningTemplatesController#preview as */*
2017-09-21 12:02:05 3c0836e6 [app] [I] Parameters: {"template"=>"<%#\nkind: provision\nname: Katello Kickstart default\noses:\n- CentOS 5\n- CentOS 6\n- CentOS 7\n- RedHat 5\n- RedHat 6\n- RedHat 7\n- Fedora 19\n- Fedora 20\n%>\n<%\n rhel_compatible = @host.operatingsystem.family 'Redhat' && @host.operatingsystem.name != 'Fedora'\n os_major = @host.operatingsystem.major.to_i\n # safemode renderer does not support unary negation\n pm_set = @host.puppetmaster.empty? ? false : true\n puppet_enabled = pm_set || @host.params['force-puppet']\n salt_enabled = @host.params['salt_master'] ? true : false\n chef_enabled = @host.respond_to?(:chef_proxy) && @host.chef_proxy\n section_end = (rhel_compatible && os_major <= 5) ? '' : '%end'\n%>\ninstall\n<%= @mediapath >\nlang en_US.UTF-8\nselinux --enforcing\nkeyboard us\nskipx\n\n< subnet = @host.subnet >\n< if subnet.respond_to?(:dhcp_boot_mode?) ->\n< dhcp = subnet.dhcp_boot_mode? && @static ->\n< else ->\n< dhcp = @static ->\n< end ->\n\n#network --bootproto <= dhcp ? 'dhcp' : \"static --ip=\#{@host.ip} --netmask=\#{subnet.mask} --gateway=\#{subnet.gateway} --nameserver=\#{[subnet.dns_primary, subnet.dns_secondary].select(&:present?).join(',')}\" > --hostname <= @host ><= os_major >= 6 ? \" --device=\#{@host.mac}\" : '' ->\nnetwork --bootproto <= dhcp ? 'dhcp' : \"static --ip=\#{@host.ip} --netmask=\#{subnet.mask} --gateway=\#{subnet.gateway} --nameserver=\#{[subnet.dns_primary, subnet.dns_secondary].select{ |item| item.present? }.join(',')}\" > --hostname <= @host ><= \" --device=\#{@host.mac}\" ->\nrootpw --iscrypted <= root_pass >\nfirewall -<= os_major >= 6 ? 'service=' : '' >ssh\nauthconfig --useshadow --passalgo=<= @host.operatingsystem.password_hash || 'sha256' > --kickstart\ntimezone --utc <= @host.params['time-zone'] || 'UTC' >\n\n< if @host.operatingsystem.name 'Fedora' and os_major <= 16 ->\n# Bootloader exception for Fedora 16:\nbootloader --append=\"nofb quiet splash=quiet <=ks_console%>\" <%= grub_pass >\npart biosboot --fstype=biosboot --size=1\n< else ->\nbootloader --location=mbr --append=\"nofb quiet splash=quiet\" <= grub_pass >\n< end ->\n\n< if os_major 5 ->\nkey --skip\n< end ->\n\n< if @dynamic ->\n%include /tmp/diskpart.cfg\n< else ->\n<= @host.diskLayout >\n< end ->\n\ntext\nreboot\n\n%packages --ignoremissing\nyum\ndhclient\nntp\nwget\n@Core\n<= section_end ->\n\n< if @dynamic ->\n%pre\n<= @host.diskLayout >\n<= section_end ->\n< end ->\n\n%post --nochroot\nexec < /dev/tty3 > /dev/tty3\n#changing to VT 3 so that we can see whats going on....\n/usr/bin/chvt 3\n(\ncp -va /etc/resolv.conf /mnt/sysimage/etc/resolv.conf\n/usr/bin/chvt 1\n) 2>&1 | tee /mnt/sysimage/root/install.postnochroot.log\n<= section_end ->\n\n\n%post\nlogger \"Starting anaconda <= @host > postinstall\"\nexec < /dev/tty3 > /dev/tty3\n#changing to VT 3 so that we can see whats going on....\n/usr/bin/chvt 3\n(\n< if subnet.respond_to?(:dhcp_boot_mode?) ->\n<= snippet 'kickstart_networking_setup' >\n< end ->\n\n#update local time\necho \"updating system time\"\n/usr/sbin/ntpdate -sub <= @host.params['ntp-server'] || '0.fedora.pool.ntp.org' >\n/usr/sbin/hwclock --systohc\n\n<= snippet \"subscription_manager_registration\" >\n\n< if @host.info['parameters']['realm'] && @host.realm && @host.realm.realm_type 'FreeIPA' ->\n<= snippet \"freeipa_register\" >\n< end ->\n\n# update all the base packages from the updates repository\nyum -t -y -e 0 update\n\n<= snippet('remote_execution_ssh_keys') >\n\n< if chef_enabled >\n<= snippet 'chef_client' >\n< end ->\n\n< if puppet_enabled >\n<= snippet 'puppet_setup' >\n< end ->\n\n< if salt_enabled >\n<= snippet 'saltstack_setup' >\n< end ->\n\nsync\n\n< if @provisioning_type nil || @provisioning_type 'host' ->\n# Inform the build system that we are done.\necho \"Informing Foreman that we are built\"\nwget -q -O /dev/null --no-check-certificate <= foreman_url('built') >\n< end ->\n) 2>&1 | tee /root/install.post.log\nexit 0\n\n<= section_end -%>\n", "preview_host_id"=>"", "id"=>"92-Katello Kickstart Default"}
2017-09-21 12:02:05 3c0836e6 [app] [I] Current user: MGamboa (administrator)
2017-09-21 12:02:05 3c0836e6 [templates] [I] Rendering template 'Kickstart default'
2017-09-21 12:02:05 3c0836e6 [templates] [I] Rendering template 'Katello Kickstart Default'
2017-09-21 12:02:05 3c0836e6 [app] [W] Error rendering the Katello Kickstart Default template
| Safemode::SecurityError: Safemode doesn't allow to access 'block_pass' on &:present?
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:135:in `raise_security_error'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:117:in `block (2 levels) in <class:Parser>'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:156:in `process_call_args'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:38:in `process_call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:143:in `process_call_receiver'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:36:in `process_call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/ruby2ruby-2.1.3/lib/ruby2ruby.rb:444:in `process_evstr'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/ruby2ruby-2.1.3/lib/ruby2ruby.rb:1061:in `util_dthing'
| /opt/theforeman/tfm/root/usr/share/gems/gems/ruby2ruby-2.1.3/lib/ruby2ruby.rb:419:in `process_dstr'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:193:in `process_if'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:143:in `process_call_receiver'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:36:in `process_call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:156:in `process_call_args'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:38:in `process_call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/ruby2ruby-2.1.3/lib/ruby2ruby.rb:176:in `process_block'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:10:in `jail'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode.rb:49:in `eval'
| /usr/share/foreman/lib/foreman/renderer.rb:56:in `render_safe'
| /usr/share/foreman/lib/foreman/renderer.rb:175:in `unattended_render'
| /usr/share/foreman/app/controllers/templates_controller.rb:110:in `safe_render'
| /usr/share/foreman/app/controllers/templates_controller.rb:95:in `preview'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:198:in `process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:10:in `process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
| /usr/share/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `block in halting'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
| /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `block in halting'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
| /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `block in halting'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
| /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.4.1/lib/audited/sweeper.rb:14:in `around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in `public_send'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in `block in make_lambda'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `block in halting'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rescue.rb:29:in `process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:137:in `process'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:30:in `process'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal.rb:196:in `dispatch'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal.rb:237:in `block in action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:74:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:43:in `serve'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:43:in `block in serve'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:in `each'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:in `serve'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:815:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.4.0/lib/apipie/static_dispatcher.rb:65:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.4.0/lib/apipie/extractor/recorder.rb:132:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.4.0/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/etag.rb:24:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/conditionalget.rb:38:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/head.rb:13:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5/lib/katello/params_parser_wrapper.rb:12:in `call'
| /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:8:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/flash.rb:260:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/session/abstract/id.rb:225:in `context'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/session/abstract/id.rb:220:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/cookies.rb:560:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/query_cache.rb:36:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/rack/logger.rb:38:in `call_app'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/rack/logger.rb:22:in `call'
| /usr/share/foreman/lib/middleware/tagged_logging.rb:18:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/request_id.rb:21:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/methodoverride.rb:22:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/runtime.rb:18:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/sendfile.rb:113:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/secure_headers-3.4.1/lib/secure_headers/middleware.rb:12:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/engine.rb:518:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:165:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in `public_send'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in `method_missing'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/urlmap.rb:66:in `block in call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/urlmap.rb:50:in `each'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/urlmap.rb:50:in `call'
| /usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request'
| /usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request'
| /usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop'
| /usr/share/passenger/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'
| /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
| /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'
Updated by Marek Hulán about 7 years ago
Mario, make sure you have the templates in database updated. I think running foreman-rake db:seed should do the trick.
Updated by metal cated about 7 years ago
Marek Hulán wrote:
Mario, make sure you have the templates in database updated. I think running foreman-rake db:seed should do the trick.
I am still seeing this issue when provisioning even after updating in 3.4.5
Updated by metal cated about 7 years ago
metal cated wrote:
Marek Hulán wrote:
Mario, make sure you have the templates in database updated. I think running foreman-rake db:seed should do the trick.
I am still seeing this issue when provisioning even after updating in 3.4.5
2017-09-28 11:14:39 999c7402 [app] [I] Rendered text template (0.0ms)
2017-09-28 11:14:39 999c7402 [app] [I] Completed 500 Internal Server Error in 2839ms (Views: 0.6ms | ActiveRecord: 17.3ms)
2017-09-28 11:14:40 12d5b7df [app] [I] Started GET "/unattended/provision?token=571145c9-cb24-47f8-94a6-1b27076548c3" for 1.2.3.4 at 2017-09-28 11:14:40 -0400
2017-09-28 11:14:40 12d5b7df [app] [I] Processing by UnattendedController#host_template as TEXT
2017-09-28 11:14:40 12d5b7df [app] [I] Parameters: {"token"=>"571145c9-cb24-47f8-94a6-1b27076548c3", "kind"=>"provision"}
2017-09-28 11:14:40 12d5b7df [app] [I] Current user: foreman_api_admin (administrator)
2017-09-28 11:14:43 12d5b7df [templates] [I] Rendering template 'Kickstart default'
2017-09-28 11:14:43 12d5b7df [templates] [I] Rendering template 'Katello Kickstart Default'
2017-09-28 11:14:43 12d5b7df [app] [I] Rendered inline template (41.6ms)
2017-09-28 11:14:43 12d5b7df [app] [W] There was an error rendering the Katello Kickstart Default template:
| ActionView::Template::Error: Safemode doesn't allow to access 'block_pass' on &:present?
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:135:in `raise_security_error'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:117:in `block (2 levels) in <class:Parser>'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:156:in `process_call_args'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:38:in `process_call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:143:in `process_call_receiver'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:36:in `process_call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/ruby2ruby-2.1.3/lib/ruby2ruby.rb:444:in `process_evstr'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/ruby2ruby-2.1.3/lib/ruby2ruby.rb:1061:in `util_dthing'
| /opt/theforeman/tfm/root/usr/share/gems/gems/ruby2ruby-2.1.3/lib/ruby2ruby.rb:419:in `process_dstr'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:193:in `process_if'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:143:in `process_call_receiver'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:36:in `process_call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:156:in `process_call_args'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:38:in `process_call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/ruby2ruby-2.1.3/lib/ruby2ruby.rb:176:in `process_block'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:218:in `block (2 levels) in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:275:in `error_handler'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:217:in `block in process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:340:in `in_context'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sexp_processor-4.4.4/lib/sexp_processor.rb:194:in `process'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode/parser.rb:10:in `jail'
| /opt/theforeman/tfm/root/usr/share/gems/gems/safemode-1.3.2/lib/safemode.rb:49:in `eval'
| /usr/share/foreman/lib/foreman/renderer.rb:56:in `render_safe'
| /usr/share/foreman/lib/foreman/renderer.rb:175:in `unattended_render'
| inline template:1:in `_20abe78148aca60aa0f4c7a44dfe3b14'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/template.rb:145:in `block in render'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:166:in `instrument'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/template.rb:333:in `instrument'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/template.rb:143:in `render'
| /opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.2.0/lib/deface/action_view_extensions.rb:41:in `render'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:52:in `render_template'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:14:in `render'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/renderer.rb:46:in `render_template'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/renderer.rb:27:in `render'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:100:in `_render_template'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/streaming.rb:217:in `_render_template'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:83:in `render_to_body'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:32:in `render_to_body'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/renderers.rb:37:in `render_to_body'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/rendering.rb:25:in `render'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:16:in `render'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
| /opt/rh/rh-ruby22/root/usr/share/ruby/benchmark.rb:303:in `realtime'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/core_ext/benchmark.rb:12:in `ms'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:43:in `render'
| /usr/share/foreman/app/controllers/unattended_controller.rb:218:in `safe_render'
| /usr/share/foreman/app/controllers/unattended_controller.rb:74:in `render_template'
| /usr/share/foreman/app/controllers/unattended_controller.rb:47:in `host_template'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:198:in `process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:10:in `process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
| /usr/share/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `block in halting'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
| /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `block in halting'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
| /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `block in halting'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
| /opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.4.1/lib/audited/sweeper.rb:14:in `around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in `public_send'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in `block in make_lambda'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `block in halting'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rescue.rb:29:in `process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:137:in `process'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:30:in `process'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal.rb:196:in `dispatch'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal.rb:237:in `block in action'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:74:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:43:in `serve'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:43:in `block in serve'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:in `each'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:in `serve'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:815:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.4.0/lib/apipie/static_dispatcher.rb:65:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.4.0/lib/apipie/extractor/recorder.rb:132:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.4.0/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/etag.rb:24:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/conditionalget.rb:25:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/head.rb:13:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5/lib/katello/params_parser_wrapper.rb:12:in `call'
| /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:8:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/flash.rb:260:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/session/abstract/id.rb:225:in `context'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/session/abstract/id.rb:220:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/cookies.rb:560:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/query_cache.rb:36:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/rack/logger.rb:38:in `call_app'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/rack/logger.rb:22:in `call'
| /usr/share/foreman/lib/middleware/tagged_logging.rb:18:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/request_id.rb:21:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/methodoverride.rb:22:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/runtime.rb:18:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/sendfile.rb:113:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/secure_headers-3.4.1/lib/secure_headers/middleware.rb:12:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/engine.rb:518:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:165:in `call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in `public_send'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in `method_missing'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/urlmap.rb:66:in `block in call'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/urlmap.rb:50:in `each'
| /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/urlmap.rb:50:in `call'
| /usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request'
| /usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request'
| /usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop'
| /usr/share/passenger/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'
| /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
| /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'
Updated by metal cated about 7 years ago
$ rpm -qa|grep 'katello\|foreman'|sort
foreman-1.15.4-1.el7.noarch
foreman-cli-1.15.4-1.el7.noarch
foreman-compute-1.15.4-1.el7.noarch
foreman-debug-1.15.4-1.el7.noarch
foreman.glassnetsyr.local-apache-1.0-1.noarch
foreman.glassnetsyr.local-foreman-client-1.0-1.noarch
foreman.glassnetsyr.local-foreman-proxy-1.0-1.noarch
foreman.glassnetsyr.local-foreman-proxy-client-1.0-1.noarch
foreman.glassnetsyr.local-puppet-client-1.0-1.noarch
foreman.glassnetsyr.local-qpid-broker-1.0-2.noarch
foreman.glassnetsyr.local-qpid-client-cert-1.0-1.noarch
foreman.glassnetsyr.local-qpid-router-client-1.0-1.noarch
foreman.glassnetsyr.local-qpid-router-server-1.0-1.noarch
foreman.glassnetsyr.local-tomcat-1.0-1.noarch
foreman-installer-1.15.4-1.el7.noarch
foreman-installer-katello-3.4.5-1.el7.noarch
foreman-postgresql-1.15.4-1.el7.noarch
foreman-proxy-1.15.4-1.el7.noarch
foreman-release-1.15.4-1.el7.noarch
foreman-release-scl-3-1.el7.noarch
foreman-selinux-1.15.3-1.el7.noarch
foreman-vmware-1.15.4-1.el7.noarch
katello-3.4.5-1.el7.noarch
katello-certs-tools-2.4.0-1.el7.noarch
katello-client-bootstrap-1.4.0-2.el7.noarch
katello-common-3.4.5-1.el7.noarch
katello-debug-3.4.5-1.el7.noarch
katello-default-ca-1.0-1.noarch
katello-installer-base-3.4.5-1.el7.noarch
katello-repos-3.4.0-3.el7.noarch
katello-selinux-3.0.2-1.el7.noarch
katello-server-ca-1.0-1.noarch
katello-service-3.4.5-1.el7.noarch
pulp-katello-1.0.2-1.el7.noarch
tfm-rubygem-foreman_docker-3.2.1-1.fm1_15.el7.noarch
tfm-rubygem-foreman_remote_execution-1.3.3-1.fm1_15.el7.noarch
tfm-rubygem-foreman_remote_execution_core-1.0.5-1.fm1_15.el7.noarch
tfm-rubygem-foreman-tasks-0.9.4-1.fm1_15.el7.noarch
tfm-rubygem-foreman-tasks-core-0.1.4-1.fm1_15.el7.noarch
tfm-rubygem-hammer_cli_foreman-0.10.2-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3-5.el7.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.4-2.el7.noarch
tfm-rubygem-hammer_cli_foreman_remote_execution-0.0.5-2.fm1_12.el7.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.10-2.fm1_12.el7.noarch
tfm-rubygem-hammer_cli_katello-0.10.0-1.el7.noarch
tfm-rubygem-katello-3.4.5-1.el7.noarch
Updated by Mario Gamboa about 7 years ago
Same here same issues again after latest os and foreman updates
foreman-1.15.4-1.el7.noarch
foreman-cli-1.15.4-1.el7.noarch
foreman-compute-1.15.4-1.el7.noarch
foreman-debug-1.15.4-1.el7.noarch
foreman-installer-1.15.4-1.el7.noarch
foreman-installer-katello-3.4.5-1.el7.noarch
foreman-postgresql-1.15.4-1.el7.noarch
foreman-proxy-1.15.4-1.el7.noarch
foreman-release-1.15.4-1.el7.noarch
foreman-release-scl-3-1.el7.noarch
foreman-selinux-1.15.3-1.el7.noarch
foreman-vmware-1.15.4-1.el7.noarch
katello-3.4.5-1.el7.noarch
katello-certs-tools-2.4.0-1.el7.noarch
katello-client-bootstrap-1.4.0-2.el7.noarch
katello-common-3.4.5-1.el7.noarch
katello-debug-3.4.5-1.el7.noarch
katello-default-ca-1.0-1.noarch
katello-installer-base-3.4.5-1.el7.noarch
katello-repos-3.4.0-3.el7.noarch
katello-selinux-3.0.2-1.el7.noarch
katello-server-ca-1.0-1.noarch
katello-service-3.4.5-1.el7.noarch
pulp-katello-1.0.2-1.el7.noarch
tfm-rubygem-foreman_ansible-1.4.5-1.fm1_15.el7.noarch
tfm-rubygem-foreman_ansible_core-1.1.1-1.fm1_15.el7.noarch
tfm-rubygem-foreman_docker-3.2.1-1.fm1_15.el7.noarch
tfm-rubygem-foreman_openscap-0.7.6-1.fm1_15.el7.noarch
tfm-rubygem-foreman_remote_execution-1.3.3-1.fm1_15.el7.noarch
tfm-rubygem-foreman_remote_execution_core-1.0.5-1.fm1_15.el7.noarch
tfm-rubygem-foreman-tasks-0.9.4-1.fm1_15.el7.noarch
tfm-rubygem-foreman-tasks-core-0.1.4-1.fm1_15.el7.noarch
tfm-rubygem-hammer_cli_foreman-0.10.2-1.el7.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3-5.el7.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.4-2.el7.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.10-2.fm1_12.el7.noarch
tfm-rubygem-hammer_cli_katello-0.10.0-1.el7.noarch
tfm-rubygem-katello-3.4.5-1.el7.noarch
workaround yum downgrade tfm-rubygem-safemode
Updated by Marek Hulán about 7 years ago
If you customized templates or created your own, make sure none of it `uses the &: syntax. E.g.
.each(&:delete)
must be replaced to this
.each { |i| i.delete }
Default templates should have been updated automatically.
Updated by Mario Gamboa about 7 years ago
this is the template the normal katello default and also apply patch too solve the issue but still send error
<%#
kind: provision
name: Katello Kickstart default
oses:
- CentOS 5
- CentOS 6
- CentOS 7
- RedHat 5
- RedHat 6
- RedHat 7
- Fedora 19
- Fedora 20
>
<
rhel_compatible = @host.operatingsystem.family == 'Redhat' && @host.operatingsystem.name != 'Fedora'
os_major = @host.operatingsystem.major.to_i
# safemode renderer does not support unary negation
pm_set = @host.puppetmaster.empty? ? false : true
puppet_enabled = pm_set || @host.params['force-puppet']
salt_enabled = @host.params['salt_master'] ? true : false
chef_enabled = @host.respond_to?(:chef_proxy) && @host.chef_proxy
section_end = (rhel_compatible && os_major <= 5) ? '' : '%end'
>
install
<= @mediapath %>
lang en_US.UTF-8
selinux --enforcing
keyboard us
skipx
<% subnet = @host.subnet ->
< if subnet.respond_to?(:dhcp_boot_mode?) ->
< dhcp = subnet.dhcp_boot_mode? && @static ->
< else ->
< dhcp = @static ->
< end -%>
network --bootproto <%= dhcp ? 'dhcp' : "static --ip=#{@host.ip} --netmask=#{subnet.mask} --gateway=#{subnet.gateway} --nameserver=#{[subnet.dns_primary, subnet.dns_secondary].select{ |item| item.present? }.join(',')}" > --hostname <= @host ><= os_major >= 6 ? " --device=#{@host.mac}" : '' -%>
rootpw --iscrypted <%= root_pass >
firewall --<= os_major >= 6 ? 'service=' : '' >ssh
authconfig --useshadow --passalgo=<= @host.operatingsystem.password_hash || 'sha256' > --kickstart
timezone --utc <= @host.params['time-zone'] || 'UTC' %>
- Bootloader exception for Fedora 16:
bootloader --append="nofb quiet splash=quiet <%=ks_console%>" <%= grub_pass >
part biosboot --fstype=biosboot --size=1
< else ->
bootloader --location=mbr --append="nofb quiet splash=quiet" <= grub_pass >
< end -%>
<% if os_major == 5 ->
key --skip
< end -%>
<% if @dynamic ->
%include /tmp/diskpart.cfg
< else ->
<= @host.diskLayout >
< end -%>
text
reboot
packages --ignoremissing
yum
dhclient
ntp
wget
@Core
<= section_end -%>
<% if @dynamic ->
%pre
<= @host.diskLayout >
<= section_end ->
< end -%>
post --nochroot
exec < /dev/tty3 > /dev/tty3
#changing to VT 3 so that we can see whats going on....
/usr/bin/chvt 3
(
cp -va /etc/resolv.conf /mnt/sysimage/etc/resolv.conf
/usr/bin/chvt 1
) 2>&1 | tee /mnt/sysimage/root/install.postnochroot.log
<= section_end -%>
post
logger "Starting anaconda <= @host > postinstall"
exec < /dev/tty3 > /dev/tty3
#changing to VT 3 so that we can see whats going on....
/usr/bin/chvt 3
(
< if subnet.respond_to?(:dhcp_boot_mode?) ->
<= snippet 'kickstart_networking_setup' >
< end -%>
#update local time
echo "updating system time"
/usr/sbin/ntpdate -sub <%= @host.params['ntp-server'] || '0.fedora.pool.ntp.org' %>
/usr/sbin/hwclock --systohc
<%= snippet "subscription_manager_registration" %>
<% if @host.info['parameters']['realm'] && @host.realm && @host.realm.realm_type == 'FreeIPA' ->
<= snippet "freeipa_register" >
< end -%>
- update all the base packages from the updates repository
yum -t -y -e 0 update
<%= snippet('remote_execution_ssh_keys') %>
<% if chef_enabled >
<= snippet 'chef_client' >
< end -%>
<% if puppet_enabled >
<= snippet 'puppet_setup' >
< end -%>
<% if salt_enabled >
<= snippet 'saltstack_setup' >
< end -%>
sync
<% if @provisioning_type nil || @provisioning_type 'host' -%>- Inform the build system that we are done.
echo "Informing Foreman that we are built"
wget -q -O /dev/null --no-check-certificate <%= foreman_url('built') >
< end -%>
) 2>&1 | tee /root/install.post.log
exit 0
<%= section_end -%>
Updated by metal cated about 7 years ago
Is the above supposed to be missing % signs and == ?
Thanks
Updated by metal cated about 7 years ago
metal cated wrote:
Is the above supposed to be missing % signs and == ?
Thanks
OK, well I answered my own question. I see people referencing 3.4.6 but there is no official release of 3.4.6 that I can see. But for now I copied these and am crossing my fingers.
https://github.com/Katello/katello/tree/master/app/views/foreman/unattended
Thanks
Updated by metal cated about 7 years ago
For anyone else having this problem. The above worked. I replaced the the files under: /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.4.5/app/views/foreman/unattended with the above linked files and ran: foreman-rake db:seed - Then restarted the services.
Thanks
Updated by Justin Sherrill about 7 years ago
- Has duplicate Bug #21406: Remove to_proc syntax from Katello Kickstart Default added