Adjust the error message of setup-ssh if join check fails
authorRené Nussbaumer <rn@google.com>
Thu, 21 Oct 2010 13:01:32 +0000 (15:01 +0200)
committerRené Nussbaumer <rn@google.com>
Thu, 21 Oct 2010 14:03:37 +0000 (16:03 +0200)
Signed-off-by: René Nussbaumer <rn@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

tools/setup-ssh

index 9dfab38..4bc63ba 100755 (executable)
@@ -442,7 +442,10 @@ def main():
             logging.warning("Host %s failed join check, forced to continue",
                             host)
           else:
-            raise JoinCheckError("Host %s failed join check" % host)
+            raise JoinCheckError(("Host %s failed join check; Please verify"
+                                  " that the host was not previously joined"
+                                  " to another cluster and use --force-join"
+                                  " to continue") % host)
         SetupSSH(transport)
       except errors.GenericError, err:
         logging.error("While doing setup on host %s an error occurred: %s",