Bug 713535

Summary: sync status displaying status unknown after pulp-server restart
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Jason Connor <jconnor>
Status: CLOSED DUPLICATE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jmatthew, mmccune, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-29 07:10:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Preethi Thomas 2011-06-15 17:42:42 UTC
Description of problem:


Version-Release number of selected component (if applicable):
[root@preethi ~]# rpm -q pulp
pulp-0.0.190-1.fc14.noarch


How reproducible:


Steps to Reproduce:
1. repo create repo Fedora 14
2. run repo sync
3. run repo status
4. see that the progress is given as certain %
5. restart pulp-server
6. Run repo status again
7. After you run status a few times you can see that status is returned with a time for last sync 
  
Actual results:
[root@preethi ~]#  pulp-admin -u admin -p admin repo create --id=f14 --feed=http://download.devel.redhat.com/released/F-14/GOLD/Fedora/x86_64/os/
Successfully created repository [ f14 ]


[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin -u admin -p admin  repo status --id=f14+------------------------------------------+
               Status for f14
+------------------------------------------+
Repository: f14
Number of Packages: 0
Last Sync: never

[root@preethi ~]# pulp-admin -u admin -p admin repo sync --id=f14 
Sync for repository f14 started
Use "repo status" to check on the progress
[root@preethi ~]# pulp-admin -u admin -p admin  repo status --id=f14
+------------------------------------------+
               Status for f14
+------------------------------------------+
Repository: f14
Number of Packages: 0
Last Sync: never
Currently syncing: 0% done (35 of 2773 packages downloaded)

[root@preethi ~]# pulp-admin -u admin -p admin  repo status --id=f14
+------------------------------------------+
               Status for f14
+------------------------------------------+
Repository: f14
Number of Packages: 0
Last Sync: never
Currently syncing: 3% done (128 of 2773 packages downloaded)

[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 -u admin -p admin  repo status --id=f14
+------------------------------------------+
               Status for f14
+------------------------------------------+
Repository: f14
Number of Packages: 0
Last Sync: never
Currently syncing: progress unknown

[root@preethi ~]# pulp-admin -u admin -p admin  repo status --id=f14
+------------------------------------------+
               Status for f14
+------------------------------------------+
Repository: f14
Number of Packages: 0
Last Sync: never
Currently syncing: progress unknown

[root@preethi ~]# pulp-admin -u admin -p admin  repo status --id=f14
+------------------------------------------+
               Status for f14
+------------------------------------------+
Repository: f14
Number of Packages: 0
Last Sync: never
Currently syncing: progress unknown

[root@preethi ~]# pulp-admin -u admin -p admin  repo status --id=f14
+------------------------------------------+
               Status for f14
+------------------------------------------+
Repository: f14
Number of Packages: 2766
Last Sync: 2011-06-15 13:51:46-04:00

[root@preethi ~]# 


Expected results:


Additional info:

Comment 1 John Matthews 2011-06-17 19:46:51 UTC
I think this is a duplicate of bug 712514

Preethi, do you agree?

Comment 2 Sayli Karmarkar 2011-06-29 07:10:45 UTC

*** This bug has been marked as a duplicate of bug 712514 ***