Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-21949 Registration can't find any Capsules when their locations are not assigned to admin user
  3. SAT-21950

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

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Capsule - Content
    • Sprint 126, Sprint 127

      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.

      DEV Tracker for https://issues.redhat.com/browse/SAT-21949
      Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2254612

              rhn-engineering-jlenz Jeremy Lenz
              satellite-focaccia-bot Focaccia Bot
              Samir Jha Samir Jha
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: