Skip to content

Commit

Permalink
Dev: scripts: add a reminder to use crm cluster health to fix haclu…
Browse files Browse the repository at this point in the history
…ster passwordless ssh authentication (bsc#1228899)
  • Loading branch information
nicholasyang2022 committed Sep 18, 2024
1 parent 35e2cd2 commit f3f181b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crmsh/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1642,7 +1642,10 @@ def _check_parallax_remote_available(printer, hosts):
try:
_parallax_call(printer, hosts, 'true', timeout_seconds=15)
except utils.UserOfHost.UserNotFoundError:
raise ValueError('Passwordless ssh does not work.') from None
if userdir.getuser() == 'hacluster':
raise ValueError('Passwordless ssh does not work. Run "crm cluster health hawk2 --fix" to set it up.') from None
else:
raise ValueError('Passwordless ssh does not work.') from None


def _create_remote_workdirs(printer, hosts, path, timeout_seconds):
Expand Down

0 comments on commit f3f181b

Please sign in to comment.