【问题标题】:ERROR: Option network must be one of: required! You passed "<IP>" What is the cause of this?错误:选项网络必须是以下之一:必需!你通过了“<IP>”这是什么原因?
【发布时间】:2015-10-09 17:41:03
【问题描述】:

我在使用来自https://github.com/atomic-penguin/cookbook-nfsadd_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)

【问题讨论】:

    标签: chef-infra nfs chef-recipe lwrp


    【解决方案1】:

    哦,我的错!这是与 Chef 服务器版本更改相关的问题 版本 12.5.1 这是解决此问题的相关拉动(由 davidgiesberg :D 及时完成)。 https://github.com/atomic-penguin/cookbook-nfs/pull/67

    【讨论】:

      猜你喜欢
      • 2020-10-19
      • 1970-01-01
      • 2012-03-23
      • 1970-01-01
      • 1970-01-01
      • 2018-07-25
      • 2018-02-18
      • 2019-05-05
      • 1970-01-01
      相关资源
      最近更新 更多