Attempting to delete any of my collections on the public Ansible Galaxy website fails. For example, when trying to delete the collection mwadman/dnsmasq_roles.
I’ve checked that none of the collections that I’m trying to delete are dependencies of other collections.
The deletion fails silently without providing a user-facing error message or description in the web UI. I had to navigate to task management to determine it had failed.
See screenshot here for details.
Traceback pasted here if that’s useful:
File "/venv/lib64/python3.12/site-packages/pulpcore/tasking/tasks.py", line 73, in _execute_task
result = task_function()
^^^^^^^^^^^^^^^
File "/venv/lib64/python3.12/site-packages/pulp_ansible/app/tasks/deletion.py", line 77, in delete_collection
_remove_collection_version_from_repos(versions)
File "/venv/lib64/python3.12/site-packages/pulp_ansible/app/tasks/deletion.py", line 39, in _remove_collection_version_from_repos
add_and_remove(repo.pk, add_content_units=[], remove_content_units=collections)
File "/venv/lib64/python3.12/site-packages/pulpcore/app/tasks/repository.py", line 234, in add_and_remove
with repository.new_version(base_version=base_version) as new_version:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib64/python3.12/site-packages/pulpcore/app/models/repository.py", line 1400, in __exit__
self._compute_counts()
File "/venv/lib64/python3.12/site-packages/pulpcore/app/models/repository.py", line 1331, in _compute_counts
assert len(self.content_ids) == self._content_relationships().count()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Please let me know if there’s something I need to do to be able to delete collections.