Bug 698648 - Next scheduled task not being created on repos with schedules
Summary: Next scheduled task not being created on repos with schedules
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: 688298 698582
TreeView+ depends on / blocked
 
Reported: 2011-04-21 13:22 UTC by Jay Dobies
Modified: 2014-03-31 01:39 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-21 16:50:10 UTC
Embargoed:


Attachments (Terms of Use)

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.


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