厨师食谱不适用于猎户座

时间:2014-10-08 10:37:38

标签: fiware-orion

在FIWARE Labs中测试Orion Context Broker GE,使用一个新的蓝图模板,在该层中使用orion 0.9.1软件(在centos和ubuntu中测试),它不起作用。

启动新模板实例并进入虚拟机后:

[root@orion63-orion1-1-005760 ~]# cat /etc/redhat-release 
CentOS release 6.3 (Final)
[root@orion63-orion1-1-005760 ~]# chef-client 
Starting Chef Client, version 11.14.6
resolving cookbooks for run list: ["orion-dbcluster::0.8.1_install"]
Synchronizing Cookbooks:
  - apt
  - yum
  - orion-dbcluster
Compiling Cookbooks...

================================================================================
Recipe Compile Error in /var/cache/chef/cookbooks/orion-dbcluster/recipes/0.8.1_install.rb
================================================================================

NoMethodError
-------------
undefined method `[]' for nil:NilClass

Cookbook Trace:
---------------
  /var/cache/chef/cookbooks/orion-dbcluster/recipes/0.8.1_install.rb:10:in `from_file'

Relevant File Content:
----------------------
/var/cache/chef/cookbooks/orion-dbcluster/recipes/0.8.1_install.rb:

  3:  package node[:oriondbcluster][:package_name] do
  4:    version "0.8.1-dev" 
  5:    action :install
  6:  end
  7:  
  8:  shardnode = search(
  9:    :node,
 10>>   "mongodb_cluster_name:#{node['mongodb']['cluster_name']} AND \
 11:     recipes:mongodbshard\\:\\:2.2.3_install  AND \
 12:     chef_environment:#{node.chef_environment}" 
 13:  )
 14:  
 15:  
 16:  # context init
 17:  template "/opt/contextini.sh" do
 18:      action :create
 19:      source "contextbroker.init.erb" 

Running handlers:
Running handlers complete
Chef Client failed. 0 resources updated in 4.055387918 seconds

1 个答案:

答案 0 :(得分:0)

是。这是一个旧版本。如果要使用较新版本,则应使用新的orion版本再次创建蓝图模板。此外,您可以尝试在VM中执行chef-client。现在应将旧版本链接到较新版本,以避免此类错误。对不起有任何不便