Project

Profile

Help

Issue #8047

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

Added by fao89 8 months ago. Updated 8 months ago.

Status:
NEW
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

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 CollectionsNEW

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by fao89 8 months ago

  • Description updated (diff)

#2 Updated by fao89 8 months ago

  • Description updated (diff)

#3 Updated by fao89 8 months 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

#4 Updated by fao89 8 months ago

  • Related to Story #8049: As a user, I want to able to distinguish signed and unsigned Collections added

#5 Updated by fao89 8 months ago

  • Project changed from Pulp to Ansible Plugin

Please register to edit this issue

Also available in: Atom PDF