Description of problem:
Trying to upload a file via hammer to file repo does not work:
[root@sat-r220-09 ~]# hammer -u admin -p changeme repository upload-content --id=4639 --path=/etc/exports
Failed to upload file 'exports' to repository. Please check the file and try again.
Version-Release number of selected component (if applicable):
Connecting redmine issue http://projects.theforeman.org/issues/16457 from this bug
Note, ive attached an upstream hammer issue to handle large file uploads, but it seems even small ones are not working.
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/16457 has been resolved.
Justin, did the fix for large files helped? Is this specific to content part?
It didn't seem to help at all, i just linked it to this bz as i figured it may be part of the solution. It seems like all file (what pulp calls iso) uploads aren't working for some reason, small or large.
Actually i was just missing a commit! Added a second upstream issue that resolved the issue.
It seems that it fails with any filesize.
Version Tested: Satellite-6.3 Snap 8
It is possible to upload files to file repo using hammer.
# ll -h Fedora-*
-rw-r--r--. 1 root root 951M Jul 23 18:56 Fedora-Atomic-ostree-x86_64-26-20170723.0.iso
-rw-r--r--. 1 root root 42M Jul 5 17:48 Fedora-Docker-Base-26-1.5.x86_64.tar.xz
# hammer repository info --id 1|grep Type
Content Type: file
# hammer repository upload-content --organization-id 1 --id 1 --path Fedora-Atomic-ostree-x86_64-26-20170723.0.iso
Successfully uploaded file 'Fedora-Atomic-ostree-x86_64-26-20170723.0.iso'.
# hammer repository upload-content --organization-id 1 --id 1 --path Fedora-Docker-Base-26-1.5.x86_64.tar.xz
Successfully uploaded file 'Fedora-Docker-Base-26-1.5.x86_64.tar.xz'.
Both files are visible in the repo:
# lynx http://intel-lizardhead-02.lab.bos.redhat.com/pulp/isos/dccd28c2-0477-42bf-a675-d0b3cb83fe69/ Index of /pulp/isos/dccd28c2-0477-42bf-a675-d0b3cb83fe69
[ICO] Name Last modified Size Description
[PARENTDIR] Parent Directory -
[ ] Fedora-Atomic-ostree-x86_64-26-20170723.0.iso 2017-08-02 09:45 951M
[ ] Fedora-Docker-Base-26-1.5.x86_64.tar.xz 2017-08-02 09:35 42M
[ ] PULP_MANIFEST 2017-08-02 09:45 237
# rpm -qa|grep -e ^satellite-[0-9] -e hammer_cli_katello
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> For information on the advisory, and where to find the updated files, follow the link below.
> If the solution does not work for you, open a new bug report.