Bug 684057

Summary: Sync status and history is transient and is lost when you restart httpd
Product: [Retired] Pulp Reporter: Mike McCune <mmccune>
Component: z_otherAssignee: Jason Connor <jconnor>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mmccune, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 24   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 12:07:34 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: 647488, 684061    

Description Mike McCune 2011-03-11 00:27:37 UTC
Users lose all history and error reporting for synchronization results when httpd is restarted.

Would be ideal if we could get this history stored and persisted in the database so we have a running record over time that doesn't go away if the server gets restarted.

Comment 1 Jason Connor 2011-06-08 08:19:41 UTC
This has been addressed with the implementation of the task history collection and webservices api

Comment 2 Jeff Ortel 2011-06-08 23:58:30 UTC
build: 0.188

Comment 3 Preethi Thomas 2011-07-06 18:15:55 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.200-1.fc14.noarch


[root@preethi ~]# pulp-admin repo status --id=f14
+------------------------------------------+
               Status for f14
+------------------------------------------+
Repository: f14
Number of Packages: 2766
Last Sync: 2011-07-06 13:56:14-04:00
Currently syncing: 100% done (2773 of 2773 packages downloaded)

[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# service pulp-server restart
Stopping httpd:                                            [  OK  ]
Stopping Qpid AMQP daemon:                                 [  OK  ]
Stopping mongod:                                           [  OK  ]
Starting mongod:                                           [  OK  ]
Starting Qpid AMQP daemon:                                 [  OK  ]
Starting httpd:                                            [  OK  ]
[root@preethi ~]# pulp-admin repo status --id=f14
+------------------------------------------+
               Status for f14
+------------------------------------------+
Repository: f14
Number of Packages: 2766
Last Sync: 2011-07-06 13:56:14-04:00
Currently syncing: progress unknown

[root@preethi ~]# pulp-admin consumer history --consumerid=pulp-client
Usage: pulp-admin <options> consumer history <options>

pulp-admin: error: no such option: --consumerid
[root@preethi ~]# pulp-admin consumer history --id=pulp-client
+------------------------------------------+
              Consumer History
+------------------------------------------+

Event Type            	Repo Bound               
Timestamp             	2011-07-05 10:57:45-04:00
Originator            	admin                    
Repo ID               	f14                      

Event Type            	Consumer Created         
Timestamp             	2011-07-05 09:06:52-04:00
Originator            	admin

Comment 4 Preethi Thomas 2011-08-16 12:07:34 UTC
Closing with Community Release 15

pulp-0.0.223-4.

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

pulp-0.0.223-4.