Skip to content

tentacle: rbd-mirror: prune obsolete primary mirror snapshots after relocation - #69762

Merged
batrick merged 3 commits into
ceph:tentaclefrom
abitdrag:wip-77525-tentacle
Jul 21, 2026
Merged

batrick merged 3 commits into
ceph:tentaclefrom
abitdrag:wip-77525-tentacle

Conversation

@abitdrag
abitdrag requested a review from a team as a code owner June 26, 2026 08:27
@abitdrag abitdrag added this to the tentacle milestone Jun 26, 2026
@abitdrag abitdrag added the rbd label Jun 26, 2026
@github-actions github-actions Bot added tests releng-audit-pass Release engineering: passed backport verification audit. releng-audit-fail Release engineering: failed backport verification audit. and removed releng-audit-pass Release engineering: passed backport verification audit. labels Jun 26, 2026
github-actions[bot]

This comment was marked as outdated.

@idryomov idryomov removed the releng-audit-fail Release engineering: failed backport verification audit. label Jun 26, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jun 26, 2026
@idryomov idryomov removed the releng-audit-fail Release engineering: failed backport verification audit. label Jun 26, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Jun 26, 2026
Prasanna Kumar Kalever and others added 3 commits June 26, 2026 20:59
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)
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)
…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)
@abitdrag
abitdrag force-pushed the wip-77525-tentacle branch from 8b44afc to 208b425 Compare June 26, 2026 15:31
@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-pass Release engineering: passed backport verification audit. labels Jun 26, 2026
@abitdrag

Copy link
Copy Markdown
Contributor Author

jenkins test api

@abitdrag

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@yuriw

yuriw commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri-testing-20260715.192214-tentacle.

@idryomov idryomov modified the milestones: tentacle, v20.2.3 Jul 20, 2026
@batrick batrick added the releng-audit-queue Release engineering: queued for backport verification audit. label Jul 21, 2026
@github-actions github-actions Bot removed releng-audit-queue Release engineering: queued for backport verification audit. releng-audit-pass Release engineering: passed backport verification audit. labels Jul 21, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Jul 21, 2026
@batrick
batrick merged commit 113c5f5 into ceph:tentacle Jul 21, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-qa rbd releng-audit-pass Release engineering: passed backport verification audit. tests wip-yuri-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants