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.9.1是一個非常舊的版本(目前版本在寫這是0.15.0)。不知道爲什麼0.9.1仍然在藍圖庫中...是否有更新的版本?您是否嘗試過部署它們? – fgalan 2014-10-19 16:04:10
不,沒有更新的版本。 Orion軟件組件安裝此版本(或嘗試安裝它)。我如何使用新版本檢查廚師食譜?我猜想,只要它在藍圖庫中可用,就可以使用新版本。 – 2014-10-22 03:44:08