Bug 729760
Summary: | Repo Sync - seems to be hung and status is confusing | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Brad Buckingham <bbuckingham> |
Component: | user-experience | Assignee: | John Matthews <jmatthew> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 1.0.0 | CC: | gui1ty, 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: | 2012-02-24 20:13:27 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: |
Description
Brad Buckingham
2011-08-10 18:31:50 UTC
There were a few issues here. 1) The issue Brad saw with 100% being reported but progress not updating relates to an issue with our ProgressTracker handling retries. This is common against the CDN with bad checksum data with distribution files. A retry is triggered and grinder tries to refetch these files, the retry logic isn't working with our ProgressTracker. A separate bz exists for this issue bz 765930 2) When an error did occur we were no longer displaying it with repo status. I fixed this as can be seen with this example: $ sudo pulp-admin repo status --id rhel6_1_x86_64_preserve +------------------------------------------+ Status for rhel6_1_x86_64_preserve +------------------------------------------+ Repository: rhel6_1_x86_64_preserve Number of Packages: 5609 Last Sync: 2011-12-13 15:04:45-05:00 Last Error: 2011-12-13 15:04:45-05:00 1 Tree_File Error(s): md5_missmatch on https://cdn.redhat.com/content/dist/rhel/server/6/6.1/x86_64/os//images/boot.iso 3) As to the status being confusing. During the sync we were not reporting what we were doing to the status command, so if we were importing packages and stuck in this state for 10 mins it wasn't being clearly displayed. That is now fixed as seen with this example: $ sudo pulp-admin repo status --id rhel6_1_x86_64_preserve +------------------------------------------+ Status for rhel6_1_x86_64_preserve +------------------------------------------+ Repository: rhel6_1_x86_64_preserve Number of Packages: 4170 Last Sync: 2011-12-13 11:37:23-05:00 Currently syncing: Importing data into pulp (5615 of 5615 items downloaded. 0.0 bytes remaining) 4) I also touched up regular status reporting to show the number of bytes left as seen with below: $ sudo pulp-admin repo status --id rhel6_1_x86_64_preserve +------------------------------------------+ Status for rhel6_1_x86_64_preserve +------------------------------------------+ Repository: rhel6_1_x86_64_preserve Number of Packages: 4170 Last Sync: 2011-12-13 11:37:23-05:00 Currently syncing: Downloading Items or Verifying (5614 of 5615 items downloaded. 72642203.0 bytes remaining) Commit here http://git.fedorahosted.org/git/?p=pulp.git;a=commitdiff;h=4d8e39de4d67e1ac20ec6e681b0dc1b2fe62c705 build: 0.255 verified [root@preethi CDN]# rpm -q pulp pulp-0.0.256-1.fc15.noarch [root@preethi CDN]# pulp-admin repo sync --id rhel6_x86_64_preserve Sync for repository rhel6_x86_64_preserve started Use "repo status" to check on the progress [root@preethi CDN]# [root@preethi CDN]# [root@preethi CDN]# pulp-admin repo status --id rhel6_x86_64_preserve +------------------------------------------+ Status for rhel6_x86_64_preserve +------------------------------------------+ Repository: rhel6_x86_64_preserve Number of Packages: 3391 Last Sync: 2012-01-09 10:36:58-05:00 Currently syncing: Downloading Metadata (0 of 0 items downloaded. 0.0 bytes remaining) [root@preethi CDN]# pulp-admin repo status --id rhel6_x86_64_preserve +------------------------------------------+ Status for rhel6_x86_64_preserve +------------------------------------------+ Repository: rhel6_x86_64_preserve Number of Packages: 3391 Last Sync: 2012-01-09 10:36:58-05:00 Currently syncing: Downloading Items or Verifying (316 of 3397 items downloaded. 3169888282.0 bytes remaining) [root@preethi CDN]# pulp-admin repo status --id rhel6_x86_64_preserve +------------------------------------------+ Status for rhel6_x86_64_preserve +------------------------------------------+ Repository: rhel6_x86_64_preserve Number of Packages: 3391 Last Sync: 2012-01-09 10:36:58-05:00 Currently syncing: Downloading Items or Verifying (1196 of 3397 items downloaded. 2067820808.0 bytes remaining) [root@preethi CDN]# pulp-admin repo status --id rhel6_x86_64_preserve +------------------------------------------+ Status for rhel6_x86_64_preserve +------------------------------------------+ Repository: rhel6_x86_64_preserve Number of Packages: 3391 Last Sync: 2012-01-09 10:36:58-05:00 1 Tree_File Error(s): md5_missmatch on https://cdn.redhat.com/content/dist/rhel/rhui/server-6/releases/6Server/x86_64/os/images/boot.iso Currently syncing: Purging Orphaned Packages (0 of 3397 items downloaded. 0.0 bytes remaining) Currently syncing: Purging Orphaned Packages (0 of 3397 items downloaded. 0.0 bytes remaining) [root@preethi CDN]# pulp-admin repo status --id rhel6_x86_64_preserve +------------------------------------------+ Status for rhel6_x86_64_preserve +------------------------------------------+ Repository: rhel6_x86_64_preserve Number of Packages: 3391 Last Sync: 2012-01-09 10:36:58-05:00 1 Tree_File Error(s): md5_missmatch on https://cdn.redhat.com/content/dist/rhel/rhui/server-6/releases/6Server/x86_64/os/images/boot.iso Currently syncing: Purging Orphaned Packages (0 of 3397 items downloaded. 0.0 bytes remaining) [root@preethi CDN]# pulp-admin repo status --id rhel6_x86_64_preserve +------------------------------------------+ Status for rhel6_x86_64_preserve +------------------------------------------+ Repository: rhel6_x86_64_preserve Number of Packages: 3391 Last Sync: 2012-01-09 10:50:19-05:00 Last Error: 2012-01-09 10:36:58-05:00 1 Tree_File Error(s): md5_missmatch on https://cdn.redhat.com/content/dist/rhel/rhui/server-6/releases/6Server/x86_64/os/images/boot.iso Pulp v1.0 is released Closed Current Release. |