From 69cac01994d5618237dcd72ced9b3e670eb9946c Mon Sep 17 00:00:00 2001 From: Ethan Mosbaugh Date: Wed, 13 Nov 2024 13:18:57 -0600 Subject: [PATCH] chore: fix message when join node is not included in the no-proxy addresses (#1496) --- pkg/cmd/join.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/join.go b/pkg/cmd/join.go index 405a959cb..5b8f9176a 100644 --- a/pkg/cmd/join.go +++ b/pkg/cmd/join.go @@ -224,7 +224,10 @@ var joinCommand = &cli.Command{ return fmt.Errorf("failed to check proxy config for local IP: %w", err) } if !proxyOK { - return fmt.Errorf("no-proxy config %q does not allow access to local IP %q", jcmd.InstallationSpec.Proxy.NoProxy, localIP) + logrus.Errorf("This node's IP address %s is not included in the no-proxy list (%s).", localIP, jcmd.InstallationSpec.Proxy.NoProxy) + logrus.Infof(`The no-proxy list cannot easily be modified after initial installation.`) + logrus.Infof(`Recreate the first node and pass all node IP addresses to --no-proxy.`) + return ErrNothingElseToAdd } isAirgap := c.String("airgap-bundle") != ""