Bug 1967030

Summary: [RFE] Setting up Custom Crons which implies the ability to determine a cadence for specific day of week/month.
Product: Red Hat Satellite Reporter: Jaskaran Singh Narula <janarula>
Component: Remote ExecutionAssignee: Adam Ruzicka <aruzicka>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.8.0CC: ahumbe, aruzicka, cyril.bartolo, dhjoshi, lstejska, mkalyat, pcreech, sabhasin, thadzhie
Target Milestone: 6.14.0Keywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-foreman-tasks-8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-08 14:17:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaskaran Singh Narula 2021-06-02 11:05:07 UTC
1. Proposed title of this feature request

>> [RFE] Setting up Custom Crons which implies the ability to determine a cadence for specific day(s) of week/month. 

2. What is the nature and description of the request?

>> In this RFE is designed to honor a very specific day in a week or in a month. 

>> To get better details, can refer the this comment -->> https://bugzilla.redhat.com/show_bug.cgi?id=1950825#c2

3. Why does the customer need this? (List the business requirements here)

>> Customer was a corn feature from the satellite where the satellite is intelligent enough to run a specific task for a particular day. That can be possible where that day comes once in a week or maybe once in a month based on the requirement. 


4. How would the customer like to achieve this? (List the functional requirements here)

>> Using Remote execution.

>> Customer wants to setup conditional crons(complex) Similar like mentioned below:
------
[1] * * * * 7 [ $(date +\%d) -le 07 ] && /run/your/script
or 
[2] * * * * 7 [ $(date +\%d) -le 07 ] 
------


5. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.

NA

6. Is there already an existing RFE upstream or in Red Hat Bugzilla?
NA

7. Does the customer have any specific timeline dependencies and which release would  they  like  to  target  (i.e.  RHEL5,RHEL6)?

NA

Comment 1 Adam Ruzicka 2023-03-02 14:04:13 UTC
If we move to fugit, this should be doable using custom syntax[1]. 

[1] - https://github.com/floraison/fugit#the-first-monday-of-the-month

Comment 4 Bryan Kearney 2023-05-10 12:01:52 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36154 has been resolved.

Comment 5 Peter Ondrejka 2023-06-13 12:26:24 UTC
Verified on 6.14 as part of SAT-17647 effort

Comment 6 Ron Lavi 2023-07-10 12:49:37 UTC
*** Bug 2221565 has been marked as a duplicate of this bug. ***

Comment 9 errata-xmlrpc 2023-11-08 14:17:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.14 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:6818