Issue #4449
closedDefault to mirror = False
Description
Syncing with mirror=True is a destructive operation, and it's especially destructive if you are storing multiple content types in the same repository. Since mirror mode doesn't respect plugin type boundaries [0], doing a mirror sync will wipe out any content in the repo that isn't of a type handled by plugin performing the sync.
Even with copious documented warnings which we don't yet have [1], I feel like this is a bad default value. The concern that repositories would accumulate too many old packages that are never cleaned is valid, but it's likely able to be solved in much less destructive ways than this.
This problem could also be resolved by making mirror mode respect type boundaries [0], but that seems architecturally difficult.
[0] https://pulp.plan.io/issues/3961
[1] https://pulp.plan.io/issues/4341
Related issues
Updated by dalley over 5 years ago
- Subject changed from Don't default to mirror=True to Default to mirror = False
Updated by amacdona@redhat.com over 5 years ago
+1. Even if mirror is the expected default for some plugins, I completely agree that we should err on the side of not being destructive.
Updated by kersom over 5 years ago
- Related to Story #4341: As a user, I have comprehensive docs on mirroring, sync modes, and how they interact together added
Updated by kersom over 5 years ago
- Related to Test #4448: Test sync mirror=True added
Updated by CodeHeeler over 5 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 49
- Tags Pulp 3 RC Blocker added
Updated by ttereshc over 5 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ttereshc
Added by ttereshc over 5 years ago
Added by ttereshc over 5 years ago
Revision ae7e903c | View on GitHub
Sync in additive mode by default
Added by ttereshc over 5 years ago
Revision b4f91fb6 | View on GitHub
Sync in additive mode by default
Updated by ttereshc over 5 years ago
- Status changed from ASSIGNED to POST
Updated by ttereshc over 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset commit:pulpcore-plugin|1269464b1f335fbf81889d3551ec83d9c8458e67.
Updated by bmbouter almost 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Sync in additive mode by default
re #4449 https://pulp.plan.io/issues/4449