dellcloudedge/crowbar — Issue #19: nova barclamp don*t download uec images
Author: melezhik
Created: 2011-10-18 10:37:01+00:00
State: open

`/opt/dell/chef/cookbooks/nova/recipes/project.rb` ( lines 158-164) :

remote_file image do
source image
path "#{node[:nova][:user_dir]}/images/#{filename}"
owner node[:nova][:user]
action :create_if_missing
notifies :run, "bash[upload_image #{filename}]", :immediately
end

It because of bug in chef - http://tickets.opscode.com/browse/CHEF-1959 , as for version 0.10.14 create_if_missing action don't work on remote_file resource

---
a simple workaround : `not_if ("test -f #{node[:nova][:user_dir]}/images/#{filename}")`