Skip to content

tentacle: rbd-mirror: allow incomplete demote snapshot to sync after rbd-mirror daemon restart#66164

Merged
yuriw merged 2 commits intoceph:tentaclefrom
VinayBhaskar-V:wip-73737-tentacle
Nov 17, 2025
Merged

tentacle: rbd-mirror: allow incomplete demote snapshot to sync after rbd-mirror daemon restart#66164
yuriw merged 2 commits intoceph:tentaclefrom
VinayBhaskar-V:wip-73737-tentacle

Conversation

@VinayBhaskar-V
Copy link
Copy Markdown
Contributor

backport tracker: https://tracker.ceph.com/issues/73737


backport of #65953
parent tracker: https://tracker.ceph.com/issues/73528

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

…plete

to make wait_for_snapshot_sync_complete work for all cases.

Signed-off-by: VinayBhaskar-V <vvarada@redhat.com>
(cherry picked from commit c416807)
… daemon restart

Currently when the rbd-mirror daemon on secondary was killed while a demote snapshot was newly created (0% copied)
or partially synced, the image's promotion state was set to **PROMOTION_STATE_ORPHAN** upon restart of rbd-mirror
daemon on secondary. This state prevents the demote snapshot sync after restart as bootstrap on secondary fails.
In this commit we fix this by assigning promotion state to **PROMOTION_STATE_NON_PRIMARY**
for an image with an **incomplete non-primary demote snapshot**.

The downside is that if the image is removed on the primary cluster, then after restart of
rbd-mirror daemon on secondary cluster, the corresponding image on the secondary also gets removed.
This is because deletion propagation is unconditionally enabled precisely for **PROMOTION_STATE_NON_PRIMARY**
images and this is okay since the user would have deleted the primary demoted image forcefully.

Fixes: https://tracker.ceph.com/issues/73528
Signed-off-by: VinayBhaskar-V <vvarada@redhat.com>
(cherry picked from commit 636a392)
@VinayBhaskar-V VinayBhaskar-V requested a review from a team as a code owner November 7, 2025 13:12
@VinayBhaskar-V VinayBhaskar-V added this to the tentacle milestone Nov 7, 2025
@github-actions github-actions bot added the tests label Nov 7, 2025
@idryomov
Copy link
Copy Markdown
Contributor

idryomov commented Nov 9, 2025

jenkins test make check

@idryomov
Copy link
Copy Markdown
Contributor

idryomov commented Nov 9, 2025

jenkins test docs

@idryomov
Copy link
Copy Markdown
Contributor

jenkins test make check

@sunilangadi2
Copy link
Copy Markdown

@yuriw please pick this PR in your tentacle branch testing.

@yuriw yuriw merged commit c744cec into ceph:tentacle Nov 17, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants