Bug #36989
closedRegistration can't find any smart proxies when their locations are not assigned to admin user
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.
Updated by The Foreman Bot 12 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
Updated by Ian Ballou 11 months ago
- Fixed in Releases Katello 4.11.0 added
- Fixed in Releases deleted (
Katello 4.12.0)
Updated by Ian Ballou 11 months ago
- Target version changed from Katello 4.12.0 to Katello 4.11.0
Updated by Ian Ballou 11 months ago
- Status changed from Ready For Testing to Closed
Updated by The Foreman Bot 9 months ago
- Pull request https://github.com/Katello/katello/pull/10920 added