[mha@n-op-209 etc]$ masterha_check_ssh --conf=/usr/local/mha-manager/etc/test.conf
Wed Mar 23 15:09:56 2016 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.
Wed Mar 23 15:09:56 2016 - [info] Reading application default configuration from /usr/local/mha-manager/etc/test.conf..
Wed Mar 23 15:09:56 2016 - [info] Reading server configuration from /usr/local/mha-manager/etc/test.conf..
Wed Mar 23 15:09:56 2016 - [info] Starting SSH connection tests..
这里开始了排列组合式的ssh检测,我们有4个节点,那么就是n*(n-1)次检测,这里是12次
Wed Mar 23 15:09:56 2016 - [error][/usr/local/share/perl5/MHA/SSHCheck.pm, ln63]
Wed Mar 23 15:09:56 2016 - [debug] Connecting via SSH from mha@10.20.64.202(10.20.64.202:22) to mha@10.20.64.203(10.20.64.203:22)..
Permission denied (publickey,password).
(node1到node2没有权限)
Wed Mar 23 15:09:56 2016 - [error][/usr/local/share/perl5/MHA/SSHCheck.pm, ln111] SSH connection from mha@10.20.64.202(10.20.64.202:22) to mha@10.20.64.203(10.20.64.203:22) failed!
(node1到node2连接失败!)
注意:这里并没有检测node1到node3,也没有检测node1到node4,直接进入node2检测其他节点阶段
也就是说:当出现异常后,放弃该节点对剩余节点的所有检测,进入下一个节点连接检测
---
Wed Mar 23 15:09:57 2016 - [error][/usr/local/share/perl5/MHA/SSHCheck.pm, ln63]
Wed Mar 23 15:09:56 2016 - [debug] Connecting via SSH from mha@10.20.64.203(10.20.64.203:22) to mha@10.20.64.202(10.20.64.202:22)..
Permission denied (publickey,password).
(node2到node1没有权限)
Wed Mar 23 15:09:56 2016 - [error][/usr/local/share/perl5/MHA/SSHCheck.pm, ln111] SSH connection from mha@10.20.64.203(10.20.64.203:22) to mha@10.20.64.202(10.20.64.202:22) failed!
(node2到node3连接失败!)
---
Wed Mar 23 15:09:57 2016 - [error][/usr/local/share/perl5/MHA/SSHCheck.pm, ln63]
下面成功了为什么还会报错?
Wed Mar 23 15:09:57 2016 - [debug] Connecting via SSH from mha@10.20.64.204(10.20.64.204:22) to mha@10.20.64.202(10.20.64.202:22)..
Wed Mar 23 15:09:57 2016 - [debug] ok.
(这里是第一次成功的:node3到node1)
所以上面那句报错,应该是属于这里的(我补:Wed Mar 23 15:09:57 2016 - [error][/usr/local/share/perl5/MHA/SSHCheck.pm, ln63])
Wed Mar 23 15:09:57 2016 - [debug] Connecting via SSH from mha@10.20.64.204(10.20.64.204:22) to mha@10.20.64.203(10.20.64.203:22)..
Permission denied (publickey,password).
(node3到node2没有权限)
Wed Mar 23 15:09:57 2016 - [error][/usr/local/share/perl5/MHA/SSHCheck.pm, ln111] SSH connection from mha@10.20.64.204(10.20.64.204:22) to mha@10.20.64.203(10.20.64.203:22) failed!
(node3到node2连接失败!)
---
Wed Mar 23 15:09:58 2016 - [error][/usr/local/share/perl5/MHA/SSHCheck.pm, ln63]
下面成功了为什么还会报错?
Wed Mar 23 15:09:57 2016 - [debug] Connecting via SSH from mha@10.20.64.210(10.20.64.210:22) to mha@10.20.64.202(10.20.64.202:22)..
Wed Mar 23 15:09:57 2016 - [debug] ok.
(这里是第二次成功的:node4到node1)
所以上面那句报错,应该是属于这里的(我补:Wed Mar 23 15:09:58 2016 - [error][/usr/local/share/perl5/MHA/SSHCheck.pm, ln63])
Wed Mar 23 15:09:57 2016 - [debug] Connecting via SSH from mha@10.20.64.210(10.20.64.210:22) to mha@10.20.64.203(10.20.64.203:22)..
Permission denied (publickey,password).
(node4到node2没有权限)
Wed Mar 23 15:09:58 2016 - [error][/usr/local/share/perl5/MHA/SSHCheck.pm, ln111] SSH connection from mha@10.20.64.210(10.20.64.210:22) to mha@10.20.64.203(10.20.64.203:22) failed!
(node4到node2连接失败!)
semi-panic: attempt to dup freed string at /usr/local/share/perl5/Carp.pm line 229.
SSH Configuration Check Failed!
at /usr/local/mha-manager/bin/masterha_check_ssh line 44.
ssh连接检测失败!
到此检测完毕