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 - GET katello/api/v2/subscriptions always fails with error: Organization Information not provided
Summary: GET katello/api/v2/subscriptions always fails with error: Organization Inform...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Subscription Management
Version: 6.10.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.10.0
Assignee: satellite6-bugs
QA Contact: Cole Higgins
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-10 12:08 UTC by Kunxin Huang
Modified: 2021-11-16 14:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:11:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:11:51 UTC

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


Note You need to log in before you can comment on or make changes to this bug.