From f3f181b1b479da016d76b6fc72e6981acb15b4bf Mon Sep 17 00:00:00 2001 From: nicholasyang Date: Wed, 18 Sep 2024 14:13:05 +0800 Subject: [PATCH] Dev: scripts: add a reminder to use `crm cluster health` to fix hacluster passwordless ssh authentication (bsc#1228899) --- crmsh/scripts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crmsh/scripts.py b/crmsh/scripts.py index ecae1c046..53611b2c0 100644 --- a/crmsh/scripts.py +++ b/crmsh/scripts.py @@ -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):