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 check failed if manager node deployed on a backup slave server #153

Open
leafgray opened this issue Apr 25, 2022 · 0 comments
Open

ssh check failed if manager node deployed on a backup slave server #153

leafgray opened this issue Apr 25, 2022 · 0 comments

Comments

@leafgray
Copy link

leafgray commented Apr 25, 2022

Maybe it is not recommend / typical usage. My simple environment:
hostA (master)
hostB (backup master)
hostC (slave for backup) . Used as manager node.

host A/B/C can ssh login with each other use key....
but ssh_check failed,after some debug, I found it's caused by hostC can't ssh to hostC.
relate code(SSHCheck.pm line 107):
my $command = 108 "ssh $MHA::ManagerConst::SSH_OPT_CHECK -p $src->{ssh_port} $src->{ssh_user}\@$src->{ssh_ip} \"ssh $MHA::ManagerConst::SSH_OPT_ CHECK -p $dst->{ssh_port} $dst->{ssh_user}\@$dst->{ssh_ip} exit 0\""

add hostC pub key to self authorized_keys, then it works.

I don't know perl too much, there is a way to skip this situation?
or a document improvement should be ok....

Thanks.

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