Project

General

Profile

Actions

Bug #19656

open

Hammer doesn't give a reason when it failed to upload a file

Added by Brad Buckingham almost 7 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by Brad Buckingham almost 7 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
Actions

Also available in: Atom PDF