Bug 1302098

Summary: Incorrect Next Sync date calculation in weekly Sync Plan
Product: Red Hat Satellite Reporter: Matt Ruzicka <mruzicka>
Component: Content ManagementAssignee: Walden Raines <walden>
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.5CC: bbuckingham, bkearney, sthirugn, walden, zhunting
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Linux   
URL: http://projects.theforeman.org/issues/16035
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.0.0.86-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1396647 1463696 (view as bug list) Environment:
Last Closed: 2016-12-12 17:10:12 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:
Bug Depends On:    
Bug Blocks: 1396647, 1463301, 1463696    

Description Matt Ruzicka 2016-01-26 18:49:57 UTC
Description of problem:

Setting the Start Date for some weekly Sync Plan schedules results in an incorrect date calculation that causes the Next Sync date to skip a week.

Issue appears to be linked at at one specific date.

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

Satellite 6.1.5 at least

How reproducible: Appears to be every time


Steps to Reproduce:
1. Create weekly Sync Plan
2. Set Start Date to Jan 22, 2016 (may be date specific)
3. Next Sync date should show Feb 5, 2016 (skipping Jan 29, 2016)

Actual results:

Next Sync date reports Feb 5, 2016

Expected results:

Next Sync should be Jan 29, 2016


Additional info:

Customer reported this in their environment and it was also reproduced in house with the start date Jan 22, 2016.  Using the start date Jan 25, 2016 /did not/ reproduce the error.

Comment 1 Matt Ruzicka 2016-02-02 21:29:30 UTC
I heard from the on site DEE that while the Next Sync date displayed Feb 5, the since actually execute and run on Jan 29 as would normally be expected.

In other words, the logic seems to work (e.g., every Friday), just the display of the next date the sync will run was in error (e.g., the following Friday).

Comment 10 Walden Raines 2016-08-09 18:41:40 UTC
Created redmine issue http://projects.theforeman.org/issues/16035 from this bug

Comment 11 Walden Raines 2016-08-09 19:14:34 UTC
PR: https://github.com/Katello/katello/pull/6238

Comment 12 Bryan Kearney 2016-08-09 20:12:21 UTC
Upstream bug component is Content Management

Comment 13 Bryan Kearney 2016-08-22 18:12:18 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/16035 has been closed

Comment 14 Matt Ruzicka 2016-08-22 18:38:09 UTC
Thanks for the update Bryan.  Would we expect to see this in 6.2.2 or will we need to wait for 6.3 since it landed in the current foreman?

Comment 18 Peter Ondrejka 2016-10-21 09:29:47 UTC
Verified in Sat 6 snap 5. Next sync is calculated correctly for weekly sync in case the start date is less than a week in past from the current day.

Comment 19 Peter Ondrejka 2016-12-01 12:27:45 UTC
Verified in 6.2.5

Comment 21 errata-xmlrpc 2016-12-12 17:10:12 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/RHBA-2016:2940