| Summary: | Local sync progress report "error_details" should match same format as grinder | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | John Matthews <jmatthew> |
| Component: | z_other | Assignee: | John Matthews <jmatthew> |
| Status: | CLOSED DUPLICATE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-04-19 12:10:07 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
*** This bug has been marked as a duplicate of bug 697833 *** |
If an error occurs during sync the format of the error differs from local syncs vs. yum syncs. The intent of this bug is to work on local syncs so errors produced match the same format as yum/grinder. yum/grinder example: "error_details": [[{"checksumtype": "sha256", "checksum": "435d92e6c09248b501b8d2ae786f92ccfad69fab8b1bc774e2b66ff6c0d83979", "fileName": "pulp-dot-2.0-test-0.1.2-1.fc11.x86_64.rpm", "downloadurl": "http://jmatthews.fedorapeople.org/repo_with_bad_read_perms/pulp-dot-2.0-test-0.1.2-1.fc11.x86_64.rpm", "item_type": "rpm", "savepath": "/var/lib/pulp//repos/repo_with_bad_read_perms//", "pkgpath": "/var/lib/pulp//packages/435/pulp-dot-2.0-test/0.1.2/1.fc11/x86_64", "size": 2359}, {"error_type": "error", "error": "HTTP status code of 403 received for http://jmatthews.fedorapeople.org/repo_with_bad_read_perms/pulp-dot-2.0-test-0.1.2-1.fc11.x86_64.rpm"}]], local sync example: "error_details": [ [{"item_type": "rpm", "fileName": "/vault/repos/vt_and_trees_errors/xen-devel-3.0.3-105.el5_5.2.i386.rpm"}, {"error_type": "<type 'exceptions.OSError'>", "traceback": ["Traceback (most recent call last):", " File \"/shared/repo/pulp/src/pulp/server/api/repo_sync.py\", line 553, in _sync_rpms", " self._process_rpm(pkg, dst_repo_dir)", " File \"/shared/repo/pulp/src/pulp/server/api/repo_sync.py\", line 523, in _process_rpm", " pkg_info = pulp.server.util.get_rpm_information(pkg)", " File \"/shared/repo/pulp/src/pulp/server/util.py\", line 69, in get_rpm_information", " file_descriptor_number = os.open(rpm_path, os.O_RDONLY)", "OSError: [Errno 13] Permission denied: '/vault/repos/vt_and_trees_errors/xen-devel-3.0.3-105.el5_5.2.i386.rpm'"], "error": "[Errno 13] Permission denied: '/vault/repos/vt_and_trees_errors/xen-devel-3.0.3-105.el5_5.2.i386.rpm'"}], [{"item_type": "rpm", "fileName": "/vault/repos/vt_and_trees_errors/Virtualization-de-DE-5.2-9.noarch.rpm"}, {"error_type": "<type 'exceptions.OSError'>", "traceback": ["Traceback (most recent call last):", " File \"/shared/repo/pulp/src/pulp/server/api/repo_sync.py\", line 553, in _sync_rpms", " self._process_rpm(pkg, dst_repo_dir)", " File \"/shared/repo/pulp/src/pulp/server/api/repo_sync.py\", line 523, in _process_rpm", " pkg_info = pulp.server.util.get_rpm_information(pkg)", " File \"/shared/repo/pulp/src/pulp/server/util.py\", line 69, in get_rpm_information", " file_descriptor_number = os.open(rpm_path, os.O_RDONLY)", "OSError: [Errno 13] Permission denied: '/vault/repos/vt_and_trees_errors/Virtualization-de-DE-5.2-9.noarch.rpm'"], "error": "[Errno 13] Permission denied: '/vault/repos/vt_and_trees_errors/Virtualization-de-DE-5.2-9.noarch.rpm'"}],