0

我遇到了厨师零的问题;奇怪的是,我一直在以这种方式配置许多节点而没有真正改变东西,但现在它已经坏了。

(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 文件都在那里......

任何提示/帮助表示赞赏!保罗

4

1 回答 1

-1

问题已解决,但我还没有完全理解它......在某些时候,当厨师零(服务器)失败时,我试图通过将新服务器作为守护进程运行或从终端手动运行来修复它。然而,这个实例是空的,不会被零号厨师填充。

在我停止所有厨师零实例并开始收敛后,它得到了解决;这创建了一个新实例,然后填充该实例,以便知道运行列表和所有内容。

保罗

于 2017-02-11T16:01:38.980 回答