Project

Profile

Help

Issue #8047

closed

New artifact is downloaded even when we already have a content unit with the same identity

Added by fao89 over 3 years ago. Updated over 2 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

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

Related to Ansible Plugin - Story #8049: As a user, I want to able to distinguish signed and unsigned CollectionsCLOSED - DUPLICATE

Actions

Also available in: Atom PDF