Project

General

Profile

Bug #18527

Updated by Dominic Cleal over 7 years ago

When I attempt to rebuild an existing host in Katello 3.2 Foreman 1.13.4 via the "Build" button on the host screen, the review window pops up and then hangs. The logs show a stack overflow.  

 Snippet from log: 

 <pre> 
 2017-02-15 16:01:44 07b05195 [app] [I] Started GET "/hosts/dsktsg006.sc.local/review_before_build" for 144.174.5.205 at 2017-02-15 16:01:44 -0500 
 2017-02-15 16:01:44 07b05195 [app] [I] Processing by HostsController#review_before_build as */* 
 2017-02-15 16:01:44 07b05195 [app] [I]     Parameters: {"id"=>"dsktsg006.sc.local"} 
 2017-02-15 16:01:45 07b05195 [app] [I] Rendering Kickstart default PXELinux 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'Kickstart NO USB' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'Kickstart default PXELinux' 
 2017-02-15 16:01:45 07b05195 [app] [I] Rendering Kickstart default iPXE 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'Kickstart NO USB' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'Kickstart default iPXE' 
 2017-02-15 16:01:45 07b05195 [app] [I] Rendering TSG Kickstart ITS Workstation 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'Kickstart NO USB' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'TSG Kickstart ITS Workstation' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'Kickstart NO USB' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'kickstart_networking_setup' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'subscription_manager_registration' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'puppet.conf' 
 2017-02-15 16:01:45 07b05195 [app] [I] Rendering Katello Kickstart Default Finish 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'Kickstart NO USB' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'Katello Kickstart Default Finish' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'kickstart_networking_setup' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'subscription_manager_registration' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'remote_execution_ssh_keys' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'puppet_setup' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'puppet.conf' 
 2017-02-15 16:01:45 07b05195 [app] [I] Rendering Katello Kickstart Default User Data 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'Kickstart NO USB' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'Katello Kickstart Default User Data' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'subscription_manager_registration' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'puppet_setup' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'puppet.conf' 
 2017-02-15 16:01:45 07b05195 [app] [I] Rendering Discovery Red Hat kexec 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'Kickstart NO USB' 
 2017-02-15 16:01:45 07b05195 [templates] [I] Rendering template 'Discovery Red Hat kexec' 
 2017-02-15 16:02:13 07b05195 [app] [W] Action failed 
  | SystemStackError: stack level too deep 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/visitor.rb:15:in `visit' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/visitor.rb:5:in `accept' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/emitter.rb:42:in `block in visit_Psych_Nodes_Mapping' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/emitter.rb:42:in `each' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/emitter.rb:42:in `visit_Psych_Nodes_Mapping' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/visitor.rb:15:in `visit' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/visitor.rb:5:in `accept' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/emitter.rb:26:in `block in visit_Psych_Nodes_Document' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/emitter.rb:26:in `each' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/emitter.rb:26:in `visit_Psych_Nodes_Document' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/visitor.rb:15:in `visit' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/visitor.rb:5:in `accept' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/emitter.rb:20:in `block in visit_Psych_Nodes_Stream' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/emitter.rb:20:in `each' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/emitter.rb:20:in `visit_Psych_Nodes_Stream' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/visitor.rb:15:in `visit' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/visitors/visitor.rb:5:in `accept' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych/nodes/node.rb:48:in `yaml' 
  | /opt/rh/rh-ruby22/root/usr/share/ruby/psych.rb:410:in `dump' 
  | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/coders/yaml_column.rb:20:in `dump' 
  | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/type/serialized.rb:26:in `type_cast_for_database' 
  | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/type/serialized.rb:36:in `changed_in_place?' 
  | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/attribute.rb:54:in `changed_in_place_from?' 
  | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/attribute_methods/dirty.rb:75:in `attribute_changed_in_place?' 
  | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/attribute_methods/dirty.rb:155:in `block in changed_in_place' 
  | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/attribute_methods/dirty.rb:154:in `select' 
  | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/attribute_methods/dirty.rb:154:in `changed_in_place' 
  | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/attribute_methods/dirty.rb:147:in `attributes_changed_in_place' 
  | /opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/attribute_methods/dirty.rb:63:in `changed_attributes' 

 [...] 


  | /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9: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/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' 
 2017-02-15 16:02:13 07b05195 [app] [I]     Rendered common/500.html.erb (8.6ms) 
 2017-02-15 16:02:13 07b05195 [app] [I] Completed 500 Internal Server Error in 28501ms (Views: 9.3ms | ActiveRecord: 547.5ms) 
 </pre>

Back