The steps to reintroduce a failed primary node are too long and error prone.
Specifically steps 3 and 4 could be removed from https://access.redhat.com/documentation/en-us/red_hat_cloudforms/4.2/html/configuring_high_availability/database_failover#reintroducing_the_failed_node if we just printed that information on both primary and standby configuration (it won't hurt anything on the primary).
This is already in 5.8 and master so changing the flags to be a 5.7 only issue
Verified in 184.108.40.206
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.