Closed jvrplmlmn closed 7 years ago
KitchenCI test seems to fail with this version of CentOS while trying to install a mongo-*
package:
(...)
Recipe: stackstorm::_mongodb
* execute[mongodb-systemctl-daemon-reload] action run
- execute systemctl daemon-reload
* execute[mongodb-systemctl-daemon-reload] action run
- execute systemctl daemon-reload
Recipe: mongodb::install
* yum_package[mongodb-server] action install
* No candidate version available for mongodb-server
================================================================================
Error executing action `install` on resource 'yum_package[mongodb-server]'
================================================================================
Chef::Exceptions::Package
-------------------------
No candidate version available for mongodb-server
Cookbook Trace:
---------------
/tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:41:in `run_action'
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/mongodb/recipes/install.rb
77: package node[:mongodb][:package_name] do
78: options packager_opts
79: action :install
80: version node[:mongodb][:package_version]
81: end
82:
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cache/cookbooks/mongodb/recipes/install.rb:77:in `from_file'
yum_package("mongodb-server") do
package_name "mongodb-server"
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :package
cookbook_name "mongodb"
recipe_name "install"
options "--nogpgcheck"
flush_cache {:before=>false, :after=>false}
end
Platform:
---------
x86_64-linux
Recipe: stackstorm::_mongodb
* service[mongod] action restart
- restart service service[mongod]
Running handlers:
[2016-08-31T12:20:18+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-08-31T12:20:18+00:00] ERROR: Exception handlers complete
Chef Client failed. 38 resources updated in 07 minutes 30 seconds
[2016-08-31T12:20:18+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2016-08-31T12:20:18+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-08-31T12:20:18+00:00] ERROR: yum_package[mongodb-server] (mongodb::install line 77) had an error: Chef::Exceptions::Package: No candidate version available for mongodb-server
[2016-08-31T12:20:24+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Converge failed on instance <default-centos-72>. Please see .kitchen/logs/default-centos-72.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
There is no available mongo*
package:
[vagrant@default-centos-72 ~]$ yum search mongo
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.netcologne.de
* extras: artfiles.org
* updates: ftp.plusline.de
=========================================================================================================================================================================== N/S matched: mongo ===========================================================================================================================================================================
autocorr-mn.noarch : Mongolian auto-correction rules
hunspell-mn.noarch : Mongolian hunspell dictionaries
hyphen-mn.noarch : Mongolian hyphenation rules
Name and summary matches only, use "search all" for everything.
[vagrant@default-centos-72 ~]$
Seems related with #8
Thanks!
Resolves stackstorm/chef-stackstorm#10