[chef] Re: Re: Re: Re: Issue with easy_install_package provider


Chronological Thread 
  • From: Grig Gheorghiu < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Issue with easy_install_package provider
  • Date: Mon, 22 Nov 2010 21:51:11 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=wkIeaBKS+wOGvvk5B5VAIyoykyWoIcHj96uJ152WsQNqu0j7bIM9Q3OMpZYg1sien3 03BzPo2bOTVcDmrn3gbiKYXBKqbG7Vcuweu8IojRap0F1tirjeZGQ5vJ5nNoGUW7d67a yTtt52+jgLQDAy9YoGwffoOVl+TQk4r12ES3I=

On Mon, Nov 22, 2010 at 9:28 PM, Joe Williams 
< >
 wrote:
> Try this patch out (works for me on a handful of packages):
> http://friendpaste.com/4IpYnXoV83AAKd1KxT5TO3
> If it works for you I'll create a bug ticket and get it submitted for the
> next release.


Hmm..I applied the patch and it seems to have worked fine when the
dnspython package wasn't installed -- it went ahead and installed it.
However, the next time chef-client ran, the installation check failed
with:

ERROR: easy_install_package[dnspython]
(/srv/chef/cache/cookbooks/evite/recipes/default.rb:67:in `from_file')
had an error:
Expected process to exit 0, but it exited with 1
---- Begin output of python -c "import dnspython; print dnspython.__path__" 
----
STDOUT:
STDERR: Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named dnspython
---- End output of python -c "import dnspython; print dnspython.__path__" ----
Ran python -c "import dnspython; print dnspython.__path__" returned 1
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/shell_out.rb:232:in
`invalid!'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/shell_out.rb:218:in
`error!'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/shell_out.rb:33:in
`shell_out!'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/provider/package/easy_install.rb:69:in
`load_current_resource'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource.rb:394:in
`run_action'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:53:in
`run_action'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in
`converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:89:in
`converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection.rb:94
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in
`call'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in
`call_iterator_block'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in
`step'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in
`iterate'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in
`each_with_index'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/resource_collection.rb:92:in
`execute_each_resource'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/runner.rb:84:in
`converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:268:in
`converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:171:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/client.rb:222:in
`run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/client.rb:212:in
`loop'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/client.rb:212:in
`run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application.rb:62:in
`run'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/chef-client:26
/usr/bin/chef-client:19:in `load'
/usr/bin/chef-client:19
ERROR: Running exception handlers
ERROR: Exception handlers complete

Can you please paste your full working version of easy_install.rb?
Maybe I messed up when I applied the patch.

Grig



Archive powered by MHonArc 2.6.16.

§