From b6ba7328160c822f6fa0b277cff407d208a13bca Mon Sep 17 00:00:00 2001 From: Sebastiaan van Steenis Date: Tue, 22 May 2018 12:26:42 +0200 Subject: [PATCH] Improve port check error message --- cluster/network.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/network.go b/cluster/network.go index a1420a8c..7274cf7f 100644 --- a/cluster/network.go +++ b/cluster/network.go @@ -447,7 +447,7 @@ func checkPlaneTCPPortsFromHost(ctx context.Context, host *hosts.Host, portList logrus.Debugf("[network] Length of containerLog is [%d] on host: %s", len(containerLog), host.Address) if len(containerLog) > 0 { portCheckLogs := strings.Join(strings.Split(strings.TrimSpace(containerLog), "\n"), ", ") - return fmt.Errorf("[network] Port check for ports: [%s] failed on host: [%s]", portCheckLogs, host.Address) + return fmt.Errorf("[network] Host [%s] is not able to connect to the following ports: [%s]. Please check network policies and firewall rules", host.Address, portCheckLogs) } return nil }