Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-36252

Generating curl registration command via Satellite GUI from location X through capsule using location Y fails

XMLWordPrintable

    • 2
    • False
    • Moderate
    • sat-proton
    • None
    • None
    • None
    • None

      Version:

      -----------

      Red Hat Satellite: 6.14.3

      Red Hat Capsule: 6.14.3

       

      Description:

      -----------------

      When attempting to generate a curl command from the Satellite UI using Location <X> for a Capsule assigned with Location <Y> results in:

      Pop Up:

      Output from /var/log/foreman/production.log:

      ~~~

      2024-06-18T16:53:04 [I|app|d2817e2a] Processing by RegistrationCommandsController#create as JSON
      2024-06-18T16:53:04 [I|app|d2817e2a]   Parameters: {"organizationId"=>"1", "locationId"=>"3", "smartProxyId"=>"2", "insecure"=>true, "setupRemoteExecution"=>"", "setupInsights"=>"", "jwtExpiration"=>4, "packages"=>"", "repo"=>"", "repoGpgKeyUrl"=>"", "updatePackages"=>false, "activationKeys"=>["AK_KEY"], "lifecycleEnvironmentId"=>"", "registration_command"=>{"organizationId"=>"1", "locationId"=>"3", "smartProxyId"=>"2", "insecure"=>true, "setupRemoteExecution"=>"", "setupInsights"=>"", "jwtExpiration"=>4, "packages"=>"", "repo"=>"", "repoGpgKeyUrl"=>"", "updatePackages"=>false, "activationKeys"=>["AK_KEY"], "lifecycleEnvironmentId"=>""}}
      2024-06-18T16:53:05 [I|app|d2817e2a]   Rendered common/404.html.erb within layouts/application (Duration: 12.0ms | Allocations: 2878)
      2024-06-18T16:53:05 [I|app|d2817e2a]   Rendered layouts/base.html.erb (Duration: 30.4ms | Allocations: 18655)
      2024-06-18T16:53:05 [I|app|d2817e2a]   Rendered layout layouts/application.html.erb (Duration: 87.3ms | Allocations: 34070)
      2024-06-18T16:53:05 [I|app|d2817e2a] Completed 404 Not Found in 128ms (Views: 104.6ms | ActiveRecord: 3.9ms | Allocations: 39629)

      ~~~

       

      Expected Outcome:

      ---------------------------

      Successful generation of a curl command that can be used on a server for registration.

       

      When generating a curl command for registering a host, it would be expected the fields provided would either be restrictive based upon the Organization/Location the user is in OR the generation occur regardless of the Location the user is currently in.

       

      Actual Outcome:

      -----------------------

      Curl command generation fails with:

       

          "There was an error while generating the command, see the logs for more information."

       

      Steps to Reproduce:

      ----------------------------

      1. Have a Satellite server with <Organization> and Location <X> and Location <Y>
      2. Have a Capsule server associated with Location <Y>
      3. On the Satellite UI, as user, be within <Organization> and Location <X>
      4. Attempt to generate a curl command for <Organization> | Location <Y> | Capsule associated with Location <Y> | Activation Key selected --> Generate
      5. Pop up with Error message will present

       

       

      Work Around:

      -------------------

      On the Satellite UI, ensure the <Organization> is selected and then "Any Location" is selected instead of a specific location. Then proceed to generate the curl command once more.

              Unassigned Unassigned
              rhn-support-bkielhol Benjamin Kielhold
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: