Geo: Improve the the single command to output/log error messages
Summary
Customers have a hard time finding an error or any other indication of why the promotion failed on a specific node. For example, the promotion of the database & Gitaly nodes succeeded, but the first application node failed with seemingly no error:
# gitlab-ctl geo promote
WARNING: The current secondary node will now be promoted to a primary node. Are you sure you want to proceed? (y/n)
y
Checking if we need to promote any service running on this node: OK
Detected an application or a Sidekiq or a Geo log cursor or a Geo PostgreSQL node.
Disabling the secondary services and enabling the primary services in the cluster configuration file: OK
Attempting to detect the role of this Geo node: OK
Detected an application node.
Promoting secondary site to primary site: NOT OK
Unable to promote secondary site to primary site.
Proposal
Output and/or log the success/error messages.
Edited by Douglas Barbosa Alexandre