proxy setting not respected by lava-tool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA Tool |
Fix Released
|
Critical
|
Michael Hudson-Doyle |
Bug Description
The proxy setting (like http_proxy environment variable) aren't respected/used by lava-tool.
A consequence is that lava-tool auth-add can't be performed below a proxy.
Output debug trace after lava-tool auth-add:
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
run_
File "/usr/lib/
raise SystemExit(
File "/usr/lib/
return command.invoke()
File "/usr/lib/
token_user = sp.system.whoami()
File "/usr/lib/
return self.__
File "/usr/lib/
verbose=
File "/usr/lib/
self.
File "/usr/lib/
connection.
File "/usr/lib/
self.
File "/usr/lib/
self.send(msg)
File "/usr/lib/
self.connect()
File "/usr/lib/
self.timeout)
File "/usr/lib/
raise error, msg
socket.error: [Errno 110] Connection timed out
Related branches
- Andy Doan (community): Approve
-
Diff: 110 lines (+34/-50)1 file modifiedlava_tool/authtoken.py (+34/-50)
Changed in lava-tool: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in lava-tool: | |
importance: | High → Critical |
Changed in lava-tool: | |
milestone: | none → 2012.06 |
assignee: | Zygmunt Krynicki (zkrynicki) → nobody |
Changed in lava-tool: | |
status: | In Progress → Fix Committed |
Changed in lava-tool: | |
status: | Fix Committed → Fix Released |
The issue seems to be located in xmlrpclib.Transport class.
We need to take care of the proxy setting when we establish the http connection