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