Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1967030 - [RFE] Setting up Custom Crons which implies the ability to determine a cadence for specific day of week/month.
Summary: [RFE] Setting up Custom Crons which implies the ability to determine a cadenc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Remote Execution
Version: 6.8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: 6.14.0
Assignee: Adam Ruzicka
QA Contact: Peter Ondrejka
URL:
Whiteboard:
: 2221565 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-02 11:05 UTC by Jaskaran Singh Narula
Modified: 2023-11-08 14:17 UTC (History)
9 users (show)

Fixed In Version: rubygem-foreman-tasks-8.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:17:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36154 0 Normal Ready For Testing Replace parse-cron with something else 2023-03-02 14:04:12 UTC
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:17:48 UTC

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


Note You need to log in before you can comment on or make changes to this bug.