nailgun-agent is unreachable if we set http_proxy on target nodes.

Bug #1574465 reported by Chandra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Medium
Fuel Sustaining
8.0.x
Won't Fix
Medium
Fuel Sustaining
Mitaka
Won't Fix
Medium
Fuel Sustaining

Bug Description

Hi,

if we use http_proxy on target nodes then nailgun-agent is not reachable to fule node. this cause fuel node to show target nodes as offline.

nailgun-agent.log

/usr/lib/ruby/1.9.1/openssl/buffering.rb:53:in `sysread': execution expired (HTTPClient::ConnectTimeoutError)
 from /usr/lib/ruby/1.9.1/openssl/buffering.rb:53:in `sysread'
 from /usr/lib/ruby/1.9.1/openssl/buffering.rb:53:in `fill_rbuff'
 from /usr/lib/ruby/1.9.1/openssl/buffering.rb:200:in `gets'
 from /usr/lib/ruby/vendor_ruby/httpclient/session.rb:352:in `gets'
 from /usr/lib/ruby/vendor_ruby/httpclient/session.rb:879:in `block in parse_header'
 from /usr/lib/ruby/1.9.1/timeout.rb:69:in `timeout'
 from /usr/lib/ruby/1.9.1/timeout.rb:100:in `timeout'
 from /usr/lib/ruby/vendor_ruby/httpclient/session.rb:875:in `parse_header'
 from /usr/lib/ruby/vendor_ruby/httpclient/session.rb:836:in `connect_ssl_proxy'
 from /usr/lib/ruby/vendor_ruby/httpclient/session.rb:758:in `block in connect'
 from /usr/lib/ruby/vendor_ruby/httpclient/session.rb:751:in `connect'
 from /usr/lib/ruby/vendor_ruby/httpclient/session.rb:609:in `query'
 from /usr/lib/ruby/vendor_ruby/httpclient/session.rb:164:in `query'
 from /usr/lib/ruby/vendor_ruby/httpclient.rb:1083:in `do_get_block'
 from /usr/lib/ruby/vendor_ruby/httpclient.rb:887:in `block in do_request'
 from /usr/lib/ruby/vendor_ruby/httpclient.rb:981:in `protect_keep_alive_disconnected'
 from /usr/lib/ruby/vendor_ruby/httpclient.rb:886:in `do_request'
 from /usr/lib/ruby/vendor_ruby/httpclient.rb:774:in `request'
 from /usr/lib/ruby/vendor_ruby/httpclient.rb:677:in `get'
 from /usr/bin/nailgun-agent:155:in `get_scheme_and_port'
 from /usr/bin/nailgun-agent:145:in `initialize'
 from /usr/bin/nailgun-agent:861:in `new'
 from /usr/bin/nailgun-agent:861:in `<main>'

Chandra (reddydodda)
tags: added: 8.0
Revision history for this message
Dmitry Guryanov (dguryanov) wrote :

Hello, Chandu! Could you, please, write, how exactly did you set http_proxy?

Changed in fuel:
status: New → Incomplete
assignee: nobody → Fuel Python Team (fuel-python)
Revision history for this message
Arthur Svechnikov (asvechnikov) wrote :

Probably no_proxy should be configured as well

Revision history for this message
Chandra (reddydodda) wrote :

Hi,

i configured no_proxy also. but the result is same.

Revision history for this message
Chandra (reddydodda) wrote :

here is my proxy settings in /etc/environment

export http_proxy='http://192.168.96.6:88'
export https_proxy='http://192.168.96.6:88'
export ftp_proxy='http://192.168.96.6.88'
export no_proxy='192.168.96.0/22,192.168.92.0/24,192.168.93.0/24,192.168.94.0/24,192.168.95.0/24,localhost,127.0.0.0/8,127.0.1.1'
export NO_PROXY=$no_proxy

Changed in fuel:
status: Incomplete → New
Changed in fuel:
assignee: Fuel Python (Deprecated) (fuel-python) → Fuel Sustaining (fuel-sustaining-team)
tags: added: area-python
Revision history for this message
Maksim Malchuk (mmalchuk) wrote :

We don't backport medium bugs due to HCF.

Revision history for this message
Roman Prykhodchenko (romcheg) wrote :

IIRC, no_proxy cannot contain networks.

Revision history for this message
Roman Prykhodchenko (romcheg) wrote :

Chandu, could you please try to specify specific IP addresses in no_proxy? According to the documentation no_proxyshould contain a comma-separated list of domain extensions proxy should not be used for.

You can use this thread on stack exchange for more information:
http://unix.stackexchange.com/questions/23452/set-a-network-range-in-the-no-proxy-environment-variable

Revision history for this message
Roman Prykhodchenko (romcheg) wrote :

Please let us know if that solution resolved the issue

Revision history for this message
Roman Prykhodchenko (romcheg) wrote :

I refered to the official ruby documentation, it's indeed impossible to set CIDR to no_proxy: http://www.rubydoc.info/gems/httpclient/2.1.5.2/HTTPClient#no_proxy-instance_method

Dmitry Pyzhov (dpyzhov)
no longer affects: fuel/newton
Changed in fuel:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.