Control: retitle -1 chef: ohai resource broken in Jessie Control: tag -1 + patch pending
Hi, thanks for reporting this. On Thu, Nov 12, 2015 at 11:51:10AM -0800, Noah Kantrowitz wrote: > Package: chef > Version: 11.12.8-2 > > Chef 11.12.8 clearly states that it depends on Ohai at least 7.0.4 > (https://github.com/chef/chef/blob/11.12.8/chef.gemspec#L20). As it > stands, the jessie package depends on Ohai >= 6 and the packaged > version is a 6.x. This results in the ohai resource being > non-functional as it uses an API added in Ohai 7.0.0. Either Chef > needs to be patched to not use this API (Ohai::System#all_packages > with an argument) or the Ohai dependency needs to be corrected. Would you please test the package from https://people.debian.org/~terceiro/chef-jessie/ and let me know it works for you? I have applied the attached patch, and tested a basic usage of the ohai resource which worked for me; if you confirm your use case is fixed I will make a stable update with those changes. -- Antonio Terceiro <[email protected]>
Description: Fix usage of the ohai resource against ohai 6.x The version of chef in Jessie was supposed to be used with ohai 7.x or later, which has a different API, but at the time the metadata checks weren't in place so this was caught before the release. Author: Antonio Terceiro <[email protected]> Origin: vendor Bug-Debian: https://bugs.debian.org/804911 Forwarded: not-needed Last-Update: 2015-11-13 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/lib/chef/provider/ohai.rb +++ b/lib/chef/provider/ohai.rb @@ -34,11 +34,7 @@ class Chef converge_by("re-run ohai and merge results into node attributes") do ohai = ::Ohai::System.new - # If @new_resource.plugin is nil, ohai will reload all the plugins - # Otherwise it will only reload the specified plugin - # Note that any changes to plugins, or new plugins placed on - # the path are picked up by ohai. - ohai.all_plugins @new_resource.plugin + ohai.all_plugins node.automatic_attrs.merge! ohai.data Chef::Log.info("#{@new_resource} reloaded") end
signature.asc
Description: PGP signature
_______________________________________________ Pkg-ruby-extras-maintainers mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers
