-
Bug
-
Resolution: Done-Errata
-
Critical
-
2.4
-
False
-
-
False
-
-
-
Critical
Description
When syncing the community collection jfrog.ansible in the private-automation-hub, you get the following error:
priority should be critical as in AAH-2836, and workaround mentioned in AAH-2836 doesn't work here.
Key Dependency Versions
Server version 4.7.3
Pulp Ansible Version 0.17.5
Ansible Automation Platform 2.4
UI Version 4.7.3
Steps to Reproduce
1. Setting the following requirements.yml in the community repository:
collections: # Install a collection from Ansible Galaxy. - name: jfrog.ansible source: https://galaxy.ansible.com
2. Sync the community repository
3. The sync fails with the following error at the UI:
Error message Description Calculated digest does not equal passed in digest Traceback File "/usr/lib/python3.9/site-packages/pulpcore/tasking/pulpcore_worker.py", line 458, in _perform_task result = func(*args, **kwargs) File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 191, in sync repo_version = d_version.create() File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/declarative_version.py", line 161, in create loop.run_until_complete(pipeline) File "/usr/lib64/python3.9/asyncio/base_events.py", line 647, in run_until_complete return future.result() File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/api.py", line 220, in create_pipeline await asyncio.gather(*futures) File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/api.py", line 41, in __call__ await self.run() File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/content_stages.py", line 198, in run await sync_to_async(process_batch)() File "/usr/lib/python3.9/site-packages/asgiref/sync.py", line 448, in __call__ ret = await asyncio.wait_for(future, timeout=None) File "/usr/lib64/python3.9/asyncio/tasks.py", line 442, in wait_for return await fut File "/usr/lib64/python3.9/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/usr/lib/python3.9/site-packages/asgiref/sync.py", line 490, in thread_handler return func(*args, **kwargs) File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/content_stages.py", line 124, in process_batch raise e File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/content_stages.py", line 117, in process_batch d_content.content.save() File "/usr/lib/python3.9/site-packages/pulpcore/app/models/base.py", line 203, in save return super().save(*args, **kwargs) File "/usr/lib64/python3.9/contextlib.py", line 79, in inner return func(*args, **kwds) File "/usr/lib/python3.9/site-packages/django_lifecycle/mixins.py", line 168, in save self._run_hooked_methods(BEFORE_SAVE, **kwargs) File "/usr/lib/python3.9/site-packages/django_lifecycle/mixins.py", line 289, in _run_hooked_methods method.run(self) File "/usr/lib/python3.9/site-packages/django_lifecycle/mixins.py", line 31, in run self.method(instance) File "/usr/lib/python3.9/site-packages/django_lifecycle/decorators.py", line 119, in func hooked_method(*args, **kwargs) File "/usr/lib/python3.9/site-packages/pulp_ansible/app/models.py", line 348, in calculate_metadata_sha256 raise IntegrityError("Calculated digest does not equal passed in digest")
The corresponding output in /var/log/messages on a reproducer system:
Feb 23 09:22:22 privatehub pulpcore-worker[445341]: pulp [b8ac201747e546fbbd06c0505f1a6e55]: pulpcore.tasking.pulpcore_worker:INFO: Starting task 4af55c38-a257-4d34-9fda-b60d7e178b85 Feb 23 09:22:24 privatehub gunicorn[144043]: pulp [465fcad3736f4e009732acedb0b19c88]: django.request:WARNING: Not Found: /api/galaxy/pulp/api/v3/shared:remotes/ansible/collection/5d71712a-dd38-49ed-8314-245169e9788b/ Feb 23 09:22:27 privatehub pulpcore-worker[445341]: pulp [b8ac201747e546fbbd06c0505f1a6e55]: pulpcore.tasking.pulpcore_worker:INFO: Task 4af55c38-a257-4d34-9fda-b60d7e178b85 failed (Calculated digest does not equal passed in digest) Feb 23 09:22:27 privatehub pulpcore-worker[445341]: pulp [b8ac201747e546fbbd06c0505f1a6e55]: pulpcore.tasking.pulpcore_worker:INFO: File "/usr/lib/python3.9/site-packages/pulpcore/tasking/pulpcore_worker.py", line 458, in _perform_task Feb 23 09:22:27 privatehub pulpcore-worker[445341]: result = func(*args, **kwargs) Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 191, in sync Feb 23 09:22:27 privatehub pulpcore-worker[445341]: repo_version = d_version.create() Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/declarative_version.py", line 161, in create Feb 23 09:22:27 privatehub pulpcore-worker[445341]: loop.run_until_complete(pipeline) Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib64/python3.9/asyncio/base_events.py", line 647, in run_until_complete Feb 23 09:22:27 privatehub pulpcore-worker[445341]: return future.result() Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/api.py", line 220, in create_pipeline Feb 23 09:22:27 privatehub pulpcore-worker[445341]: await asyncio.gather(*futures) Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/api.py", line 41, in __call__ Feb 23 09:22:27 privatehub pulpcore-worker[445341]: await self.run() Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/content_stages.py", line 198, in run Feb 23 09:22:27 privatehub pulpcore-worker[445341]: await sync_to_async(process_batch)() Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib/python3.9/site-packages/asgiref/sync.py", line 448, in __call__ Feb 23 09:22:27 privatehub pulpcore-worker[445341]: ret = await asyncio.wait_for(future, timeout=None) Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib64/python3.9/asyncio/tasks.py", line 442, in wait_for Feb 23 09:22:27 privatehub pulpcore-worker[445341]: return await fut Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib64/python3.9/concurrent/futures/thread.py", line 58, in run Feb 23 09:22:27 privatehub pulpcore-worker[445341]: result = self.fn(*self.args, **self.kwargs) Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib/python3.9/site-packages/asgiref/sync.py", line 490, in thread_handler Feb 23 09:22:27 privatehub pulpcore-worker[445341]: return func(*args, **kwargs) Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/content_stages.py", line 124, in process_batch Feb 23 09:22:27 privatehub pulpcore-worker[445341]: raise e Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/content_stages.py", line 117, in process_batch Feb 23 09:22:27 privatehub pulpcore-worker[445341]: d_content.content.save() Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib/python3.9/site-packages/pulpcore/app/models/base.py", line 203, in save Feb 23 09:22:27 privatehub pulpcore-worker[445341]: return super().save(*args, **kwargs) Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib64/python3.9/contextlib.py", line 79, in inner Feb 23 09:22:27 privatehub pulpcore-worker[445341]: return func(*args, **kwds) Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib/python3.9/site-packages/django_lifecycle/mixins.py", line 168, in save Feb 23 09:22:27 privatehub pulpcore-worker[445341]: self._run_hooked_methods(BEFORE_SAVE, **kwargs) Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib/python3.9/site-packages/django_lifecycle/mixins.py", line 289, in _run_hooked_methods Feb 23 09:22:27 privatehub pulpcore-worker[445341]: method.run(self) Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib/python3.9/site-packages/django_lifecycle/mixins.py", line 31, in run Feb 23 09:22:27 privatehub pulpcore-worker[445341]: self.method(instance) Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib/python3.9/site-packages/django_lifecycle/decorators.py", line 119, in func Feb 23 09:22:27 privatehub pulpcore-worker[445341]: hooked_method(*args, **kwargs) Feb 23 09:22:27 privatehub pulpcore-worker[445341]: File "/usr/lib/python3.9/site-packages/pulp_ansible/app/models.py", line 348, in calculate_metadata_sha256 Feb 23 09:22:27 privatehub pulpcore-worker[445341]: raise IntegrityError("Calculated digest does not equal passed in digest") Feb 23 09:22:34 privatehub gunicorn[144045]: pulp [2334968022504c70851443dd661b1cdf]: django.request:WARNING: Not Found: /api/galaxy/pulp/api/v3/shared:remotes/ansible/collection/5d71712a-dd38-49ed-8314-245169e9788b/
How reproducible: always
Actual Behavior
Calculated digest does not equal passed in digest
Expected Behavior
Sync successfully
- relates to
-
AAPRFE-1161 Improve Private Hub task management logging
- Closed
- links to
-
RHBA-2024:131499 Red Hat Ansible Automation Platform 2.4 Product Release Update
- mentioned on