functional test fails with RuntimeError: http_proxy or https_proxy set in environment, please unset
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Sean Dague |
Bug Description
In an environment where http proxy is needed to create a python virtual env for the test run the functional tests fail with the similar stack traces:
Traceback (most recent call last):
File "nova/tests/
File "nova/tests/
File "/home/
File "/home/
File "nova/tests/
File "/home/
File "/home/
'http_proxy or https_proxy set in environment, please unset')
RuntimeError: http_proxy or https_proxy set in environment, please unset
This is because passenv config of tox.ini contains the http_proxy and https_proxy env variables and therefore tox passing them into the test executor.
tags: | added: testing |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
assignee: | Balazs Gibizer (balazs-gibizer) → Sean Dague (sdague) |
As a side note. If build a virtualenv with the proxy set, then unset the proxy variables then star tox -e functional then I got a different failure: manager] Error updating resources for node fake-mini. manager. py", line 6564, in update_ available_ resource_ for_node
rt.update_ available_ resource( context, nodename) resource_ tracker. py", line 626, in update_ available_ resource
self._ update_ available_ resource( context, resources) cloudci/ ebalgib/ nova.git/ functional/ .tox/functional /local/ lib/python2. 7/site- packages/ oslo_concurrenc y/lockutils. py", line 271, in inner resource_ tracker. py", line 650, in _update_ available_ resource
self._ init_compute_ node(context, resources) resource_ tracker. py", line 536, in _init_compute_node
self._ update( context, cn) resource_ tracker. py", line 816, in _update
self.scheduler _client. update_ compute_ node(compute_ node) /client/ __init_ _.py", line 68, in update_compute_node
self.reportcli ent.update_ compute_ node(compute_ node) /client/ __init_ _.py", line 37, in __run_method self.instance, __name)(*args, **kwargs) /client/ report. py", line 869, in update_compute_node
compute_ node.hypervisor _hostname) /client/ report. py", line 481, in _ensure_ resource_ provider resource_ provider( uuid) /client/ report. py", line 56, in wrapper /client/ report. py", line 375, in _get_resource_ provider "/resource_ providers/ %s" % uuid) cloudci/ ebalgib/ nova.git/ functional/ .tox/functional /local/ lib/python2. 7/site- packages/ fixtures/ _fixtures/ monkeypatch. py", line 89, in avoid_get method( *args, **kwargs) fixtures. py", line 1450, in _fake_get
raise_ exc=False) cloudci/ ebalgib/ nova.git/ functional/ .tox/functional /local/ lib/python2. 7/site- packages/ keystoneauth1/ session. py", line 845, in get cloudci/ ebalgib/ nova.git/ functional/ .tox/functional /local/ lib/python2. 7/site- packages/ positional/ __init_ _.py", line 101, in inner cloudci/ ebalgib/ nova.git/ functional/ .tox/functional /local/ lib/python2. 7/site- packages/ keystoneauth1/ session. py", line 703, in request cloudci/ ebalgib/ nova.git/ functional/ .tox/functional /local/ lib/python2. 7/site- packages/ keystoneauth1/ session. py", line 761, in _send_request request( method, url, **kwargs) cloudci/ ebalgib/ nova.git/ functional/ .tox/functional /local/ lib/python2. 7/site- packages/ requests/ sessions. py", line 502, in request
2017-07-26 10:38:02,702 ERROR [nova.compute.
Traceback (most recent call last):
File "nova/compute/
File "nova/compute/
File "/home/
return f(*args, **kwargs)
File "nova/compute/
File "nova/compute/
File "nova/compute/
File "nova/scheduler
File "nova/scheduler
return getattr(
File "nova/scheduler
File "nova/scheduler
rp = self._get_
File "nova/scheduler
return f(self, *a, **k)
File "nova/scheduler
resp = self.get(
File "/home/
return captured_
File "nova/tests/
File "/home/
return self.request(url, 'GET', **kwargs)
File "/home/
return wrapped(*args, **kwargs)
File "/home/
resp = send(**kwargs)
File "/home/
resp = self.session.
File "/home/
resp = self.send(prep, **send_kwargs)
File ...