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

OSP Authenticated Pull fails from Satellite with error 422 Client Error: Unprocessable Content for url

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • NEW
    • 400
    • Phoenix
    • Sprint 128, Sprint 129, Sprint 130, Sprint 131, Sprint 132, Sprint 133, Sprint 134, Sprint 135, Sprint 136, Sprint 137, Sprint 138, Sprint 139
    • Moderate
    • No

      Description of problem: Building support matrix between OSP and satellite for sat versions 6.11 to 6.15. For all of those sat versions when OSP16.2 is deployed with authenticated pull the pull fails. The same test done with unauthenticated pull is successful.

      The error seen on OSP is: 422 Client Error: Unprocessable Content for url

      When tailing the satellite log: /var/log/foreman/production.log the error seen is(there are many of them):

      2024-01-12T11:15:40 [I|app|02aee461] Started GET "/v2/token?account=admin&scope=repository%3Adefault_organization-rhos-16_2-containers-aodh-api%3Apull&service=vm-240-109.lab.eng.tlv2.redhat.com" for 10.46.4.150 at 2024-01-12 11:15:40 -0500
      2024-01-12T11:15:40 [I|app|02aee461] Processing by Katello::Api::Registry::RegistryProxiesController#token as HTML
      2024-01-12T11:15:40 [I|app|02aee461] Parameters:

      {"account"=>"admin", "scope"=>"repository:default_organization-rhos-16_2-containers-aodh-api:pull", "service"=>"vm-240-109.lab.eng.tlv2.redhat.com"}

      2024-01-12T11:15:40 [I|kat|02aee461] Authorized user admin(Admin User)
      2024-01-12T11:15:40 [E|kat|02aee461] <Class> ActiveRecord::RecordInvalid
      2024-01-12T11:15:40 [E|kat|02aee461] name: ["has already been taken"]
      2024-01-12T11:15:40 [I|app|02aee461] Completed 422 Unprocessable Entity in 176ms (Views: 1.0ms | ActiveRecord: 24.2ms | Allocations: 12987) (edited)

      This happens on a newly deployed satellite with only one host registered. Don't see how the name could already be taken.

      Version-Release number of selected component (if applicable): OSP16.2 and satellite versions 6.11 through 6.15.

      How reproducible: Every time.

      Steps to Reproduce:
      1. Deploy OSP using a satellite set to authenticated pull.
      2.
      3.

      Actual results: OSP deployment fails with error: 422 Client Error: Unprocessable Content for url when attempting to pull a container.

      Expected results: OSP deployment is successful.

      Additional info:

            jira-bugzilla-migration RH Bugzilla Integration
            drosenfe David Rosenfeld
            RH Bugzilla Integration RH Bugzilla Integration
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: