replica-conncheck: improve error message during replicainstall

Replica conncheck may fail for other reasons then network
misconfiguration. For example, an incorrect admin password might be
provided. Since conncheck is ran as a separate script in quiet mode,
no insightful error message can be displayed.

https://fedorahosted.org/freeipa/ticket/6497

Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Tomas Krizek
2016-11-25 17:23:29 +01:00
committed by Martin Basti
parent a44974cdf8
commit eb6905bbb4

View File

@@ -104,7 +104,7 @@ def replica_conn_check(master_host, host_name, realm, check_ca,
if result.returncode != 0:
raise ScriptError(
"Connection check failed!"
"\nPlease fix your network settings according to error messages above."
"\nSee /var/log/ipareplica-conncheck.log for more information."
"\nIf the check results are not valid it can be skipped with --skip-conncheck parameter.")
else:
print("Connection check OK")