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 1970391

Summary: GET katello/api/v2/subscriptions always fails with error: Organization Information not provided
Product: Red Hat Satellite Reporter: Kunxin Huang <kuhuang>
Component: Subscription ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Cole Higgins <chiggins>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.10.0CC: apatel, jturel, paji
Target Milestone: 6.10.0Keywords: 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: 2021-11-16 14:11:38 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:

Comment 1 Brad Buckingham 2021-06-10 14:06:54 UTC
Hi Jonathon, is this expected behavior?

Comment 2 Jonathon Turel 2021-06-10 16:34:06 UTC
We did purposefully change this API, but since it's causing some pain I see an advantage in revisiting the decision. Will pull into the next sprint

Comment 3 Partha Aji 2021-06-15 17:00:12 UTC
This was intentionally done to address bugs related to https://projects.theforeman.org/issues/30250 
If you have 2 Organizations with the same subscription, the output for

# curl -X GET -k -u admin:admin https://<fqdn>/katello/api/v2/subscriptions

is going to list duplicate subscriptions. More over the API output does not list the organization information. Requiring organizations seems to make more sense to me here. I would like to know the QE use cases for this if requiring orgs does not make sense.

Comment 7 Partha Aji 2021-06-23 15:23:28 UTC
Resolving this. Please reopen if it is an issue or if the solution is untenable. Basically tag an organization_id like this to the call to get the correct values


$ curl -X GET -k -u admin:admin https://<fqdn>/katello/api/v2/subscriptions?organization_id=1

Comment 11 errata-xmlrpc 2021-11-16 14:11:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.10 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:4702