2014-10-08 29 views
1

在FIWARE实验室中测试Orion上下文经纪人GE,使用新的蓝图模板和层级中的orion 0.9.1软件(在centos和ubuntu中测试),它不起作用。厨师食谱不适用于猎户座

推出一个新的模板实例,并进入虚拟机后:

 
[[email protected] ~]# cat /etc/redhat-release 
CentOS release 6.3 (Final) 
[[email protected] ~]# 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 
+0

猎户座0.9.1是一个非常旧的版本(目前版本在写这是0.15.0)。不知道为什么0.9.1仍然在蓝图库中...是否有更新的版本?您是否尝试过部署它们? – fgalan 2014-10-19 16:04:10

+0

不,没有更新的版本。 Orion软件组件安装此版本(或尝试安装它)。我如何使用新版本检查厨师食谱?我猜想,只要它在蓝图库中可用,就可以使用新版本。 – 2014-10-22 03:44:08

回答

0

是。这是一个旧版本。如果您想使用较新的版本,则应该再次使用新的Orion版本创建蓝图模板。另外,你可以尝试在虚拟机中执行chef-client。旧版本应该现在链接到新版本,以避免这种错误。对不起,任何不方便