我遇到了厨师零问题;奇怪的是,我一直在以这种方式配置许多节点而没有实际改变东西,但现在已经破坏了。
(python)➜ chef_files git:(develop) ✗ knife node list
feeder2
(python)➜ chef_files git:(develop) ✗ knife node show feeder2
Node Name: feeder2
Environment: production
FQDN:
IP:
Run List: role[base], role[feeder]
Roles:
Recipes:
Platform:
Tags:
(python)➜ chef_files git:(develop) ✗ knife role list
base
feeder
(python)➜ chef_files git:(develop) ✗ knife zero converge --config <...>/chef_files/.chef/knife.rb --ssh-user ec2-user --identity-file <...>.pem -P "$login_password" name:feeder2
INFO: Using configuration from <...>/chef_files/.chef/knife.rb
INFO: Remote command: sudo chef-client -S http://127.0.0.1:18889
INFO: Using configuration from <...>/chef_files/.chef/knife.rb
INFO: Started chef-zero at http://localhost:8889 with repository at .
One version per cookbook
clients at <...>/chef_files/clients
cookbooks at <...>/chef_files/cookbooks, <...>/chef_files/site-cookbooks
data_bags at <...>/chef_files/data_bags
environments at <...>/chef_files/environments
nodes at <...>/chef_files/nodes
roles at <...>/chef_files/roles
users at <...>/chef_files/users
policies at <...>/chef_files/policies
Starting Chef Client, version 12.16.42
resolving cookbooks for run list: []
Synchronizing Cookbooks:
Installing Cookbook Gems:
Compiling Cookbooks...
[2017-02-11T15:30:04+00:00] WARN: Node feeder2 has an empty run list.
Converging 0 resources
我已经检查过,但角色/节点json文件都在那里....
任何提示/帮助表示赞赏! 保罗
答案 0 :(得分:0)
问题解决但是我还没有完全理解它......在某些时候,当厨师零(服务器)失败时,我试图通过运行新服务器作为deamon或从终端手动修复它。然而,这个实例是空的,不会被厨师零填充。
在我停止所有厨师零实例并开始收敛后,它得到了解决;这创建了一个新的实例,然后填充所以运行列表和所有都知道。
保