Bug #38206
closedOSP Authenticated Pull fails from Satellite with error 422 Client Error: Unprocessable Content for url
Description
OSP Authenticated Pull fails with error 422 Client Error: Unprocessable Content for url
Cloned from 15722466
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:
Updated by The Foreman Bot 11 days ago
- Status changed from New to Ready For Testing
- Assignee set to Ian Ballou
- Pull request https://github.com/Katello/katello/pull/11306 added
Updated by Ian Ballou 10 days ago
- Category set to Container
- Triaged changed from No to Yes
Updated by Anonymous 9 days ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|86ea51ec575416b788ce5c3b08843cde8562e25b.