Unable to Sync RH-Certified Repository on Private Automation Hub: Error 400, message='Bad Request', url=URL('https://automation-hub-ci.s3.us-east- 2.amazonaws.com/_logos/foritnet.jpg')
Environment
- Red Hat Ansible Automation Platform 2.4
- Automation Hub 4.7.1
Issue
-
While syncing the Red Hat certified repository on the private automation hub, the following errors are observed
Error 400, message='Bad Request', url=URL('https://automation-hub-ci.s3.us-east- 2.amazonaws.com/_logos/pure_storage.png') Error 400, message='Bad Request', url=URL('https://automation-hub-ci.s3.us-east- 2.amazonaws.com/_logos/foritnet.jpg') Error 404, message='Not Found', url=URL('https://raw.githubusercontent.com/CrowdStrike/community/main/docs/assets/img/crowdstrike-logo.svg') -
While syncing community repos from Ansible Galaxy on the private automation hub, the following errors are observed
Calculated digest does not equal passed in digest
Resolution
- Sync issue with Red Hat Certified Collection is fixed with errata RHBA-2023:5271. Upgrade the infrastructure to the latest AAP 2.4-7 to resolve the issue.
Workaround on older Automation Hub version for Red Hat Certified Collection
-
Make the following change on Automation Hub UI, under Collections >> Remotes >> Edit rh-certified URL
From
https://console.redhat.com/api/automation-hub/To
https://console.redhat.com/api/automation-hub/content/published/
Workaround on older Automation Hub version for Community Collection
-
Make the following change on Automation Hub UI, under Collections >> Remotes >> Edit community URL
From
https://galaxy.ansible.com/To
https://old-galaxy.ansible.com/NOTE: RHBA-2023:5271 resolves the
Red Hat Certified Collectionissue and RHBA-2024:1953 resolvesCommunitycollection issue.
Diagnostic Steps
-
The following error can be seen inside Automation Hub UI >> Task management >> Progress messages
File \"/usr/lib/python3.9/site-packages/pulp_ansible/app/downloaders.py\", line 69, in raise_for_status\n response.raise_for_status()\n File \"/usr/lib64/python3.9/site-packages/aiohttp/client_reqrep.py\", line 1004, in raise_for_status\n raise ClientResponseError(\n", "description": "400, message='Bad Request', url=URL('https://automation-hub-ci.s3.us-east-2.amazonaws.com/_logos/foritnet.jpg')"or
File \"/usr/lib/python3.9/site-packages/pulp_ansible/app/models.py\", line 348, in calculate_metadata_sha256\n raise IntegrityError(\"Calculated digest does not equal passed in digest\")\n","description": "Calculated digest does not equal passed in digest"
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments