Project

Profile

Help

Issue #3017

RemoteArtifact contains all the calculated hashes instead of only ones available in a remote repo

Added by ttereshc about 2 years ago. Updated 6 months ago.

Status:
MODIFIED
Priority:
High
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
Yes
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 26

Description

To reproduce:
  • create repo
  • create importer with immediate policy
  • sync

Check pulp_app_remoteartifact table, it contains all the calculated hashes instead of one available in a remote repo.

pulp=# select * from pulp_app_remoteartifact;
...
-[ RECORD 7 ]-------+---------------------------------------------------------------------------------------------------------------------------------
id                  | 996b0c90-75fb-46d0-8e1b-61a6d6598456
url                 | https://repos.fedorapeople.org/pulp/pulp/fixtures/file-mixed/1.iso
size                | 1048576
md5                 | 8de62945335fe55f1d325ea9eaa29560
sha1                | 3ae81392aa1c98f8f92cf5ff326f5e93c73a9b2d
sha224              | aa356e94085735321aaa548719361264804160fc719c52376a62d485
sha256              | ef2f76c57febbf47662c7bc2b9382e4539fb30a32f5e0a690229d0dad3028468
sha384              | 249345db9a25d821990df98931deec56cd0e4feb6fe641d89a88d95ae25608d82e6beea2bef58a78a40d0a8ad3a1e083
sha512              | ad6a8141d7d636b825a2aa57111134beed5419a34036c222729ca91d0f5a1703a3c0f419852219e9eb658247fa75ae677e9be1c4a02d31765f0b90928a7e33a4
content_artifact_id | cc92ae49-1995-49d5-a1fc-6bdf5970d4e4
importer_id         | e322d035-874c-48a2-a31e-374fb22e4154

Only the Artifact model is supposed to store all the calculated hashes (and it does).
RemoteArtifact is expected to have only information available in a remote repo.

Associated revisions

Revision 1ef3ed8f View on GitHub
Added by jortel@redhat.com about 2 years ago

Remote artifact created with correct digests.
closes #3017

Revision 1ef3ed8f View on GitHub
Added by jortel@redhat.com about 2 years ago

Remote artifact created with correct digests.
closes #3017

Revision 1ef3ed8f View on GitHub
Added by jortel@redhat.com about 2 years ago

Remote artifact created with correct digests.
closes #3017

History

#1 Updated by ttereshc about 2 years ago

  • Priority changed from Normal to High
  • Severity changed from 1. Low to 2. Medium
  • Triaged changed from No to Yes

#2 Updated by jortel@redhat.com about 2 years ago

  • Project changed from File Support to Pulp

I have a ChangeSet patch mostly finished for this.

#3 Updated by jortel@redhat.com about 2 years ago

  • Groomed changed from No to Yes

#4 Updated by mhrivnak about 2 years ago

  • Sprint/Milestone set to 45

#5 Updated by jortel@redhat.com about 2 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to jortel@redhat.com

#6 Updated by jortel@redhat.com about 2 years ago

  • Status changed from ASSIGNED to POST

#7 Updated by jortel@redhat.com about 2 years ago

  • Status changed from POST to MODIFIED

#8 Updated by bmbouter over 1 year ago

  • Sprint set to Sprint 26

#9 Updated by bmbouter over 1 year ago

  • Sprint/Milestone deleted (45)

#10 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#11 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF