Hi,
While deploying SUSE OpenStack Cloud 6, I got stuck with the following error:
================================================================================
Error executing action install
on resource ‘package[ruby2.1-rubygem-cstruct]’
Chef::Exceptions::Package
zypper failed - #<Process::Status: pid 9711 exit 4>!
Cookbook Trace:
/var/chef/cache/cookbooks/ohai/recipes/default.rb:70:in `from_file’
Resource Declaration:
In /var/chef/cache/cookbooks/ohai/recipes/default.rb
70: package(pkg).run_action(:install)
71:
Compiled Resource:
Declared in /var/chef/cache/cookbooks/ohai/recipes/default.rb:70:in `from_file’
package(“ruby2.1-rubygem-cstruct”) do
action :install
retries 0
retry_delay 2
package_name “ruby2.1-rubygem-cstruct”
cookbook_name “ohai”
recipe_name “default”
end
================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/ohai/recipes/default.rb
Chef::Exceptions::Package
package[ruby2.1-rubygem-cstruct] (ohai::default line 70) had an error: Chef::Exceptions: zypper failed - #<Process::Status: pid 9711 exit 4>!
Cookbook Trace:
/var/chef/cache/cookbooks/ohai/recipes/default.rb:70:in `from_file’
Relevant File Content:
/var/chef/cache/cookbooks/ohai/recipes/default.rb:
63: # ruby&rails), we need to run the new cookbook with the old ruby&rails once,
64: # so we need to support this
65: if node[“languages”][“ruby”][“version”].to_f == 1.8
66: pkg = “rubygem-cstruct”
67: else
68: pkg = “ruby#{node[“languages”][“ruby”][“version”].to_f}-rubygem-cstruct”
69: end
70>> package(pkg).run_action(:install)
71:
72: begin
73: require “cstruct”
74: rescue LoadError
75: # After installation of the gem, we have a new path for the new gem, so
76: # we need to reset the paths if we can’t load cstruct
77: Gem.clear_paths
78: end
79:
[2016-05-15T22:14:26+02:00] ERROR: Running exception handlers
[2016-05-15T22:14:26+02:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2016-05-15T22:14:26+02:00] ERROR: Exception handlers complete
[2016-05-15T22:14:26+02:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2016-05-15T22:14:26+02:00] FATAL: Chef::Exceptions: package[ruby2.1-rubygem-cstruct] (ohai::default line 70) had an error: Chef::Exceptions: zypper failed - #<Process::Status: pid 9711 exit 4>!
Any idea?
Thanks in advance!