Issue Details (XML | Word | Printable)

Key: CHEF-454
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Adam Jacob
Reporter: Marius Ducea
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Chef

Centos4 yum provider failure

Created: 23/Jul/09 09:37 PM   Updated: 10/Nov/09 03:33 AM   Resolved: 29/Oct/09 11:55 AM
Component/s: Chef Client
Affects Version/s: 0.7.12
Fix Version/s: 0.8.2

Environment:

Centos 4.7
Ruby 1.8.7 installed from source



 Description  « Hide

Any package related definition fail on centos4 with the following output:

yum failed - #<Process::Status: pid=31068,exited(1)> - returns: Traceback (most recent call last):
File "/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/provider/package/yum-dump.py", line 83, in ?
y.doUnlock()
TypeError: doUnlock() takes exactly 2 arguments (1 given)

/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/provider/package/yum.rb:79:in `load_data'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/provider/package/yum.rb:34:in `initialize'/usr/local/lib/ruby/1.8/singleton.rb:94:in `new'/usr/local/lib/ruby/1.8/singleton.rb:94:in `instance'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/provider/package/yum.rb:110:in `initialize'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:54:in `new'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:54:in `build_provider'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:86:in `converge'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:85:in `each'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:85:in `converge'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/resource_collection.rb:58:in `each'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/resource_collection.rb:57:in `each'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:63:in `converge'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:373:in `converge'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:81:in `run'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:164:in `run_application'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:162:in `loop'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:162:in `run_application'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application.rb:57:in `run'/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/bin/chef-client:26/usr/local/bin/chef-client:19:in `load'/usr/local/bin/chef-client:19
/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/provider/package/yum.rb:79:in `load_data': yum failed - #<Process::Status: pid=31068,exited(1)> - returns: Traceback (most recent call last): (Chef::Exceptions::Package)
File "/usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/provider/package/yum-dump.py", line 83, in ?
y.doUnlock()
TypeError: doUnlock() takes exactly 2 arguments (1 given)
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/provider/package/yum.rb:34:in `initialize'
from /usr/local/lib/ruby/1.8/singleton.rb:94:in `new'
from /usr/local/lib/ruby/1.8/singleton.rb:94:in `instance'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/provider/package/yum.rb:110:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:54:in `new'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:54:in `build_provider'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:86:in `converge'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:85:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:85:in `converge'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/resource_collection.rb:58:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/resource_collection.rb:57:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/runner.rb:63:in `converge'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:373:in `converge'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/client.rb:81:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:164:in `run_application'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:162:in `loop'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application/client.rb:162:in `run_application'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/lib/chef/application.rb:57:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/chef-0.7.4/bin/chef-client:26
from /usr/local/bin/chef-client:19:in `load'
from /usr/local/bin/chef-client:19



Sort Order: Ascending order - Click to sort in descending order
Matthew Kent added a comment - 17/Aug/09 03:27 PM

CentOS/RHEL 4 is untested as yum-dump.py was written exclusively for CentOS >= 5.2 where I am focusing on an rpm based installed.

I have some time off in a week where I should be able to install CentOS 4 and figure this out.


Marius Ducea added a comment - 28/Aug/09 02:25 PM

Thanks. If I can help with something (test something, etc.) please let me know.


AJ Christensen added a comment - 04/Sep/09 01:49 AM

fixver unknown, 0.7.12


AJ Christensen added a comment - 21/Oct/09 04:38 PM

=D


Thom May added a comment - 21/Oct/09 04:46 PM

Matthew Kent added a comment - 21/Oct/09 05:23 PM

My apologies, forgot about this one.


AJ Christensen added a comment - 26/Oct/09 05:04 PM

Merged, closing


Thom May added a comment - 29/Oct/09 10:42 AM

There's lots more yum fun to be had


Thom May added a comment - 29/Oct/09 11:55 AM

Adam Jacob added a comment - 30/Oct/09 04:28 AM

Hey Thom, can you etiher open a new ticket or provide some guidance about whether this is ready to be closed up?


Thom May added a comment - 30/Oct/09 09:23 AM

The current state of my CHEF-454 branch definitely works on centos 4.8 and centos 5.{2,3}, and I have circumstantial evidence it works on centos 4.5 and 4.6 too. As nearly as I can tell, if we decide that centos/rhel 3 or earlier is a goal, we'll need a totally different strategy.


AJ Christensen added a comment - 30/Oct/09 10:33 AM

I'm happy to commit to CentOS 4.5 support, if that's as low as we can go Just need to know our minimum support reqs.


Adam Jacob added a comment - 30/Oct/09 03:16 PM

RHEL 3 is EOL in 2010, so it seems reasonable to me
that RHEL 4 is the line. Thom, thanks for all your effort here. I'll get this merged later today.


Adam Jacob added a comment - 10/Nov/09 03:33 AM

This is merged. Thanks for all the work on this, everyone, and to Thom for the fix.