Project

Profile

Help

Story #4342

As a user, I can perform an immediate sync to download artifacts for content units that are already created

Added by dalley 11 months ago. Updated 7 months ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 48

Description

Imagine the following scenario:

  • Perform a sync with a download_policy of 'streamed' or 'on_demand'
  • Either:
  • Change your mind, decide you want to download the artifacts after all, and do another sync with a remote download policy of "immediate", OR
  • Perform an immediate sync of another repository which contains overlapping content units with the first sync

In either of these cases, Pulp will not do what you want. "mirror=False" mode only looks at whether the content unit exists, not whether its artifacts have been downloaded. So there is no way to perform an "immediate" sync thereafter which touches the already-created content units, unless you use "mirror=True", which can be extremely destructive.

Both of these schemes (leave the existing units alone vs. download the artifacts for the overlapping ones) should probably be supported (and documented). But it would make sense to flip the current behavior around, and default to the state requested by the last-performed sync.


Related issues

Copied to Pulp - Test #4467: As a user, I can perform an immediate sync to download artifacts for content units that are already created CLOSED - COMPLETE Actions

History

#1 Updated by dalley 11 months ago

  • Description updated (diff)

#2 Updated by daviddavis 11 months ago

  • Sprint set to Sprint 47
  • Tags Pulp 3 RC Blocker added

We decided to try to finish this by the RC. Setting RC blocker and sprint.

#3 Updated by jortel@redhat.com 11 months ago

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

#4 Updated by jortel@redhat.com 10 months ago

I tested by:
- create repository
- create a remote with url to fixtures and policy=on_demand.
- syncd. no artifacts created.
- set policy=immediate on the remote.
- syncd using mirror=false. missing artifacts ARE downloaded/created.

It seems to work as designed. Did I miss something?

#5 Updated by rchan 10 months ago

  • Sprint changed from Sprint 47 to Sprint 48

#6 Updated by dalley 10 months ago

  • Status changed from ASSIGNED to CLOSED - NOTABUG

@jortel, I tried again just now and wasn't able to reproduce the issue, which is strange. I'm not sure what happened the first time.

#7 Updated by bherring 9 months ago

  • Copied to Test #4467: As a user, I can perform an immediate sync to download artifacts for content units that are already created added

#8 Updated by daviddavis 7 months ago

  • Sprint/Milestone set to 3.0

#9 Updated by bmbouter 7 months ago

  • Tags deleted (Pulp 3, Pulp 3 RC Blocker)

Please register to edit this issue

Also available in: Atom PDF