Bug 698648

Summary: Next scheduled task not being created on repos with schedules
Product: [Retired] Pulp Reporter: Jay Dobies <jason.dobies>
Component: z_otherAssignee: Jason Connor <jconnor>
Status: CLOSED NOTABUG QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mmccune
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-21 16:50:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 688298, 698582    

Description Jay Dobies 2011-04-21 13:22:31 UTC
(Originally filed in the RHUI project, I created this bug in Pulp since the functionality for rescheduling resides in there)



Description of problem:

When a scheduled repo sync get finished, the status in "Next sync" field is
automatically set as "unscheduled".

Even I re-trigger the sync schedule for same repo, still the status of "Next
sync" remains "unscheduled" and status in "Last result" set as running.


Version-Release number of selected component (if applicable):
pulp 0.168
RHUI Tool 2.0.15

How reproducible:
Always

Steps to Reproduce:
1. Schedule a repo sync and when sync will be finished, check the status in
"Next Sync"
2. Retrigger the schedule repo sync for same repo, sync started and state
changed to "running" under "Last result" but status of "Next sync" remains
"unscheduled"


Actual results:
"Next sync status remains "Unscheduled"

Expected results:
Proper time should be set for "Next sync" after triggering the repo sync .

Additional info:

See the status for 2nd repo (Red Hat Update Infrastructure 1.2 (SRPMS)
(5Server-x86_64) )


-= Repository Synchronization Status =-

Last Refreshed: 10:57:36
(updated every 5 seconds, ctrl+c to exit)

Next Sync                    Last Sync                    Last Result         
------------------------------------------------------------------------------
Red Hat Enterprise Linux Server 6 Updates (SRPMS) (6Server-x86_64)
04-21-2011 11:14             04-21-2011 05:00             finished   

Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-x86_64)
04-21-2011 10:57             04-21-2011 05:17             running    


                                         Connected: dhcp193-131.pnq.redhat.com
------------------------------------------------------------------------------

-= Repository Synchronization Status =-

Last Refreshed: 10:58:49
(updated every 5 seconds, ctrl+c to exit)

Next Sync                    Last Sync                    Last Result         
------------------------------------------------------------------------------
Red Hat Enterprise Linux Server 6 Updates (SRPMS) (6Server-x86_64)
04-21-2011 11:14             04-21-2011 05:00             finished   

Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-x86_64)
Unscheduled                  04-21-2011 05:27             finished   


                                         Connected: dhcp193-131.pnq.redhat.com
------------------------------------------------------------------------------





------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Repository Synchronization Status =-

Last Refreshed: 11:00:08
(updated every 5 seconds, ctrl+c to exit)

Next Sync                    Last Sync                    Last Result         
------------------------------------------------------------------------------
Red Hat Enterprise Linux Server 6 Updates (SRPMS) (6Server-x86_64)
04-21-2011 11:14             04-21-2011 05:00             finished   

Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-x86_64)
Unscheduled                  04-21-2011 05:27             running    


                                         Connected: dhcp193-131.pnq.redhat.com
------------------------------------------------------------------------------
^Crhui (sync) => 

Select one or more repositories to schedule to be synchronized before its
scheduled time.
The sync will happen as soon as possible depending on other tasks that may be
executing
in the RHUI.

         Last Result   Next Sync         Repository
         ------------------------------------------
  -  1 : finished  04-21-2011 11:14  Red Hat Enterprise Linux Server 6 Updates
(SRPMS) (6Server-x86_64)
  x  2 : finished  Unscheduled       Red Hat Update Infrastructure 1.2 (SRPMS)
(5Server-x86_64)
Enter value from (1-2) to toggle selection, 'c' to confirm selections, or '?'
for more commands:

Comment 1 Jay Dobies 2011-04-21 13:25:49 UTC
One note, the text "Unscheduled" text is added by RHUI Manager in the case where the date for the next scheduled sync is returned as None.

Comment 2 Jay Dobies 2011-04-21 16:50:10 UTC
Talked about this with Jason Connor and, based on what we can see in this bug report, this is working as intended. I'll be adding a fix to the RHUI Manager output to indicate that the next sync isn't scheduled because it's currently running.