Bug 1646525

Summary: Recurring Logic / Recurring Execution Monthly Ignores "Day" field
Product: Red Hat Satellite Reporter: Samson Wick <swick>
Component: Remote ExecutionAssignee: Adam Ruzicka <aruzicka>
Status: CLOSED ERRATA QA Contact: Vladimír Sedmík <vsedmik>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.3.4CC: aruzicka, fredrik.lehtonen, inecas, kupadhya, vsedmik
Target Milestone: 6.6.0Keywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman-tasks-0.14.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 19:47:46 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 Samson Wick 2018-11-05 16:00:10 UTC
Description of problem: When configuring a Job to recur and selecting "Monthly" as the frequency, the current day of the month is always used regardless of what value(s) is placed in the "Day" field.


Version-Release number of selected component (if applicable): 6.3.4 and 6.4.0


How reproducible: 


Steps to Reproduce:
1. From the Satellite GUI, browse to Monitor->Jobs
2. Click "Run Job"
3. Select any value for Category, Template, Search Query.
4. Provide any value for "command".
5. Check the bullet for "Set up recurring execution"
6. Select "Monthly" for "Repeats"
7. In the "Days" field, provide any day or combination of days other than the current day of the month.
8. Click "Submit"
9. Observe that the next occurrence is scheduled on the same day as the present day next month, irrespective of what day of the month was specified.

Actual results:
The recurring task is scheduled for the same day of the month as the present day, not the day specified.  For example, if the recurring logic is created on 11/5, execution will be scheduled to always occur on the 5th of each month regardless of what date was specified.


Expected results:
The recurring task is scheduled for the day or days of the month specified on the form.


Additional info:
This has been tested with Satellite 6.3.4 and 6.4, using the latest versions of Firefox and Chrome, running on both Linux and Windows.

As a workaround, "cronline" can be used to produce the desired result.

Comment 1 Adam Ruzicka 2018-11-06 11:44:05 UTC
Created redmine issue http://projects.theforeman.org/issues/25395 from this bug

Comment 3 Satellite Program 2018-12-06 21:02:40 UTC
Upstream bug assigned to aruzicka

Comment 4 Satellite Program 2018-12-06 21:02:43 UTC
Upstream bug assigned to aruzicka

Comment 5 Satellite Program 2018-12-07 17:02:06 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/25395 has been resolved.

Comment 8 Bryan Kearney 2019-10-22 19:47:46 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, 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-2019:3172