Bug 1163619 - Proxy: rhn_package_manager fails to report dump is incorrect: rhnpush.uploadLib.UploadError: Cannot read from directory /root/bbb/rpms
Summary: Proxy: rhn_package_manager fails to report dump is incorrect: rhnpush.uploadL...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 570
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat570-postga
TreeView+ depends on / blocked
 
Reported: 2014-11-13 06:48 UTC by Jan Hutař
Modified: 2018-04-09 11:35 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-09 11:35:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Hutař 2014-11-13 06:48:33 UTC
Description of problem:
Proxy: rhn_package_manager fails to report dump is incorrect. Just tracebacks instead with: rhnpush.uploadLib.UploadError: Cannot read from directory /root/bbb/rpms


Version-Release number of selected component (if applicable):
spacewalk-proxy-package-manager-2.3.0-3.el6sat.noarch


How reproducible:
always


Steps to Reproduce:
1. # mkdir /root/bbb   # create empty directory
2. # rhn_package_manager --cache-locally --from-export /root/bbb --channel rhel-x86_64-server-7


Actual results:
Could not find metadata for channel rhel-x86_64-server-7, skipping...
Traceback (most recent call last):
  File "/usr/bin/rhn_package_manager", line 27, in <module>
    rhn_package_manager.main()
  File "/usr/share/rhn/PackageManager/rhn_package_manager.py", line 127, in main
    upload.from_export()
  File "/usr/share/rhn/PackageManager/rhn_package_manager.py", line 214, in from_export
    for hash_dir in uploadLib.listdir(os.path.join(export_dir, "rpms")):
  File "/usr/share/rhn/rhnpush/uploadLib.py", line 627, in listdir
    raise UploadError("Cannot read from directory %s" % directory)
rhnpush.uploadLib.UploadError: Cannot read from directory /root/bbb/rpms


Expected results:
Maybe just first line would be sufficient? Or maybe some message like "Are you sure this is the directory with the channel dump?"

Comment 1 Jan Hutař 2014-11-13 06:49:58 UTC
FYI: This is related to this feature:

https://fedorahosted.org/spacewalk/wiki/proxy-precache

Comment 3 Tomas Lestach 2018-04-09 11:35:03 UTC
We have re-reviewed this bug, as part of an ongoing effort to improve Satellite/Proxy feature and bug updates, review and backlog.

This is a low priority bug and has no currently open customer cases. While this bug may still valid, we do not see it being implemented prior to the EOL of the Satellite 5.x product. As such, this is being CLOSED DEFERRED. 

Closing now to help set customer expectations as early as possible. You are welcome to re-open this bug if needed.


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