使用https://github.com/atomic-penguin/cookbook-nfs
中的 add_exports LWRP时,我遇到了一个非常奇怪的错误奇怪的是 - 它在一段时间内完美地工作,并且代码没有被改变。
可能是什么原因造成的?
================================================================================[0m
serverIP [31mRecipe Compile Error in /var/chef/cache/cookbooks/nfs/recipes/add_exports.rb[0m
serverIP ================================================================================[0m
serverIP
serverIP [0mChef::Exceptions::ValidationFailed[0m
serverIP ----------------------------------[0m
serverIP Option network must be one of: required! You passed "10.71.118.68".[0m
serverIP
serverIP [0mCookbook Trace:[0m
serverIP ---------------[0m
serverIP /var/chef/cache/cookbooks/nfs/recipes/add_exports.rb:4:in `block in from_file'
serverIP [0m /var/chef/cache/cookbooks/nfs/recipes/add_exports.rb:2:in `from_file'[0m
serverIP
serverIP [0mRelevant File Content:[0m
serverIP ----------------------[0m
serverIP /var/chef/cache/cookbooks/nfs/recipes/add_exports.rb:
serverIP [0m
serverIP [0m 1: # Adds an entry in /etc/exports on nfs server
serverIP [0m 2: nfs_export "/exports" do
serverIP [0m 3: directory node['nfs']['exports']['directory']
serverIP [0m 4>> network node['nfs']['exports']['network']
serverIP [0m 5: writeable node['nfs']['exports']['writeable']
serverIP [0m 6: sync node['nfs']['exports']['sync']
serverIP [0m 7: options node['nfs']['exports']['options']
serverIP [0m 8: end 9: [0m
serverIP
serverIP [0m[0m
serverIP Running handlers:[0m
serverIP [2015-10-09T01:29:11-05:00] ERROR: Running exception handlers
serverIP Running handlers complete
serverIP [0m[2015-10-09T01:29:11-05:00] ERROR: Exception handlers complete
serverIP Chef Client failed. 0 resources updated in 05 seconds[0m
serverIP [2015-10-09T01:29:11-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
serverIP [2015-10-09T01:29:11-05:00] ERROR: Option network must be one of: required! You passed "10.71.118.68".
serverIP [2015-10-09T01:29:12-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
答案 0 :(得分:0)
哦,我的坏!这是与Chef服务器版本更改相关的问题 版本12.5.1 这是相关的拉动(由davidgiesberg及D迅速完成)修复此问题。 https://github.com/atomic-penguin/cookbook-nfs/pull/67