`
SaraWon
  • 浏览: 41706 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论

Chef encountered an error attempting to create the client

 
阅读更多
用chef bootstrap新的client的时候遇到下面的问题:

# knife bootstrap 192.168.253.129 -x root -P 123456 --sudo -VV

-VV会打印出DEBUG LOG

......
DEBUG: read 116 bytes
DEBUG: received packet nr 11 type 94 len 92
INFO: channel_data: 0 72b
192.168.253.129 Creating a new client identity for test02 using the validator key.
DEBUG: read 484 bytes
DEBUG: received packet nr 12 type 94 len 460
INFO: channel_data: 0 443b
192.168.253.129
192.168.253.129 ================================================================================
[color=darkred]192.168.253.129 Chef encountered an error attempting to create the client "test02"
192.168.253.129
[/color]
================================================================================
192.168.253.129
192.168.253.129
192.168.253.129 [2014-05-26T19:56:49-07:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
192.168.253.129 [2014-05-26T19:56:49-07:00] FATAL: Errno::EHOSTUNREACH: No route to host - connect(2)

DEBUG: read 140 bytes
DEBUG: received packet nr 13 type 98 len 44
INFO: channel_request: 0 exit-status false
......


看到了No route to host - connect (2)
但是从test02是可以ping通chef server的
检查了网络是没有问题的

解决方法:

# service iptables stop
# service iptables save

清空防火墙设置 再重新bootstrap就可以了。

分享到:
评论

相关推荐

    Mastering Chef(PACKT,2015)

    The book starts with an introduction to the Chef ecosystem, taking you through the terminologies used in Chef, the anatomy of a chef-client run, and Chef solo. You will learn how to use Knife and its...

    Learning.Chef.1783285214

    You will learn the procedure to set up your workstation and how to create a Cookbook in a hosted Chef environment. Private Chef Server setup is covered in depth, with information on the necessity of...

    Chef: Powerful Infrastructure Automation

    Master specific Chef techniques to run an entire fleet of machines without breaking a sweat. Who This Book Is For If you are a system administrator, Linux administrator, a cloud developer, or ...

    Learning Chef(PACKT,2015)

    You will learn the procedure to set up your workstation and how to create a Cookbook in a hosted Chef environment. Private Chef Server setup is covered in depth, with information on the necessity of...

    chef-client

    在Linux下部署chef-server应用的其中一个RPM包,chef-client

    Learning Chef

    Chef is an open source coniguration management tool that helps to transform infrastructure into simple code. It implies that the process of building and rebuilding IT infrastructure, coniguration ...

    Mastering Chef Provisioning

    By mastering the techniques in this book, you will know how to run an entire fleet of machines without breaking a sweat This book is more helpful than the documentation ( ...

    Chef.Powerful.Infrastructure.Automation.1788392973.pdf

    Master specific Chef techniques to run an entire fleet of machines without breaking a sweat. Who This Book Is For If you are a system administrator, Linux administrator, a cloud developer, or someone ...

    [Chef] Chef Infrastructure Automation Cookbook (英文版)

    Over 80 delicious recipes to automate your cloud and server infrastructure with Chef Overview Configure, deploy, and scale your applications Automate error prone and tedious manual tasks Manage your...

    [Chef] Test-Driven Infrastructure with Chef 2nd Edition (英文版)

    Since Test-Driven Infrastructure with Chef first appeared in mid-2011, infrastructure testing has begun to flourish in the web ops world. In this revised and expanded edition, author Stephen Nelson-...

    Using Chef with Microsoft Azure(Apress,2016)

    This book is your hands-on guide to infrastructure provisioning and configuration management in the cloud using Chef's open source, cross-platform toolset. With over 10,000 customers joining the ...

    [Chef] Test-Driven Infrastructure with Chef 1st Edition (英文版)

    Test-Driven Infrastructure with Chef demonstrates a radical approach to developing web infrastructure that combines the powerful Chef configuration management framework with Cucumber, the leading ...

    Introduction-to-Chef 介绍

    非常详细的介绍Chef的PPT,有150多页,值得学习!!!

    Mastering Chef Provisioning (无水印,书签目录优化)

    By mastering the techniques in this book, you will know how to run an entire fleet of machines without breaking a sweat This book is more helpful than the documentation ( ...

    Automation through Chef Opscode(Apress,2014)

    Automation through Chef Opscode provides an in-depth understanding of Chef, which is written in Ruby and Erlang for configuration management, cloud infrastructure management, system administration, ...

    Chef and Windows

    dChapter 1, Chef and Windows, serves as an introduction to Chef's support for Windows, what sort of features you can expect from Chef on the Windows platform, and how to get started.

    chef-client:Chef Client Cookbook的开发资料库

    厨师客户食谱 该菜谱用于配置运行Chef Infra Client的系统。要求平台类AIX 6+ 清除Linux 德比安费朵拉FreeBSD的苹果系统openSUSE SLES 12+ RHEL Solaris 10+ 的Ubuntu 视窗厨师厨师13.0+食谱cron 2.0+ logrotate ...

    Creating Development Environments with Vagrant(PACKT,2ed,2015)

    Vagrant is an open source software used to create and manage virtual development environments. It can be considered a wrapper around virtualization software such as VirtualBox and configuration ...

    Chef Infrastructure Automation Cookbook(PACKT,2ed,2015)

    Either way this book has everything you need to get the most out of every aspect of Chef. With over 80 recipes on every possible topic this title takes you through covering the various artifacts of ...

Global site tag (gtag.js) - Google Analytics