Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-36361

Implement systemd timer for recurring Foreman tasks using Quadlet

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • 6.19.0
    • None
    • Installation
    • None
    • False
    • Satellite Rocket Sprint 2, Satellite Rocket Sprint 7, Satellite Rocket Sprint 8, Satellite Rocket Sprint 9, Satellite Rocket Sprint 10, Satellite Rocket Sprint 11, Satellite Rocket Sprint 13, Satellite Rocket Sprint 12
    • sat-rocket
    • None
    • None
    • None
    • None

      Goal:

      Foreman has various recurring tasks that today run via cron. Foremanctl should avoid cron and instead try to provide container native solutions where possible.

      This story is about porting over the tasks to use systemd timers as a direct port. This is a short term solution where SAT-40686 is a proper solution.

      The timers should follow a default schedule, ideally aiming at aligning the jobs to a regular pattern that falls into:

      • Hourly
      • Daily
      • Weekly
      • Monthly

      The timers may use RandomizedDelaySec= or FixedRandomDelay= to avoid all jobs on the server running at exactly the same time, but is not a requirement.

      Acceptance criteria:

      • All cronjobs that run today are converted to systemd timers
      • The approach is documented in foremanctl's docs directory so that there's a reference design we can point to

          1.
          add recurring task for foreman_tasks:cleanup by archanaserver · Pull Request #298 · theforeman/foremanctl · GitHub Sub-task Review Undefined Archana Kumari
          2.
          add recurring task support for katello by archanaserver · Pull Request #299 · theforeman/foremanctl · GitHub Sub-task Review Undefined Archana Kumari
          3.
          add quadlet recurring job runner and timers for core rake tasks by archanaserver · Pull Request #288 · theforeman/foremanctl · GitHub Sub-task Closed Undefined Archana Kumari
          4.
          Add cron rake tasks for recurring jobs by archanaserver · Pull Request #10784 · theforeman/foreman · GitHub Sub-task Closed Undefined Archana Kumari
          5.
          update defaults to define 4 generic timers by archanaserver · Pull Request #332 · theforeman/foremanctl · GitHub Sub-task Review Undefined Archana Kumari
          6.
          [QE] add quadlet recurring job runner and timers for core rake tasks Sub-task Closed Undefined Shubham Ganar
          7.
          [QE] add recurring task for foreman_tasks:cleanup Sub-task New Undefined Shubham Ganar
          8.
          [QE] add recurring task support for katello Sub-task New Undefined Shubham Ganar
          9.
          [QE] update defaults to define 4 generic timers Sub-task To Do Undefined Shubham Ganar
          10.
          [QE] Add cron rake tasks for recurring jobs Sub-task Closed Undefined Shubham Ganar
          11.
          Update Foreman core packaging to use cron:* rake tasks Sub-task New Undefined Unassigned
          12.
          Update Katello recurring jobs and packaging Sub-task New Undefined Unassigned
          13.
          Update foreman_expire_hosts plugin cron integration Sub-task New Undefined Unassigned
          14.
          Update handling of foreman-tasks cleanup cron with Foreman::Cron Sub-task New Undefined Unassigned
          15.
          Update documentation references to cron jobs Sub-task New Undefined Unassigned
          16.
          Add release note for recurring jobs change Sub-task New Undefined Unassigned

              rh-ee-akumari Archana Kumari
              rh-ee-akumari Archana Kumari
              Shubham Ganar Shubham Ganar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: