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 1778055

Summary: hammer srpm list using just product which has more than one repo fails with confusing error 'Found more than one repository'
Product: Red Hat Satellite Reporter: vijsingh
Component: RepositoriesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Cole Higgins <chiggins>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: jsherril, sghai
Target Milestone: UnspecifiedKeywords: Triaged, UserExperience
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: 2021-07-09 17:02:24 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:
Bug Depends On:    
Bug Blocks: 1378442    

Description vijsingh 2019-11-29 07:23:54 UTC
Description of problem:

hammer srpm list using product which have more than one repo  fails with error 'Found more than one repository'

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

@Satellite 6.7.0 snap 3.0

How reproducible:

Always


Steps to Reproduce:

1. Create a Product and add two yum repos in it.
2. Now try to list SRPM as below:

  # hammer srpm list --organization=<org_name> --product-id=<Product_id>

Actual results:

  Error: Found more than one repository. 

Expected results:

 Should be able to see SRPM packages list

Comment 3 vijsingh 2019-11-29 07:26:45 UTC
same is happing with 'package list' as well:

[root@hp-dl180-04 ~]# hammer package list --organization-id 1 --product=Prod1
Error: Found more than one repository.
[root@hp-dl180-04 ~]#

Comment 7 Justin Sherrill 2019-12-10 16:02:54 UTC
Hey Vijay,

Hammer (nor our api) has never supported listing packages/srpms or any type of content by product.  Those --product options are there to help resolve the repository by name, so you could do something like:

# hammer srpm list --organization=<org_name> --product-id=<Product_id> --repository="Repo Name"

The api has never supported fetching these things by product, and so hammer never has either.  I tested 6.5 and see the same behavior as you see in 6.7.

I will agree that the error message is not good, it should say something like:

"More than one repository within the product, please specify repository", or possibly even just "PLease specify repository" if not repository name or id is given at all.

Given this, is this bug really high priority, or can we de-prioritize it?

Thanks!
Justin

Comment 8 vijsingh 2019-12-11 04:34:52 UTC
Hey Justin,

Thanks for the update , you are right this is not working under 6.5 too (hence it was not marked as regression too) ... as error is bit misleading so looks more a bug around that only and after updating the error/message it would be fine too.

As this is expected behaviour then I'll update automation accordingly ..for now priority is low for it.

Comment 9 Justin Sherrill 2019-12-11 14:28:46 UTC
Thanks Vijay, 

I'll remove automation blocker too for now.  Thanks!

Comment 10 Brad Buckingham 2019-12-11 14:49:46 UTC
All, 

Based upon the discussion, I am placing this bugzilla on sat-backlog for now.  I also added the UserExperience keyword to indicate that the lack of good error message does impact the user.

Comment 11 Mike McCune 2021-03-16 15:58:42 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 12 Mike McCune 2021-07-09 17:02:24 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this feel free to contact your Red Hat Account Team. Thank you.