Project

General

Profile

Actions

Bug #48527

closed
JD JD

[rbd-mirror] failed to unlink skipped intermediate snapshots

Bug #48527: [rbd-mirror] failed to unlink skipped intermediate snapshots

Added by Jason Dillaman almost 6 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
High
Assignee:
Jason Dillaman
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v16.0.0-8165-g6283c7739b
Released In:
v16.2.0~545
Upkeep Timestamp:
2025-07-14T19:22:18+00:00

Description

If the 'rbd-mirror' daemon is falling behind, it can fail to unlink itself from any intermediate snapshots that it decides to skip over:

2020-12-09T21:40:43.798-0500 7f1359597700 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x5651c7f0d800 scan_remote_mirror_snapshots: 
2020-12-09T21:40:43.798-0500 7f1359597700 15 rbd::mirror::image_replayer::snapshot::Replayer: 0x5651c7f0d800 scan_remote_mirror_snapshots: remote mirror snapshot: id=2397, mirror_ns=[mirror state=primary, complete=1, mirror_peer_uuids=94b2df87-aec9-4bba-b7e9-2561c537ab0c, primary_mirror_uuid=, primary_snap_id=head, last_copied_object_number=0, snap_seqs={}]
2020-12-09T21:40:43.798-0500 7f1359597700 15 rbd::mirror::image_replayer::snapshot::Replayer: 0x5651c7f0d800 scan_remote_mirror_snapshots: skipping synced remote snapshot 2397
2020-12-09T21:40:43.798-0500 7f1359597700 15 rbd::mirror::image_replayer::snapshot::Replayer: 0x5651c7f0d800 scan_remote_mirror_snapshots: remote mirror snapshot: id=5175, mirror_ns=[mirror state=primary, complete=1, mirror_peer_uuids=94b2df87-aec9-4bba-b7e9-2561c537ab0c, primary_mirror_uuid=, primary_snap_id=head, last_copied_object_number=0, snap_seqs={}]
2020-12-09T21:40:43.798-0500 7f1359597700 15 rbd::mirror::image_replayer::snapshot::Replayer: 0x5651c7f0d800 scan_remote_mirror_snapshots: remote mirror snapshot: id=5176, mirror_ns=[mirror state=primary, complete=1, mirror_peer_uuids=94b2df87-aec9-4bba-b7e9-2561c537ab0c, primary_mirror_uuid=, primary_snap_id=head, last_copied_object_number=0, snap_seqs={}]
2020-12-09T21:40:43.798-0500 7f1359597700 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x5651c7f0d800 scan_remote_mirror_snapshots: unlinking from remote snapshot 5176
2020-12-09T21:40:43.798-0500 7f1359597700 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x5651c7f0d800 unlink_peer: remote_snap_id=5176
2020-12-09T21:40:43.849-0500 7f1352d8a700 10 rbd::mirror::image_replayer::snapshot::Replayer: 0x5651c7f0d800 handle_unlink_peer: r=0

This results in the most up-to-date snapshot getting unlinked improperly which leaves a mirrored snapshot with an empty set of peers. This results in several other bugs.

JD Updated by Jason Dillaman almost 6 years ago Actions #1

  • Backport deleted (octopus)
  • Pull request ID set to 38517

(backport will occur under #48525)

JD Updated by Jason Dillaman almost 6 years ago Actions #2

  • Status changed from In Progress to Fix Under Review

MG Updated by Mykola Golub almost 6 years ago Actions #3

  • Status changed from Fix Under Review to Pending Backport

JD Updated by Jason Dillaman almost 6 years ago Actions #4

  • Backport set to octopus

JD Updated by Jason Dillaman almost 6 years ago Actions #5

  • Backport deleted (octopus)

JD Updated by Jason Dillaman almost 6 years ago Actions #6

  • Status changed from Pending Backport to Resolved

UB Updated by Upkeep Bot over 1 year ago Actions #7

  • Merge Commit set to 6283c7739bc4f32bae9897ad6cd7d92975375940
  • Fixed In set to v16.0.0-8165-g6283c7739b
  • Released In set to v16.2.0~545
  • Upkeep Timestamp set to 2025-07-14T19:22:18+00:00
Actions

Also available in: PDF Atom