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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.15.0
    • 6.15.0
    • None
    • 0
    • False
    • Important
    • Sprint 126, Sprint 127
    • None
    • None
    • None
    • None
    • Yes

      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.

          There are no Sub-Tasks for this issue.

              rhn-engineering-jlenz Jeremy Lenz
              jira-bugzilla-migration RH Bugzilla Integration
              Vladimír Sedmík Vladimír Sedmík
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: