Issue #8047
closedNew artifact is downloaded even when we already have a content unit with the same identity
Description
Ticket moved to GitHub: "pulp/pulp_ansible/717":https://github.com/pulp/pulp_ansible/issues/717
I'll share a pulp_ansible edge case,
We have rh-certified and community collections, both with the same identity (namespace, name, version), the content ideally would be the same, but in some cases the sha256s are different.
API: https://galaxy.ansible.com/api/v2/collections/vmware/vmware_rest/versions/1.0.1/
Download URL: https://cloud.redhat.com/api/automation-hub/v3/artifacts/collections/published/vmware-vmware_rest-1.0.1.tar.gz
"sha256": "297358d05551bd104eb94be40edaa14dd55ea9f9a2f3953f58f0197689536c7d",
"size": 153850
API: https://cloud.redhat.com/api/automation-hub/v3/collections/vmware/vmware_rest/versions/1.0.1/
Download URL: https://galaxy.ansible.com/download/vmware-vmware_rest-1.0.1.tar.gz
"size": 153853,
"sha256": "d3f47947d6a0ac81f5fc8d65ef38abe0ec953765504c9421640d81f0f39462c7"
So when you sync from one source and re-sync from another source, the existent content is used, but it downloads a new artifact since the sha256 is different. So in the end, we have:
- Content (Source A)
- ContentArtifact (Source A)
- Artifact (Source A)
- Artifact (Source B)
Related issues
Updated by fao89 almost 4 years ago
@daviddavis and bmbouter
Specifically, at pulp_ansible side, the post_save step gets data from the current artifact, On the same example, it would mean using Artifact (source B) data on Content (source A) https://github.com/pulp/pulp_ansible/blob/master/pulp_ansible/app/tasks/collections.py#L587-L641
Updated by fao89 almost 4 years ago
- Related to Story #8049: As a user, I want to able to distinguish signed and unsigned Collections added
Updated by pulpbot about 3 years ago
- Description updated (diff)
- Status changed from NEW to CLOSED - DUPLICATE