Project

General

Profile

Bug #10561

hammer repository upload-content throws error: "Error: Too many open files"

Added by Bryan Kearney over 6 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1206734
Description of problem:
It seems that when uploading multiple files hammer keeps an open file handle on all of them. This causes the system to run out of file handles when trying to upload a large repository.

Version-Release number of selected component (if applicable):

How reproducible:
100%

Steps to Reproduce:
1. in a directory with more rpms than your `ulimit -n` do a 'hammer repository upload-content --name='TestLinux 6.5 content' --organization=Default_Organization --path=./'
2.
3.

Actual results:
upload fails with error:
Could not upload the content:
Error: Too many open files - ./somefile.rpm

Expected results:
repository uploads successfully.

Additional info:

Associated revisions

Revision d5b4bd12 (diff)
Added by Adam Ruzicka over 6 years ago

Fixes #10561,BZ1206734 - repository content-upload opens files one by
one

Revision 91e5aa91
Added by Eric D Helms over 6 years ago

Merge pull request #298 from adamruzicka/10561-repository_upload

Fixes #10561,BZ1206734 - repository content-upload opens files one by one

History

#1 Updated by Eric Helms over 6 years ago

  • Category changed from Hammer to API
  • Legacy Backlogs Release (now unused) set to 31
  • Triaged changed from No to Yes

#2 Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/298 added
  • Pull request deleted ()

#3 Updated by Adam Ruzicka over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF