Bug 636852
| Summary: | Status of a failed sync is not being reported when you run repo status | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | z_other | Assignee: | John Matthews <jmatthew> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | unspecified | CC: | jmatthew, whayutin |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-08-16 14:20:09 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 | ||
|
Description
Preethi Thomas
2010-09-23 13:38:38 UTC
To Test:
1) sudo rm -fr /var/lib/pulp/packages
2) sudo mkdir /var/lib/pulp/packages
3) sudo chmod 700 /var/lib/pulp/packages
4) Sync a repo
5) $ sudo pulp-admin -u admin -p admin repo status --id jwmb
+------------------------------------------+
Status for jwmb
+------------------------------------------+
Repository: jwmb
Number of Packages: 306
Last Sync: 2011-01-04 11:38:32.739000
Last Error: 2011-01-04 11:39:06.360000
OSError: [Errno 13] Permission denied: '/var/lib/pulp/packages/3f8'
Look for:
a) Last Sync should be the date/time of the last successful sync
b) Last Error is the date/time of the last error
c) below "Last Error" is the summary string from the exception
Now fix the error with us deleting 'packages'
1) sudo rm -fr /var/lib/pulp/packages
2) Resync the repo and 'packages' dir will be recreated and populated
3) $ sudo pulp-admin -u admin -p admin repo status --id jwmb
+------------------------------------------+
Status for jwmb
+------------------------------------------+
Repository: jwmb
Number of Packages: 306
Last Sync: 2011-01-04 11:46:51.914000
Notice that if the last sync was successful we do not display "Last Error" info.
Committ is below:
http://git.fedorahosted.org/git/?p=pulp.git;a=commit;h=3db54fb9520008a3f8f27b5cc52fb3638a1fbdc9
Fixed in 0.120. verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.121-1.fc14.noarch
[root@preethi ~]# rm -rf /var/lib/pulp/packages/
[root@preethi ~]# mkdir /var/lib/pulp/packages/
[root@preethi ~]# chmod 700 /var/lib/pulp/packages/
[root@preethi ~]#
[root@preethi ~]#
[root@preethi ~]# pulp-admin repo sync --id=local -F
Sync for repository local started
You can safely CTRL+C this current command and it will continue
[ ] 0%
Sync: Error
OSError: [Errno 13] Permission denied: '/var/lib/pulp/packages/79a'
[root@preethi ~]# pulp-admin repo sync --id=local
Sync for repository local started
Use "repo status" to check on the progress
[root@preethi ~]# pulp-admin repo status --id=local
+------------------------------------------+
Status for local
+------------------------------------------+
Repository: local
Number of Packages: 1
Last Sync: 2011-01-06 12:49:59.222000
Last Error: 2011-01-06 12:52:56.413000
OSError: [Errno 13] Permission denied: '/var/lib/pulp/packages/79a'
[root@preethi ~]# rm -rf /var/lib/pulp/packages/
[root@preethi ~]# pulp-admin repo sync --id=local
Sync for repository local started
Use "repo status" to check on the progress
[root@preethi ~]# pulp-admin repo status --id=local
+------------------------------------------+
Status for local
+------------------------------------------+
Repository: local
Number of Packages: 1
Last Sync: 2011-01-06 12:54:04.738000
[root@preethi ~]# pulp-admin repo sync --id=f13
Sync for repository f13 started
Use "repo status" to check on the progress
[root@preethi ~]# pulp-admin repo status --id=f13
+------------------------------------------+
Status for f13
+------------------------------------------+
Repository: f13
Number of Packages: 3102
Last Sync: 2011-01-06 10:45:41.832000
Currently syncing: 0% done (96 of 3111 packages downloaded)
[root@preethi ~]# pulp-admin repo cancel_sync --id=f13
Sync for repository f13 canceled
[root@preethi ~]# pulp-admin repo status --id=f13
+------------------------------------------+
Status for f13
+------------------------------------------+
Repository: f13
Number of Packages: 3102
Last Sync: 2011-01-06 10:45:41.832000
Closing with Community Release 15 pulp-0.0.223-4. |