Repository navigation
squid: rbd-mirror: prune obsolete primary mirror snapshots after relocation - #69767
Merged
Merged
Conversation
Initialize the uuid member in the Peer constructor and include it in stream output operator to ensure correct peer identification in logs. Signed-off-by: Prasanna Kumar Kalever <[email protected]> (cherry picked from commit e98037a) Conflicts: src/tools/rbd_mirror/Types.h - returning uuid as well in newer code
Previously, obsolete primary and demoted primary snapshots on the secondary cluster were not cleaned up immediately after relocation. Instead, old primary snapshots remained until a subsequent promote operation triggered their cleanup, while old demoted primary snapshots persisted until a later demote operation removed them. Adding changes for proactive cleanup of obsolete primary and demoted primary snapshots that are no longer required after relocation. Also adding test coverage to validate the cleanup behavior. Fixes: https://tracker.ceph.com/issues/76154 Signed-off-by: Miki Patel <[email protected]> (cherry picked from commit a10f58d) Conflicts: src/tools/rbd_mirror/Types.h - combined peer UUID and metadata with improved naming
…al cluster When an image is demoted on primary cluster and later promoted again, a non-primary demoted image snapshot is created on the peer (secondary) cluster. Each such promote/demote cycle on same cluster results in an additional non-primary demoted snapshot being created on peer. As a result, repeated promote/demote cycles on the same cluster can lead to accumulation of stale non-primary demoted snapshots on the secondary cluster. These snapshots are not removed immediately because cleanup is only triggered when peer (secondary) is promoted and then demoted. The proposed changes ensures that such snapshots are proactively identified and removed, preventing unbounded buildup. Also added test coverage to verify cleanup behavior. Fixes: https://tracker.ceph.com/issues/76155 Signed-off-by: Miki Patel <[email protected]> (cherry picked from commit 5a77c4f)
Contributor
Author
|
/audit retest |
Contributor
This basically explains what the new code is doing, but rather than that the conflict note should describe the origin of the conflict and, if it's not clear from the description alone, how the conflict was resolved. Here, the conflict (it's the same for both commits) is caused by |
Contributor
|
jenkins test make check |
idryomov
approved these changes
Jun 27, 2026
Contributor
|
jenkins test make check |
Contributor
Author
|
jenkins test make check |
Contributor
|
This PR has been added to wip-yuri2-testing-20260713.172617-squid. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport tracker: https://tracker.ceph.com/issues/77526
backport tracker: https://tracker.ceph.com/issues/77698
backport of #68161
parent tracker: https://tracker.ceph.com/issues/76154
backport of #68500
parent tracker: https://tracker.ceph.com/issues/76155
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh