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 Management | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED ERRATA | QA Contact: | Cole Higgins <chiggins> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.10.0 | CC: | apatel, jturel, paji |
Target Milestone: | 6.10.0 | Keywords: | 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
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 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. 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 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 |