Bug 2155831

Summary: rbd mirror snapshot schedule were deleted during orderly failback after a non-orderly failover with slight gap between consecutive steps
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: RBD-MirrorAssignee: Ilya Dryomov <idryomov>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.3CC: ceph-eng-bugs, cephqe-warriors
Target Milestone: ---   
Target Release: 6.1z2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vasishta 2022-12-22 14:14:51 UTC
Description of problem:
rbd mirror snapshot schedule were not present after non-orderly failover and orderly failback with slight gap in between consecutive operations.


Steps to Reproduce:
1. Force-promote images on site-a (site-b had primary images and snapshot schedule)
2. <sleep>
2. demote images in site-b
3. <sleep>
4. initiate resync
5. <sleep>
6. Observe snapshot scedule list at site-b (The initial primary)


Version-Release number of selected component (if applicable):
16.2.10-84.el8cp

How reproducible:
Tried twice, faced twice
(in First attempt, the gap b/w no-orderly failover(force-promote) and failback was around 2 days)


Actual results:
Snapshot scheduling at initial primary gets deleted while performing failback (image resync)


Expected results:
Snapshot schedule to be persistent over failover-failback operations

Additional info: