Project

General

Profile

Actions

Bug #25566

closed

Dynlfow undefined method `dynflow_logger'

Added by Ivan Necas over 5 years ago. Updated over 5 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1654217

Description of problem:
Memory recycler on sat 6.4 doesn't work, and leads to executor not working properly, nor restarting

Version-Release number of selected component (if applicable):
sat 6.4+

How reproducible:
always

Steps to Reproduce:
1. configure the following options in /etc/sysconfig/dynflowd:EXECUTOR_MEMORY_MONITOR_DELAY=60 EXECUTOR_MEMORY_MONITOR_INTERVAL=60 EXECUTOR_MEMORY_LIMIT=400mb
2. restart foreman-tasks (dynflowd) service
3. start various tasks (rex jobs, repo syncs or publish/promote might be good candidates)

Actual results:
At the first memory check event, an error occurs, and the dynlfow stops processing the requests.

Expected results:
The recycle works as expected

Additional info:

in /var/log/foreman/dynflow_executor.output there is the following message:

E, [2018-11-27T17:30:34.887429 #20326] ERROR -- /clock: undefined method `dynflow_logger' for #<Dynflow::World:0x000000000abd60c8> (NoMethodError)
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/rails/daemon.rb:150:in `log_memory_within_limit'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/rails/daemon.rb:135:in `block in initialize_memory_watcher'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/watchers/memory_consumption_watcher.rb:26:in `check_memory_state'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/clock.rb:40:in `apply'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/clock.rb:87:in `run_ready_timers'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/clock.rb:70:in `tick'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/actor.rb:6:in `on_message'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/context.rb:46:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/executes_context.rb:7:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.0.5/lib/dynflow/actor.rb:26:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/awaits.rb:15:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/sets_results.rb:14:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/buffer.rb:38:in `process_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/buffer.rb:31:in `process_envelopes?'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/buffer.rb:20:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/termination.rb:55:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.4/lib/concurrent/actor/behaviour/removes_child.rb:10:in `on_envelope'

Actions #1

Updated by Ivan Necas over 5 years ago

  • Subject changed from Dynlfow undefined method `dynflow_logger' to Dynlfow undefined method `dynflow_logger'
  • Status changed from New to Closed
  • Pull request https://github.com/Dynflow/dynflow/pull/302 added
Actions #2

Updated by Ivan Necas over 5 years ago

  • Triaged changed from No to Yes
Actions #3

Updated by Adam Ruzicka over 5 years ago

  • Fixed in Releases dynflow-1.1.3 added
Actions

Also available in: Atom PDF