Project

General

Profile

Actions

Bug #38724

closed

Calls to upstream Candlepin consumer fail when using an apiUrl from manifest

Added by Jeremy Lenz 10 months ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Subscriptions
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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.

Actions #1

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
Actions #2

Updated by Ian Ballou 9 months ago

  • Target version changed from Katello 4.20.0 to Katello 4.19.0
Actions #3

Updated by Ian Ballou 9 months ago

  • Triaged changed from No to Yes
Actions #4

Updated by The Foreman Bot 9 months ago

  • Fixed in Releases Katello 4.19.0 added
Actions #5

Updated by Jeremy Lenz 9 months ago

  • Status changed from Ready For Testing to Closed
Actions #6

Updated by Partha Aji 9 months ago

  • Status changed from Closed to New
  • Red Hat JIRA set to SAT-38104
Actions #7

Updated by Jeremy Lenz 9 months ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF