Bug 708416 - CDS status doesn't properly show the most recent sync
Summary: CDS status doesn't properly show the most recent sync
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 25
Assignee: Jay Dobies
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: pulp-verified
TreeView+ depends on / blocked
 
Reported: 2011-05-27 15:23 UTC by Jay Dobies
Modified: 2011-08-16 14:02 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 14:02:26 UTC
Embargoed:


Attachments (Terms of Use)

Description Jay Dobies 2011-05-27 15:23:24 UTC
The sync_list return order logic is really wonky. I thought it was chronological when I wrote this CLI command, but it's not, it's chronological by subset. I need to go in and properly order them before assuming the most recent is first in the list.

Comment 1 Jay Dobies 2011-06-01 18:31:03 UTC
commit fd6487ee6e325e9ed479f0fca2767c326b641559
Author: Jay Dobies <jason.dobies>
Date:   Wed Jun 1 14:34:34 2011 -0400

    708416 - Order the sync list before determining most recent sync

src/pulp/client/core/cds.py

Comment 2 Jeff Ortel 2011-06-02 05:56:47 UTC
build: 0.185

Comment 3 Preethi Thomas 2011-07-20 17:25:06 UTC
[root@preethi ~]# pulp-admin cds status --hostname=pulp-cds.usersys.redhat.com
+------------------------------------------+
                 CDS Status
+------------------------------------------+

Name                	pulp-cds.usersys.redhat.com
Hostname            	pulp-cds.usersys.redhat.com
Description         	None                     
Cluster             	None                     
Sync Schedule       	None                     
Repos               	f14, pulp                
Last Sync           	2011-07-20 12:30:37-04:00
Status:
   Responding       	Yes                      
   Last Heartbeat   	2011-07-20 17:30:39.785797+00:00

+------------------------------------------+
           Most Recent Sync Tasks
+------------------------------------------+

State               	Running                  
Start Time          	2011-07-20 13:28:43-04:00
Finish Time         	In Progress              

[root@preethi ~]# pulp-admin cds status --hostname=pulp-cds.usersys.redhat.com
+------------------------------------------+
                 CDS Status
+------------------------------------------+

Name                	pulp-cds.usersys.redhat.com
Hostname            	pulp-cds.usersys.redhat.com
Description         	None                     
Cluster             	None                     
Sync Schedule       	None                     
Repos               	f14, pulp                
Last Sync           	2011-07-20 13:30:56-04:00
Status:
   Responding       	Yes                      
   Last Heartbeat   	2011-07-20 17:32:01.554974+00:00

+------------------------------------------+
           Most Recent Sync Tasks
+------------------------------------------+

State               	Finished                 
Start Time          	2011-07-20 13:28:43-04:00
Finish Time         	2011-07-20 13:30:56-04:00

[root@preethi ~]# pulp-admin cds sync --hostname=pulp-cds.usersys.redhat.com
Sync for CDS [pulp-cds.usersys.redhat.com] started
Use "cds status" to check on the progress
[root@preethi ~]# rpm -q pulp
pulp-0.0.210-1.fc14.noarch

[root@preethi ~]# pulp-admin cds status --hostname=pulp-cds.usersys.redhat.com
+------------------------------------------+
                 CDS Status
+------------------------------------------+

Name                	pulp-cds.usersys.redhat.com
Hostname            	pulp-cds.usersys.redhat.com
Description         	None                     
Cluster             	None                     
Sync Schedule       	None                     
Repos               	f14, pulp                
Last Sync           	2011-07-20 13:30:56-04:00
Status:
   Responding       	Yes                      
   Last Heartbeat   	2011-07-20 17:33:54.466758+00:00

+------------------------------------------+
           Most Recent Sync Tasks
+------------------------------------------+

State               	Finished                 
Start Time          	2011-07-20 13:28:43-04:00
Finish Time         	2011-07-20 13:30:56-04:00

Comment 4 Preethi Thomas 2011-08-16 14:02:26 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.