Project

General

Profile

Actions

Feature #24114

closed

Enable configuration setting to turn on foreman tasks cleanup logging

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Difficulty:
Triaged:
No
Found in Releases:

Description

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

Steps to Reproduce:
For debugging foreman-tasks cleanup, we asked one customer to enable the logging in the code as follows:

apply this patch against `/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.*` directory, to increase cleanup logging information:

diff --git a/lib/foreman_tasks/cleaner.rb b/lib/foreman_tasks/cleaner.rb
index 956dbe2..85e6480 100644
--- a/lib/foreman_tasks/cleaner.rb
++ b/lib/foreman_tasks/cleaner.rb
@ -79,7 +79,7 @ module ForemanTasks
:states => ['stopped'],
:backup_dir=ForemanTasks.dynflow.world.persistence.current_backup_dir }
options = default_options.merge(options)
-
Foreman::Logging.logger('foreman-tasks').info("Running foreman-tasks cleaner with options #{options.inspect}")
@filter = options[:filter]
@after = parse_time_interval(options[:after])
@states = options[:states]


Related issues 1 (0 open1 closed)

Related to foreman-tasks - Feature #22915: Have a Mechanism to Proactively Detect and Clean "orphaned" Dynflow TasksClosedAdam RuzickaActions
Actions #1

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ivan Necas
  • Pull request https://github.com/theforeman/foreman-tasks/pull/351 added
Actions #2

Updated by Ivan Necas over 5 years ago

  • Related to Feature #22915: Have a Mechanism to Proactively Detect and Clean "orphaned" Dynflow Tasks added
Actions #3

Updated by Ivan Necas over 5 years ago

  • Subject changed from Enable configuration setting to turn on foreman tasks cleanup logging to Enable configuration setting to turn on foreman tasks cleanup logging

Just noting, that some logging was also added as part of #22915

Actions #4

Updated by Ivan Necas over 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #5

Updated by Ivan Necas over 5 years ago

  • Target version set to foreman-tasks-0.13.4 (Foreman 1.18)
  • Fixed in Releases foreman-tasks-0.13.4 (Foreman 1.18), foreman-tasks-0.14.0 (Foreman 1.20) added
Actions

Also available in: Atom PDF