The following steps leaves stale group on seondary left undeleted,
1. Create and mirror enable a group with 2 images.
2. Let it sync to the secondary
3. Demote on the primary and promote on the secondary
4. Wait until it starts replaying on the original primary
5. Delete the group on the new primary
Credits to Nithya Balachandran for highlighting the issue with detailed steps.
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
if (r < 0) {
derr << "error listing local mirror group snapshots: " << cpp_strerror(r)
<< dendl;
- schedule_load_group_snapshots();
+ notify_group_listener_stop();
return;
}
}
m_in_flight_op_tracker.finish_op();
- if (r < 0) {
+ if (r < 0) { // may be remote group is deleted?
derr << "error listing remote mirror group snapshots: " << cpp_strerror(r)
<< dendl;
- load_remote_group_snapshots();
+ notify_group_listener_stop();
return;
}