A bundle replica running Pacemaker Remote is allowed to run on a Pacemaker Remote node, with both remote connections running on a cluster node.
This feature invalidated a check in the scheduler for whether a connection's host is online. A simple fix was devised, but when trying to come up with test cases, a number of other issues were found with the handling of failed remote connections in this situation.
The work was started in this branch of a fork but not completed. See the commits there for what was intended to be tested and what went wrong.