Bug 1451171 - Hammer doesn't give a reason when it failed to upload a file
Summary: Hammer doesn't give a reason when it failed to upload a file
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer - Content
Version: 6.2.9
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-16 02:49 UTC by Hao Chang Yu
Modified: 2020-06-11 13:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-04 13:08:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 19656 0 None None None 2017-05-24 16:07:01 UTC

Description Hao Chang Yu 2017-05-16 02:49:28 UTC
Description of problem:

hammer repository upload-content --organization-id=1 --product-id=54 --id=697 --path=/var/tmp/epel
Failed to upload file '2ping-3.2.1-2.el6.noarch.rpm' to repository. Please check the file and try again.
Failed to upload file '3proxy-0.6.1-10.el6.x86_64.rpm' to repository. Please check the file and try again.
Failed to upload file '4ti2-1.3.2-6.el6.x86_64.rpm' to repository. Please check the file and try again.
Failed to upload file '64tass-1.50.486-1.el6.x86_64.rpm' to repository. Please check the file and try again.
Failed to upload file '389-admin-1.1.35-1.el6.i686.rpm' to repository. Please check the file and try again.

The above errors were caused by the "import_uploads" reqyest timeout error, but hammer doesn't give/log the reason of failure. This makes the debugging hard.

Steps to Reproduce:
1. Hack the "import_uploads" function in "katello-3.0.0.105/app/controllers/katello/api/v2/repositories_controller.rb" to sleep for 3 minutes
2. hammer repository upload-content --organization-id=1 --product-id=54 --id=697 --path=/var/tmp/epel

Actual results:
Failed to upload file '2ping-3.2.1-2.el6.noarch.rpm' to repository. Please check the file and try again.

Expected results:
Need to tell the failed reason.

Comment 1 Brad Buckingham 2017-05-24 16:06:59 UTC
Created redmine issue http://projects.theforeman.org/issues/19656 from this bug

Comment 3 Bryan Kearney 2018-11-30 14:59:40 UTC
The Satellite Team is attempting to provide an accurate backlog of bugzilla requests which we feel will be resolved in the next few releases. We do not believe this bugzilla will meet that criteria, and have plans to close it out in 1 month. This is not a reflection on the validity of the request, but a reflection of the many priorities for the product. If you have any concerns about this, feel free to contact Rich Jerrido or Bryan Kearney or your account team. If we do not hear from you, we will close this bug out. Thank you.

Comment 4 Bryan Kearney 2019-01-04 13:08:45 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this, please do not reopen. Instead, feel free to contact Red Hat Technical Support. Thank you.


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