Bug 697840 - Local sync progress report "error_details" should match same format as grinder
Summary: Local sync progress report "error_details" should match same format as grinder
Keywords:
Status: CLOSED DUPLICATE of bug 697833
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: John Matthews
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-19 12:09 UTC by John Matthews
Modified: 2011-07-18 06:39 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-19 12:10:07 UTC
Embargoed:


Attachments (Terms of Use)

Description John Matthews 2011-04-19 12:09:22 UTC
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'"}],

Comment 1 John Matthews 2011-04-19 12:10:07 UTC

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


Note You need to log in before you can comment on or make changes to this bug.