Actions
Bug #53963
closed[rbd-mirror] fix races in snapshot-based mirroring deletion propagation
% Done:
0%
Source:
Tags:
Backport:
octopus,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Description
When remote image is deleted, rbd-mirror can encounter three cases:
- no remote image id
- no remote mirror metadata
- MIRROR_IMAGE_STATE_DISABLING in remote mirror metadata
Currently, only the first case is handled correctly.
This is not observed at all times, but is observed if the following (broad) sequence of operations are performed: - Create image on "east" cluster - Enable snapshot mirroring for created image on "east" - Ensure mirror image on "west" is created - Force promote "west" image - Demote "east" image - Resync "east" image from "west" - Demote "west" image - Ensure "east" has caught up (both should be "up+unknown, remote image demoted") - Promote "east" image - Ensure "west" has caught up ("east" should be "up+stopped, local image is primary", "west" should be "up+replaying") - Delete "east" image ! Image at "west" does not get garbage collected
Updated by Ilya Dryomov over 2 years ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 44714
Updated by Ilya Dryomov about 2 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Backport Bot about 2 years ago
- Copied to Backport #53988: octopus: [rbd-mirror] fix races in snapshot-based mirroring deletion propagation added
Updated by Backport Bot about 2 years ago
- Copied to Backport #53989: pacific: [rbd-mirror] fix races in snapshot-based mirroring deletion propagation added
Updated by Deepika Upadhyay almost 2 years ago
- Status changed from Pending Backport to Resolved
Actions