Bug 670977 - Repo sync status seems incomplete
Summary: Repo sync status seems incomplete
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
: Sprint 20
Assignee: John Matthews
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close
TreeView+ depends on / blocked
 
Reported: 2011-01-19 20:04 UTC by John Matthews
Modified: 2011-08-16 12:22 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:09:51 UTC
Embargoed:


Attachments (Terms of Use)

Description John Matthews 2011-01-19 20:04:38 UTC
It looks like when calling status on a repo sync the progress information reported may be incorrect for the percentage complete.



$ sudo pulp-admin repo create --id pulp_rhel5_x86_64 --feed yum:http://repos.fedorapeople.org/repos/pulp/pulp/testing/rhel5/x86_64/

$ sudo pulp-admin repo sync --id pulp_rhel5_x86_64

**ISSUE IS HERE***
Note: that the percentage below is "1%" yet it says 11 of 11 have been downloaded.

$ sudo pulp-admin repo status --id pulp_rhel5_x86_64 
+------------------------------------------+
        Status for pulp_rhel5_x86_64
+------------------------------------------+
Repository: pulp_rhel5_x86_64
Number of Packages: 11
Last Sync: 2011-01-19 15:00:13.017000
Currently syncing: 1% done (11 of 11 packages downloaded)


<<NOTE: That it's 1% yet 11 of 11>>>>

Now it shows sync complete, which is fine.

[jmatthews@jwm-devel ~]$ sudo pulp-admin repo status --id pulp_rhel5_x86_64 
+------------------------------------------+
        Status for pulp_rhel5_x86_64
+------------------------------------------+
Repository: pulp_rhel5_x86_64
Number of Packages: 11
Last Sync: 2011-01-19 15:01:24.515000

Comment 1 John Matthews 2011-01-28 17:42:00 UTC
This is working now.  

Percentage is updated as sync progresses.


sudo pulp-admin repo status --id local1                                                                                                                                                        Fri Jan 28 12:25:55 2011

+------------------------------------------+
              Status for local1
+------------------------------------------+
Repository: local1
Number of Packages: 7184
Last Sync: 2011-01-28 09:27:58.062000
Currently syncing: 11% done (852 of 7184 packages downloaded)



sudo pulp-admin repo status --id local1                                                                                                                                                        Fri Jan 28 12:26:52 2011

+------------------------------------------+
              Status for local1
+------------------------------------------+
Repository: local1
Number of Packages: 7184
Last Sync: 2011-01-28 09:27:58.062000
Currently syncing: 24% done (1789 of 7184 packages downloaded)


Every 1.0s: sudo pulp-admin repo status --id local1                                                                                                                                                        Fri Jan 28 12:32:34 2011

+------------------------------------------+
              Status for local1
+------------------------------------------+
Repository: local1
Number of Packages: 7184
Last Sync: 2011-01-28 09:27:58.062000
Currently syncing: 100% done (7184 of 7184 packages downloaded)


Every 1.0s: sudo pulp-admin repo status --id local1                                                                                                                                                        Fri Jan 28 12:39:30 2011




+------------------------------------------+
              Status for local1
+------------------------------------------+
Repository: local1
Number of Packages: 7184
Last Sync: 2011-01-28 12:37:20.670000

Comment 2 Jay Dobies 2011-02-02 20:07:13 UTC
Fixed in 0.134.

Comment 3 Preethi Thomas 2011-02-03 19:42:04 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.134-1.fc14.noarch

[root@preethi ~]# pulp-admin repo sync --id f14-update
Sync for repository f14-update started
Use "repo status" to check on the progress
[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 3% done (432 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 8% done (935 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 13% done (1336 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 17% done (1625 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 20% done (1692 of 11110 packages downloaded)


[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 21% done (1869 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 21% done (1910 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 22% done (1960 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 24% done (2099 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 25% done (2175 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 27% done (2430 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 34% done (2878 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 50% done (3745 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 54% done (4161 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 57% done (4613 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 62% done (5151 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 66% done (5430 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 69% done (5745 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 73% done (6374 of 11110 packages downloaded)

[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 79% done (7913 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 87% done (10574 of 11110 packages downloaded)

[root@preethi ~]# pulp-admin repo status --id f14-update
+------------------------------------------+
            Status for f14-update
+------------------------------------------+
Repository: f14-update
Number of Packages: 5932
Last Sync: 2011-02-03 18:51:57
Currently syncing: 100% done (0 of 11110 packages downloaded)

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

pulp-0.0.223-4.

Comment 5 Preethi Thomas 2011-08-16 12:22:08 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.