Skip to content

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

@leafgray

Description

@leafgray

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions