switchover: detect if the replica is missing from zarcillo

Ensure master and replica rows exists in zarcillo. Also readability cleanup (see commits)

Bug: T430104

Merge request reports

Loading