Project

General

Profile

Actions

Bug #34134

closed

OpenSCAP scheduling is always taking place on the next selected day (/etc/cron.d/foreman_scap_client_cron)

Added by Fabio Sbano over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Target version:
-
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

--------
Host > Compliance > Policies > Schedule (select ex Wednesday)
--------

schedules are created wrongly on hosts

0 1 * * 4 root /bin/sleep 203; /usr/bin/foreman_scap_client 2 2>&1 | logger -t foreman_scap_client

Actions #1

Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_openscap/pull/521 added
Actions #2

Updated by Fabio Sbano over 2 years ago

DAYS_INTO_WEEK | = | { sunday: 0, monday: 1, tuesday: 2, wednesday: 3, thursday: 4, friday: 5, saturday: 6 }
WEEKEND_DAYS | = | [ 6, 0 ]

https://api.rubyonrails.org/v6.1.4/classes/DateAndTime/Calculations.html

Actions #3

Updated by Fabio Sbano over 2 years ago

  • Assignee set to Ondřej Pražák
  • Difficulty set to easy
Actions #4

Updated by The Foreman Bot over 2 years ago

  • Fixed in Releases foreman_openscap 5.2.0 added
Actions #5

Updated by Fabio Sbano over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions #6

Updated by Lukas Zapletal over 2 years ago

  • Triaged changed from No to Yes
  • Bugzilla link set to 2036721
Actions

Also available in: Atom PDF