Skip to content

Commit

Permalink
Merge pull request ClusterLabs#1307 from nicholasyang2022/refine-mess…
Browse files Browse the repository at this point in the history
…age-on-parallax-auth-failure-4.4

[crmsh-4.4] Fix: parallax: refine error message when parallax fails to perform passwordless authentication
  • Loading branch information
liangxin1300 authored Jan 20, 2024
2 parents 3f8e358 + 76678ef commit 3738736
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crmsh/parallax.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ def prepare(self):
def handle(self, results):
for host, result in results:
if isinstance(result, parallax.Error) and self.strict:
raise ValueError("Failed on {}: {}".format(host, result))
if 'parallax error: SSH requested a password.' in str(result):
raise ValueError(f'Failed on {host}: parallax error: SSH requested a password. Please configure passwordless authenticaiton with "crm cluster init ssh" and "crm cluster join ssh".')
else:
raise ValueError("Failed on {}: {}".format(host, result))
return results

def call(self):
Expand Down

0 comments on commit 3738736

Please sign in to comment.