frcd 发表于 2015-11-26 09:01:10

chef 安装过程中报错 ERROR: Errno::EHOSTUNREACH: No route to host

  问题描述:
  

  环境:CentOS 6.5 三节点

  

  

  Chef-Server
  Chef-Workstation
  Chef-Client


错误:  



  Chef-Workstation节点执行 knife configure -i 报错:





  Please enter the validation clientname:
Please enter the location of the validation key: ~/.chef/chef-validator.pem
Please enter the path to a chef repository (or leave blank):
Creating initial API user...
Please enter a password for the new user:
<span style=&quot;color:#ff0000;&quot;>ERROR: Errno::EHOSTUNREACH: No route to host - connect(2)</span>




  问题解决:

  此处问题在于与 Chef-Server 的通信被Chef-Server的防火墙屏蔽了。
  最简单的解决方法是:直接将Chef-Server的防火墙关闭。
  



  ps:

  chef-client在执行&quot;chef-client -S https://XXXXXXXXX-K /etc/chef/chef-validator.pem&quot;等操作时如果遇到类似问题,也有可能是被Chef-Server的防火墙挡住了。


  





  




  
页: [1]
查看完整版本: chef 安装过程中报错 ERROR: Errno::EHOSTUNREACH: No route to host