[chef] http_proxy not work for recipe_url?


Chronological Thread 
  • From: "Brian J. Murrell" < >
  • To:
  • Subject: [chef] http_proxy not work for recipe_url?
  • Date: Thu, 05 Sep 2013 16:39:01 -0400

I have a solo.rb file with the following in it:

json_attribs 
"https://u: /path/node.json"
recipe_url   
"https://u: /path/cookbooks.tar.gz"
http_proxy   "http://proxy:3128";
https_proxy  "http://proxy:3128";

# chef-solo

seems to be using the proxy to fetch the node.json file but it seems to be trying to connect directly to "server" to fetch the cookbooks.tar.gz file.

Is this a known issue/limitation of the proxy support in chef? I would have thought it would be generic for all HTTP activities.

From chef's debug:

[Tue, 06 Aug 2013 13:56:00 -0400] DEBUG: using proxy:3128 for proxy
[Tue, 06 Aug 2013 13:56:00 -0400] DEBUG: Sending HTTP Request via GET to server:443/path/node.json
[Tue, 06 Aug 2013 13:56:01 -0400] DEBUG: Streaming download from https://u: /path/node.json to tempfile /tmp/chef-rest20130806-23887-14zy0ty-0
[Tue, 06 Aug 2013 13:56:01 -0400] DEBUG: Creating path /var/tmp/chef-solo to extract recipes into
/usr/lib/ruby/1.8/net/http.rb:560:in `initialize': Connection timed out - connect(2) (Errno::ETIMEDOUT)
        from /usr/lib/ruby/1.8/net/http.rb:560:in `open'
        from /usr/lib/ruby/1.8/net/http.rb:560:in `connect'
        from /usr/lib/ruby/1.8/timeout.rb:53:in `timeout'
        from /usr/lib/ruby/1.8/timeout.rb:101:in `timeout'
        from /usr/lib/ruby/1.8/net/http.rb:560:in `connect'
        from /usr/lib/ruby/1.8/net/http.rb:553:in `do_start'
        from /usr/lib/ruby/1.8/net/http.rb:542:in `start'
        from /usr/lib/ruby/1.8/open-uri.rb:242:in `open_http'
        from /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
        from /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
        from /usr/lib/ruby/1.8/open-uri.rb:162:in `catch'
        from /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
        from /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
        from /usr/lib/ruby/1.8/open-uri.rb:518:in `open'
        from /usr/lib/ruby/1.8/open-uri.rb:30:in `open'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/application/solo.rb:164:in `reconfigure'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/application/solo.rb:163:in `open'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/application/solo.rb:163:in `reconfigure'
from /usr/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/../lib/chef/application.rb:60:in `run'
        from /usr/lib/ruby/gems/1.8/gems/chef-0.9.14/bin/chef-solo:25
        from /usr/bin/chef-solo:19:in `load'
        from /usr/bin/chef-solo:19

Any ideas?

Cheers,
b.




Archive powered by MHonArc 2.6.16.

§