Bug #38724
closedCalls to upstream Candlepin consumer fail when using an apiUrl from manifest
Description
Katello provides 3 ways to give a url to contact Hosted Candlepin, in order:
1. (For devel environments only) you can use the environment variable REDHAT_RHSM_API_URL.
2. If your organization's upstream consumer has a value for 'apiUrl', it uses that.
3. Finally, it falls back to hard-coded URLs.
We can see the format of the expected URL by looking at the hard-coded ones:
In Glue::Provider:
API_URL = 'https://subscription.rhsm.redhat.com/subscription/consumers/'.freeze
But in Katello::Resources::Candlepin::UpstreamJob it doesn't append '/consumers/':
API_URL = 'https://subscription.rhsm.redhat.com/subscription'.freeze
The result is that if the upstream consumer in your manifest has an apiUrl that appends the '/consumers/' path, calls from Glue::Provider will succeed but calls to UpstreamJob will fail. But if your manifest does NOT append the '/consumers/' path, calls from Glue::Provider will fail and calls to UpstreamJob will succeed.
Katello needs to handle adding or subtracting the '/consumers/' as needed.
Updated by The Foreman Bot 10 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/11491 added
Updated by Ian Ballou 9 months ago
- Target version changed from Katello 4.20.0 to Katello 4.19.0
Updated by Jeremy Lenz 9 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|8f4da2816a1a44f99dfda030056fe28b53978ddd.
Updated by Partha Aji 9 months ago
- Status changed from Closed to New
- Red Hat JIRA set to SAT-38104