Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 0.8.4
-
Fix Version/s: 0.8.8
-
Component/s: None
-
Labels:None
-
Environment:
CentOS 5.3
Description
Seems to be inferring the wrong path for files inside of the directory to be copied. The recipe works fine in 0.7.16.
[Thu, 04 Mar 2010 15:07:41 -0800] INFO: Starting Chef Solo Run
[Thu, 04 Mar 2010 15:07:44 -0800] INFO: Creating remote_directory[/tmp/target] at /tmp/target
[Thu, 04 Mar 2010 15:07:44 -0800] INFO: Setting owner to 0 for remote_directory[/tmp/target]
[Thu, 04 Mar 2010 15:07:44 -0800] INFO: Setting group to 0 for remote_directory[/tmp/target]
[Thu, 04 Mar 2010 15:07:44 -0800] INFO: Setting mode to 755 for remote_directory[/tmp/target]
[Thu, 04 Mar 2010 15:07:44 -0800] INFO: Creating directory[/tmp/target/opt/chef-system/cookbooks/trivial-dir/files/default/target-dir] at /tmp/target/opt/chef-system/cookbooks/trivial-dir/files/default/target-dir
[Thu, 04 Mar 2010 15:07:44 -0800] INFO: Setting owner to 0 for directory[/tmp/target/opt/chef-system/cookbooks/trivial-dir/files/default/target-dir]
[Thu, 04 Mar 2010 15:07:44 -0800] INFO: Setting group to 0 for directory[/tmp/target/opt/chef-system/cookbooks/trivial-dir/files/default/target-dir]
[Thu, 04 Mar 2010 15:07:44 -0800] INFO: Setting mode to 755 for directory[/tmp/target/opt/chef-system/cookbooks/trivial-dir/files/default/target-dir]
[Thu, 04 Mar 2010 15:07:44 -0800] ERROR: remote_directory[/tmp/target] (/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/lib/chef/mixin/recipe_definition_dsl_core.rb line 56) had an error:
Cannot find a preferred file for target-dir/opt/chef-system/cookbooks/trivial-dir/files/default/target-dir/mice!
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/mixin/find_preferred_file.rb:87:in `find_preferred_file'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_file.rb:127:in `get_from_local_cookbook'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_file.rb:55:in `do_remote_file'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_file.rb:34:in `action_create'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_directory.rb:93:in `fetch_remote_file'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_directory.rb:51:in `do_recursive'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_directory.rb:50:in `each'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_directory.rb:50:in `do_recursive'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_directory.rb:38:in `action_create'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/runner.rb:60:in `send'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/runner.rb:60:in `run_action'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/runner.rb:114:in `converge'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/runner.rb:113:in `each'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/runner.rb:113:in `converge'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/runner.rb:91:in `converge'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/client.rb:319:in `converge'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/client.rb:110:in `run_solo'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/application/solo.rb:198:in `run_application'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/application/solo.rb:190:in `loop'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/application/solo.rb:190:in `run_application'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/application.rb:57:in `run'
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/chef-solo:26
/usr/local/bin/chef-solo:19:in `load'
/usr/local/bin/chef-solo:19
/usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/mixin/find_preferred_file.rb:87:in `find_preferred_file': Cannot find a preferred file for target-dir/opt/chef-system/cookbooks/trivial-dir/files/default/target-dir/mice! (Chef::Exceptions::FileNotFound)
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_file.rb:127:in `get_from_local_cookbook'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_file.rb:55:in `do_remote_file'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_file.rb:34:in `action_create'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_directory.rb:93:in `fetch_remote_file'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_directory.rb:51:in `do_recursive'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_directory.rb:50:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_directory.rb:50:in `do_recursive'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/provider/remote_directory.rb:38:in `action_create'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/runner.rb:60:in `send'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/runner.rb:60:in `run_action'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/runner.rb:114:in `converge'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/runner.rb:113:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/runner.rb:113:in `converge'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/runner.rb:91:in `converge'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/client.rb:319:in `converge'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/client.rb:110:in `run_solo'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/application/solo.rb:198:in `run_application'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/application/solo.rb:190:in `loop'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/application/solo.rb:190:in `run_application'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/../lib/chef/application.rb:57:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.8.4/bin/chef-solo:26
from /usr/local/bin/chef-solo:19:in `load'
from /usr/local/bin/chef-solo:19
I would like to attach a tarball with a simple cookbook demoing the issue in it. How do I do it?