Bug 697034 - Repo sync last/next sync values are inconsistent
Summary: Repo sync last/next sync values are inconsistent
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: Sprint 23
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close 688298
TreeView+ depends on / blocked
 
Reported: 2011-04-15 16:39 UTC by Jay Dobies
Modified: 2014-03-31 01:39 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:06:46 UTC
Embargoed:


Attachments (Terms of Use)

Description Jay Dobies 2011-04-15 16:39:13 UTC
I created a repo at 12:32 with an interval of 6 hours. When I query it from RHUI Manager, I see:

Next sync: 04-15-2011 18:32

That's correct, it should run again in 6 hours. Then I manually kick off a sync and it shows the last sync as:

Last sync: 04-15-2011 16:33

That should reflect 12:33.

The other, probably related issue, is that the format of the next and last sync coming out of our API is inconsistent. The last sync is a UTC float but the next sync is a dict (with hours, minutes, etc.). These need to be made consistent.

Comment 1 Jason Connor 2011-04-26 15:23:01 UTC
This bug will be automatically fixed by the new iso8601 date/time support.

Comment 2 Jason Connor 2011-05-12 17:41:42 UTC
Fixed as part of the new iso8601 support

Comment 3 Jeff Ortel 2011-05-12 18:45:42 UTC
build: 0.176

Comment 4 Sachin Ghai 2011-05-26 10:50:08 UTC
To verify this defect quickly, I set the interval of 1 hour and its working fine.

I created 3 repos using rhui-manager. and checked the status using "dr"..


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


-= Repository Synchronization Status =-

Last Refreshed: 15:49:38
(updated every 50 seconds, ctrl+c to exit)

Next Sync                    Last Sync                    Last Result         
------------------------------------------------------------------------------
Red Hat Enterprise Linux Server 6 Updates (RPMs) (6Server-x86_64)
05-26-2011 16:49             Never                        scheduled  

Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-i386)
05-26-2011 16:46             Never                        scheduled  

Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-x86_64)
05-26-2011 16:46             Never                        scheduled  


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

Here next sync is after 1 hour.

Then I triggered, the individual repo sync for the 2nd listed repo (
Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-i386))

                          
------------------------------------------------------------------------------

         Last Result   Next Sync         Repository
         ------------------------------------------
  -  1 : scheduled  05-26-2011 16:49  Red Hat Enterprise Linux Server 6 Updates (RPMs) (6Server-x86_64)
  x  2 : scheduled  05-26-2011 16:46  Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-i386)
  -  3 : scheduled  05-26-2011 16:46  Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-x86_64)
Enter value (1-3) to toggle selection, 'c' to confirm selections, or '?' for more commands: c


The following repositories will be scheduled for synchronization:
  Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-i386)
Proceed? (y/n) y


Scheduling sync for Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-i386)...
... successfully scheduled for the next available timeslot.

------------------------------------------------------------------------------


When sync is finished, I checked the status using "dr". And its showing correct 
time in "Last Sync" and in correct format.

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


-= Repository Synchronization Status =-

Last Refreshed: 15:55:40
(updated every 50 seconds, ctrl+c to exit)

Next Sync                    Last Sync                    Last Result         
------------------------------------------------------------------------------
Red Hat Enterprise Linux Server 6 Updates (RPMs) (6Server-x86_64)
05-26-2011 16:49             Never                        scheduled  

Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-i386)
05-26-2011 16:46             05-26-2011 15:53             finished   

Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-x86_64)
05-26-2011 16:46             Never                        scheduled  


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

Comment 5 Preethi Thomas 2011-08-16 12:06:46 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 6 Preethi Thomas 2011-08-16 12:20:44 UTC
Closing with Community Release 15

pulp-0.0.223-4.


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