Bug #24140
closed[rbd-mirror] interrupted image sync can result in orphaned snapshots
0%
Description
This can lead to a race if the snapshot is the parent for a clone and the clone starts to replicate (thus attaching itself to the parent). This child will prevent the snapshot copy logic from unprotecting/deleting the (unknown) snapshot since it has a new child. Since the clone logic looks up the parent snapshot by name in rbd-mirror, perhaps the snapshot create logic can utilize a dummy snapshot name upon creation, update the snap_seq mapping on disk, and then rename the snapshot to the correct name.
Updated by Jason Dillaman almost 6 years ago
- Backport changed from luminous to luminous,mimic
Updated by Jason Dillaman almost 6 years ago
http://qa-proxy.ceph.com/teuthology/jdillaman-2018-05-19_15:20:58-rbd-wip-jd-testing-distro-basic-smithi/2554893/teuthology.log
http://qa-proxy.ceph.com/teuthology/jdillaman-2018-05-19_15:20:58-rbd-wip-jd-testing-distro-basic-smithi/2554902/teuthology.log
http://qa-proxy.ceph.com/teuthology/jdillaman-2018-05-20_08:17:31-rbd-wip-jd-testing-distro-basic-smithi/2557215/teuthology.log
Updated by Jason Dillaman over 5 years ago
- Status changed from New to In Progress
- Assignee set to Jason Dillaman
Updated by Jason Dillaman over 5 years ago
The alternative (and easier) approach is to prevent rbd-mirror from creating a clone if the parent image is still syncing.
Updated by Jason Dillaman over 5 years ago
- Status changed from In Progress to Fix Under Review
Updated by Mykola Golub over 5 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Nathan Cutler over 5 years ago
- Copied to Backport #36154: luminous: [rbd-mirror] interrupted image sync can result in orphaned snapshots added
Updated by Nathan Cutler over 5 years ago
- Copied to Backport #36155: mimic: [rbd-mirror] interrupted image sync can result in orphaned snapshots added
Updated by Jason Dillaman about 4 years ago
- Status changed from Pending Backport to Resolved
Updated by Nathan Cutler almost 4 years ago
- Status changed from Resolved to Pending Backport
@Jason Borden - the mimic backport is still open
Updated by Jason Dillaman almost 4 years ago
- Status changed from Pending Backport to Resolved