Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2135608

Summary: Custom rpms uploaded via hammer in bulk result in same filename inside custom repository
Product: Red Hat Satellite Reporter: soham <smajumda>
Component: RepositoriesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WORKSFORME QA Contact: Cole Higgins <chiggins>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.3CC: dalley, iballou, sajha
Target Milestone: 6.13.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-10 16:15:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description soham 2022-10-18 05:28:45 UTC
Description of problem:

Custom rpms uploaded via hammer in bulk results in same filename inside custom repository

Version-Release number of selected component (if applicable):
Pulp3 | Satellite 6.11

How reproducible:


Steps to Reproduce:
1. Download and keep the files at any location. I have kept in /var/tmp

# ll
total 102312
-rw-rw-r--. 1 root root 26736728 Oct 13 14:16 amazon-ssm-agent-3.1.1374.0-1.x86_64.rpm
-rw-rw-r--. 1 root root 25869612 Oct 14 15:47 amazon-ssm-agent-3.1.1732.0-1.x86_64.rpm
-rw-rw-r--. 1 root root 25870408 Oct 13 14:14 amazon-ssm-agent-3.1.1767.0-1.x86_64.rpm
-rw-rw-r--. 1 root root 26283876 Oct 13 14:16 amazon-ssm-agent.rpm



2. Uploading to Amazon repo in bulk from the directory:
# hammer repository upload-content --product "custom" --name "Amazon" --organization "RedHat" --path "/var/tmp/sat_log/*"
Successfully uploaded file 'amazon-ssm-agent-3.1.1374.0-1.x86_64.rpm'
Successfully uploaded file 'amazon-ssm-agent-3.1.1732.0-1.x86_64.rpm'
Successfully uploaded file 'amazon-ssm-agent-3.1.1767.0-1.x86_64.rpm'
Successfully uploaded file 'amazon-ssm-agent.rpm'


3. Checking the contents of the repo "Amazon"

# hammer package list --repository-id 32
------|------------------------------------------|--------------------------------------
ID    | FILENAME                                 | SOURCE RPM                           
------|------------------------------------------|--------------------------------------
33319 | amazon-ssm-agent-3.1.1374.0-1.x86_64.rpm | amazon-ssm-agent-3.1.1374.0-1.src.rpm
33318 | amazon-ssm-agent.rpm                     | amazon-ssm-agent-3.1.1732.0-1.src.rpm
33317 | amazon-ssm-agent.rpm                     | amazon-ssm-agent-3.1.1767.0-1.src.rpm
33316 | amazon-ssm-agent.rpm                     | amazon-ssm-agent-3.1.1927.0-1.src.rpm
------|------------------------------------------|--------------------------------------


Expected results: Filenames should be different. This is in turn causing issue on clients during yum transactions.

Comment 1 soham 2022-10-18 05:44:33 UTC
Rpms are available via https://saydas-rhsat.syslab.pnq2.redhat.com/pub/soham-custom-rpms/

Comment 5 Ian Ballou 2022-10-19 16:12:01 UTC
I'll move this to the repositories component for now since we need to decide if it's Pulp or Katello.

Comment 7 soham 2022-11-10 15:59:25 UTC
Hello Samir,

It worked for me in Satellite 6.11.4 . Please close out this bug.

- Soham

Comment 8 Samir Jha 2022-11-10 16:15:52 UTC
Thanks @smajumda !

Will close this one.

Comment 9 Red Hat Bugzilla 2023-09-19 04:28:25 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days