Project

General

Profile

Bug #17746

SRPMs should not be allowed to upload in a satellite product.

Added by Brad Buckingham over 2 years ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1382582

Description of problem:
SRPMs should not be allowed to upload in a satellite product.

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

How reproducible:
1. Go to Content -> Products and create a New Product.
2. In the new Product, create a new Repository using "Type: yum".
3. In the new Repository, click 'Browse...' in the "Upload Package" box.
4. Select any SRPM package file (for convenience, I'll attach an example).
5. Click the 'Upload' button in the "Upload Package" box.

You should see an error like the following appear:
Error during upload: Task 4ffb5391-32f6-4a55-9ab1-3ab6de6e4e13: Katello::Errors::PulpError: PLP0047: The importer yum_importer indicated a failed response when uploading rpm unit to repository BSB-RHEL_MAX_CustomPkgs-RHEL7_MAX_CustomPkgs.

6. If you then go to Monitor -> Tasks and search for paused tasks, you should see the failed UploadFiles task that generated the above error. If you click on the Errors tab in the task, you should see the error from my previous comment. If you look in /var/log/foreman/production.log you should see the log messages listed in my previous comment.

7. Due to the lock held by this paused task, all subsequent attempts to upload any package (either an RPM or an SRPM) will fail. To correct this problem and allow further upload attempts, you will need to manually delete the failed task using a slightly modified version of the commands listed on https://access.redhat.com/solutions/2089951

Actual results:
While uploading SRPMs system is throwing below error-
Pulp requires the file type to be specified when uploading content, but Satellite uploads both RPMs and SRPMs as file type "rpm".

Expected results:
Satellite should render a proper message to educate user that it's SRPMs cannot be uploaded.

History

#1 Updated by Brad Buckingham over 2 years ago

  • Subject changed from SRPMs should not be allowed to upload in a satellite product. to SRPMs should not be allowed to upload in a satellite product.
  • Legacy Backlogs Release (now unused) set to 114

Also available in: Atom PDF