I have recently setup a standalone smart proxy (installed with katello). I intend on using this for REX in a single secured network. When create the proxy in Infrastructure > Smart Proxies, assign it to a specific Location, the list of proxies displays it in the assigned Location.
If I go to Edit the proxy, all locations except Default Location are under the Selected column and they cannot be removed. They are greyed out with “This is used by a host” displayed on hover. This proxy is intended to be used for a single location.
Similarly, if I use foreman-installer to register the proxy (–foreman-proxy-register-in-foreman true), it displays null for location, but on Edit, all Locations (except Default Location) are selected and cannot be removed. If I save any Edit to the proxy, it Displays all Locations (except Default Location) in the list of Smart Proxies.
Problem: Smart Proxy gets bound to all Locations except Default Location, cannot assign it solely to the Location I need.
Expected outcome: Be able to assign the proxy to Locations I select, not all.
Foreman and Proxy versions: 1.23.2
Distribution and version: CentOS 7.7 x86_64
Other relevant data: Not sure what would be useful yet!
Does anyone know why Foreman is forcing a proxy into almost all of my Locations?
I have tried to Assign Location on the Hosts page, but I think that is probably irrelevant.
If I go to Administer > Locations > Smart Proxies, I have verified that none of the Locations has the new proxy selected.
Could this be due to some commonality of another object like Templates/Subnets/Domains/Host Groups or something?
The other issue is that when the second proxy is associated with other Locations, it load balances REX, which causes 50% of my Jobs to fail since my new proxy has a dedicated ssh key that won’t be installed in other Locations.
Cheers and thank you for any assistance!