Mike,I don't have /usr/local/bin/lsb-release or /etc/enterprise-release on my "Red Hat Enterprise Linux Server".I tried to replace it in /etc/redhat-release, but didn't work.-KDOn Tue, Oct 25, 2011 at 10:20 AM, Michael Glenney < " target="_blank"> > wrote:
Don't know if this will help but if you're talking about Oracle Enterprise Linux it's just Redhat repackaged (we run a few thousand OEL hosts here). One of our guys added this line to our bootstrap for OEL to trick OHAI and it solved a bunch of issues for us:
/bin/sed -i "s/Enterprise Linux Enterprise Linux Server/Redhat Linux/g" /etc/enterprise-release
I asked him "why not /etc/redhat-release" and his response was:
"Chef uses /usr/local/bin/lsb-release which is looking at enterprise-release first"
So, take it with a grain of salt but might be worth testing in your environment and may help you overcome issues until OEL is added as a supported distro.
Mike G.On Mon, Oct 24, 2011 at 1:10 PM, Kandarp Desai < " target="_blank"> > wrote:
It's on Oracle Linux 6.1My recipe Code Looks like this:=====================scope = selfpackages = value_for_platform(["centos","redhat","fedora"] =>{"default" => ["gcc", "gcc-c++", "openssl-devel", "pcre-devel", "zlib-devel"]},"default" => ["gcc", "gcc-c++", "openssl-devel", "pcre-devel", "zlib-devel"])packages.each do |dev_pkg|package dev_pkgend=========================Here's the Debug Output:
==============================Mon, 24 Oct 2011 13:15:39 +0000] ERROR: package[gcc] (/opt/hylocal/conf/chef/solo/cookbooks/nginx/recipes/test.rb:10:in `from_file') had an error:package[gcc] (nginx::test line 10) had an error: You must override load_current_resource in #<Chef::Provider::Package:0x7f72880eec80>/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/provider.rb:51:in `load_current_resource'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource.rb:436:in `run_action'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:45:in `run_action'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:81:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:81:in `each'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:81:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:76:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:312:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:160:in `run'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:192:in `run_application'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:183:in `loop'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:183:in `run_application'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application.rb:67:in `run'/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/bin/chef-solo:25/usr/bin/chef-solo:19:in `load'/usr/bin/chef-solo:19==================================================Thanks.-KDOn Mon, Oct 24, 2011 at 12:56 PM, AJ Christensen < " target="_blank"> > wrote:
What platform?
Post your recipe code + debug output from Chef.
–AJ
On 25 October 2011 08:54, Kandarp Desai < " target="_blank"> > wrote:
>
> Hello,
> I've been using chef for a couple of months now.
> It's been running fine since yesterday. Suddenly, it started giving me error
> when I Install any linux package.. e.g. when I install gcc package, chef
> throws exception: "Chef::Exceptions::Override - package[gcc], You must
> override load_current_resource in #<Chef::Provider::Package:0x7f3eb5e24fa0>"
> ..
> is this known issue ?
> Can someone please help me ?
> -KD
>
Archive powered by MHonArc 2.6.16.