Project

General

Profile

Actions

Bug #36989

closed

Registration can't find any smart proxies when their locations are not assigned to admin user

Added by Jeremy Lenz 6 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman Proxy Content
Target version:
Fixed in Releases:
Found in Releases:

Description

A commit was recently introduced to attempt to surmise when a host is being registered thru a load balancer.

To do this, candlepin_proxies_controller needs to look through ::SmartProxy.all to find smart proxies matching the hostname of the server receiving the registration request.

However, if there are smart proxies assigned to locations, and those locations are not the same locations assigned to the registering user (the --username passed to subscription-manager), Rails will act as if those smart proxies don't exist.

The effect is that Katello doesn't have access to its own list of smart proxies, and so doesn't know how to correctly assign a content source.

So the host will get registered, and its "registered_through" smart proxies for REX will be correct, but content source will be incorrectly nil.

Actions #1

Updated by Jeremy Lenz 6 months ago

  • Bugzilla link set to 2254612
Actions #2

Updated by The Foreman Bot 6 months ago

  • Status changed from New to Ready For Testing
  • Assignee set to Jeremy Lenz
  • Pull request https://github.com/Katello/katello/pull/10826 added
Actions #3

Updated by Jeremy Lenz 6 months ago

  • Target version set to Katello 4.12.0
Actions #4

Updated by The Foreman Bot 6 months ago

  • Fixed in Releases Katello 4.12.0 added
Actions #5

Updated by Ian Ballou 6 months ago

  • Fixed in Releases Katello 4.11.0 added
  • Fixed in Releases deleted (Katello 4.12.0)
Actions #6

Updated by Ian Ballou 6 months ago

  • Target version changed from Katello 4.12.0 to Katello 4.11.0
Actions #7

Updated by Ian Ballou 6 months ago

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

Updated by Jeremy Lenz 6 months ago

  • Triaged changed from No to Yes
Actions #9

Updated by The Foreman Bot 4 months ago

  • Pull request https://github.com/Katello/katello/pull/10920 added
Actions

Also available in: Atom PDF