Project

General

Profile

Actions

Bug #17871

open

Circular dependency detected while autoloading constant ConfigReportStatusCalculator

Added by Ohad Levy almost 8 years ago. Updated almost 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi,

I've found a task (Import Config report) in failed task with the following error:

Exception:

RuntimeError: Circular dependency detected while autoloading constant ConfigReportStatusCalculator
Backtrace:

/home/foreman/gems/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:492:in `load_missing_constant'
/home/foreman/gems/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:184:in `const_missing'
/home/foreman/gems/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:526:in `load_missing_constant'
/home/foreman/gems/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:184:in `const_missing'
/home/foreman/git/foreman/app/services/config_report_importer.rb:24:in `report_status'
/home/foreman/git/foreman/app/services/report_importer.rb:127:in `create_report_and_logs'
/home/foreman/git/foreman/app/services/config_report_importer.rb:13:in `create_report_and_logs'
/home/foreman/git/foreman/app/services/report_importer.rb:39:in `import'
/home/foreman/git/foreman/app/services/report_importer.rb:20:in `import'
/home/foreman/git/foreman/app/models/config_report.rb:27:in `import'
/home/foreman/git/foreman/app/services/actions/foreman/report/import.rb:15:in `run'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/action.rb:506:in `block (3 levels) in execute_run'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/middleware/stack.rb:26:in `call'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/middleware.rb:17:in `pass'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/action/progress.rb:30:in `with_progress_calculation'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/action/progress.rb:16:in `run'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/middleware/stack.rb:22:in `call'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/middleware/stack.rb:26:in `pass'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/middleware.rb:17:in `pass'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/middleware.rb:30:in `run'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/middleware/stack.rb:22:in `call'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/middleware/world.rb:30:in `execute'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/action.rb:505:in `block (2 levels) in execute_run'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/action.rb:504:in `catch'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/action.rb:504:in `block in execute_run'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/action.rb:419:in `call'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/action.rb:419:in `block in with_error_handling'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/action.rb:419:in `catch'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/action.rb:419:in `with_error_handling'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/action.rb:499:in `execute_run'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/action.rb:260:in `execute'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:9:in `block (2 levels) in execute'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/execution_plan/steps/abstract.rb:155:in `call'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:8:in `block in execute'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:22:in `open_action'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:7:in `execute'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/director.rb:42:in `execute'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/executors/parallel/worker.rb:11:in `on_message'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/context.rb:46:in `on_envelope'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/executes_context.rb:7:in `on_envelope'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/foreman/gems/gems/dynflow-0.8.17/lib/dynflow/actor.rb:26:in `on_envelope'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/awaits.rb:15:in `on_envelope'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/sets_results.rb:14:in `on_envelope'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/buffer.rb:38:in `process_envelope'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/buffer.rb:31:in `process_envelopes?'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/buffer.rb:20:in `on_envelope'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/termination.rb:55:in `on_envelope'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/removes_child.rb:10:in `on_envelope'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/behaviour/sets_results.rb:14:in `on_envelope'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/core.rb:161:in `process_envelope'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/core.rb:95:in `block in on_envelope'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/core.rb:118:in `block (2 levels) in schedule_execution'
/home/foreman/gems/gems/concurrent-ruby-1.0.2/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `block in synchronize'
/home/foreman/gems/gems/concurrent-ruby-1.0.2/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize'
/home/foreman/gems/gems/concurrent-ruby-1.0.2/lib/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize'
/home/foreman/gems/gems/concurrent-ruby-edge-0.2.2/lib/concurrent/actor/core.rb:115:in `block in schedule_execution'
/home/foreman/gems/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/serialized_execution.rb:18:in `call'
/home/foreman/gems/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/serialized_execution.rb:18:in `call'
/home/foreman/gems/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/serialized_execution.rb:96:in `work'
/home/foreman/gems/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/serialized_execution.rb:77:in `block in call_job'
/home/foreman/gems/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `call'
/home/foreman/gems/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task'
/home/foreman/gems/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker'
/home/foreman/gems/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop'
/home/foreman/gems/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker'
/home/foreman/gems/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch'
/home/foreman/gems/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'
/home/foreman/gems/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in `call'
/home/foreman/gems/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in `block in create_with_logging_context'


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #15779: Make report, puppet classes and environments importing asynchronous using foreman-tasksClosedMarek Hulán07/22/2016Actions
Actions #1

Updated by Ohad Levy almost 8 years ago

  • Related to Feature #15779: Make report, puppet classes and environments importing asynchronous using foreman-tasks added
Actions #2

Updated by Marek Hulán almost 8 years ago

Is there any chance you ran foreman in development rails environment? Can you reproduce it?

Actions

Also available in: Atom PDF