kitchen-example
kitchen-example copied to clipboard
bundle exec solo cook testbox fails
Running with vagrant, cooking fails while trying to build mysql server. Apparently the recipe is expecting a package name which isn't there. The error is:
Recipe: mysql::server
* mysql_service[default] action create
- ubuntu patternRecipe: <Dynamically Defined Resource>
* package[debconf-utils] action install (up to date)
* directory[/var/cache/local/preseeding] action create (up to date)
* template[/var/cache/local/preseeding/mysql-server.seed] action create (up to date)
* execute[preseed mysql-server] action nothing (up to date)
* package[] action install
* No version specified, and no candidate version available for
================================================================================
Error executing action `install` on resource 'package[]'
================================================================================
Chef::Exceptions::Package
-------------------------
No version specified, and no candidate version available for
Resource Declaration:
---------------------
# In /home/vagrant/chef-solo/cookbooks-1/mysql/libraries/provider_mysql_service_ubuntu.rb
54: package new_resource.package_name do
55: action :install
56: end
57:
Compiled Resource:
------------------
# Declared in /home/vagrant/chef-solo/cookbooks-1/mysql/libraries/provider_mysql_service_ubuntu.rb:54:in `block (2 levels) in <class:Ubuntu>'
package("") do
action [:install]
retries 0
retry_delay 2
cookbook_name :mysql
end
================================================================================
Error executing action `create` on resource 'mysql_service[default]'
================================================================================
Chef::Exceptions::Package
-------------------------
package[] (/home/vagrant/chef-solo/cookbooks-1/mysql/libraries/provider_mysql_service_ubuntu.rb line 54) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for
Resource Declaration:
---------------------
# In /home/vagrant/chef-solo/cookbooks-1/mysql/recipes/server.rb
20: mysql_service node['mysql']['service_name'] do
21: version node['mysql']['version']
22: port node['mysql']['port']
23: data_dir node['mysql']['data_dir']
24: server_root_password node['mysql']['server_root_password']
25: server_debian_password node['mysql']['server_debian_password']
26: server_repl_password node['mysql']['server_repl_password']
27: allow_remote_root node['mysql']['allow_remote_root']
28: remove_anonymous_users node['mysql']['remove_anonymous_users']
29: remove_test_database node['mysql']['remove_test_database']
30: root_network_acl node['mysql']['root_network_acl']
31: version node['mysql']['version']
32: action :create
33: end
Compiled Resource:
------------------
# Declared in /home/vagrant/chef-solo/cookbooks-1/mysql/recipes/server.rb:20:in `from_file'
mysql_service("default") do
action [:create]
retries 0
retry_delay 2
service_name "default"
data_dir "/var/lib/mysql"
port "3306"
remove_anonymous_users true
remove_test_database true
server_root_password "welcome!"
server_debian_password "welcome!"
server_repl_password "welcome!"
cookbook_name :mysql
recipe_name "server"
end
[2014-06-20T21:59:40+00:00] ERROR: Running exception handlers
[2014-06-20T21:59:40+00:00] ERROR: Exception handlers complete
Chef Client failed. 2 resources updated
[2014-06-20T21:59:40+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-06-20T21:59:40+00:00] FATAL: Chef::Exceptions::Package: mysql_service[default] (mysql::server line 20) had an error: Chef::Exceptions::Package: package[] (/home/vagrant/chef-solo/cookbooks-1/mysql/libraries/provider_mysql_service_ubuntu.rb line 54) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for
ERROR: RuntimeError: chef-solo failed. See output above.
Same issue here. Any workarounds/fixes? :-/