Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh stage doesn't setup passwordless for hacluster successfully #1505

Open
liangxin1300 opened this issue Aug 4, 2024 · 1 comment
Open

Comments

@liangxin1300
Copy link
Collaborator

ssh stage doesn't setup passwordless for hacluster successfully

alp-1:~ # crm cluster init ssh -y
INFO: Loading "default" profile from /etc/crm/profiles.yml
INFO: Loading "knet-default" profile from /etc/crm/profiles.yml
INFO: A new ssh keypair is generated for user hacluster.
INFO: Done (log saved to /var/log/crmsh/crmsh.log)

alp-1:~ # crm cluster init csync2 -y
INFO: Loading "default" profile from /etc/crm/profiles.yml
INFO: Loading "knet-default" profile from /etc/crm/profiles.yml
ERROR: cluster.init: Please run 'ssh' stage first

alp-1:~ # su - hacluster -c "ssh -o StrictHostKeyChecking=no hacluster@alp-1 true"
Permission denied, please try again.
Permission denied, please try again.
hacluster@alp-1: Permission denied (publickey,password,keyboard-interactive).

while it works for the whole init process

alp-1:~ # crm cluster init -y
INFO: Loading "default" profile from /etc/crm/profiles.yml
INFO: Loading "knet-default" profile from /etc/crm/profiles.yml
INFO: Configuring csync2
INFO: Starting csync2.socket service on alp-1
INFO: BEGIN csync2 checking files
INFO: END csync2 checking files
INFO: Configuring corosync(knet)
WARNING: Not configuring SBD - STONITH will be disabled.
WARNING: Hawk not installed - not configuring web management interface.
WARNING: You should change the hacluster password to something more secure!
INFO: BEGIN Waiting for cluster
...........                                                                                                                                       INFO: END Waiting for cluster
INFO: Loading initial cluster configuration
INFO: Done (log saved to /var/log/crmsh/crmsh.log)

alp-1:~ # su - hacluster -c "ssh -o StrictHostKeyChecking=no hacluster@alp-1 true"
alp-1:~ # echo $?
0
alp-1:~ # cat /etc/os-release 
NAME="openSUSE Tumbleweed"
# VERSION="20240801"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20240801"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
# CPE 2.3 format, boo#1217921
CPE_NAME="cpe:2.3:o:opensuse:tumbleweed:20240801:*:*:*:*:*:*:*"
#CPE 2.2 format
#CPE_NAME="cpe:/o:opensuse:tumbleweed:20240801"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"
@liangxin1300
Copy link
Collaborator Author

No such issue under current CI container environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant