saltstack 使用salt-ssh报错记录

比较坑的一个问题,因为master机器使用mini安装,执行salt-ssh 执行命令的时候报如下错误。

[ERROR ] An un-handled exception was caught by salt's global exception handler:
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/usr/bin/salt-ssh", line 10, in <module>
salt_ssh()
File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 273, in salt_ssh
client.run()
File "/usr/lib/python2.6/site-packages/salt/cli/ssh.py", line 20, in run
ssh = salt.client.ssh.SSH(self.config)
File "/usr/lib/python2.6/site-packages/salt/client/ssh/__init__.py", line 167, in __init__
self.opts['_ssh_version'] = ssh_version()
File "/usr/lib/python2.6/site-packages/salt/client/ssh/__init__.py", line 1212, in ssh_version
stderr=subprocess.PIPE).communicate()
File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
errread, errwrite)
File "/usr/lib64/python2.6/subprocess.py", line 1238, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/usr/bin/salt-ssh", line 10, in <module>
salt_ssh()
File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 273, in salt_ssh
client.run()
File "/usr/lib/python2.6/site-packages/salt/cli/ssh.py", line 20, in run
ssh = salt.client.ssh.SSH(self.config)
File "/usr/lib/python2.6/site-packages/salt/client/ssh/__init__.py", line 167, in __init__
self.opts['_ssh_version'] = ssh_version()
File "/usr/lib/python2.6/site-packages/salt/client/ssh/__init__.py", line 1212, in ssh_version
stderr=subprocess.PIPE).communicate()
File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
errread, errwrite)
File "/usr/lib64/python2.6/subprocess.py", line 1238, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

解决办法:

master执行 yum -y install openssh-clients 解决,汗!!!

点赞

发表评论

电子邮件地址不会被公开。 必填项已用*标注