Bug #19656
openHammer doesn't give a reason when it failed to upload a file
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1451171
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.
Updated by Brad Buckingham almost 8 years ago
- Subject changed from Hammer doesn't give a reason when it failed to upload a file to Hammer doesn't give a reason when it failed to upload a file
- Translation missing: en.field_release set to 114