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 12 months ago. Updated 9 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

Also available in: Atom PDF