yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #66315
[Bug 1706545] Re: functional test fails with RuntimeError: http_proxy or https_proxy set in environment, please unset
Reviewed: https://review.openstack.org/487327
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=dd26d3d14139dedc97397639117f56970940b500
Submitter: Jenkins
Branch: master
commit dd26d3d14139dedc97397639117f56970940b500
Author: Balazs Gibizer <balazs.gibizer@xxxxxxxxxxxx>
Date: Wed Jul 26 11:03:13 2017 +0200
do not pass proxy env variables by tox
In an environment where http_proxy env variable is needed to buil a
proper python virtualenv the functional test fails with:
RuntimeError: http_proxy or https_proxy set in environment, please unset
This patch removes passing proxy env varibles in tox.ini to avoid this
error.
Change-Id: Ia4d8fe952aecb5c3e688878ef0fdafd6fac4fc7a
Closes-Bug: #1706545
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1706545
Title:
functional test fails with RuntimeError: http_proxy or https_proxy
set in environment, please unset
Status in OpenStack Compute (nova):
Fix Released
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/functional/notification_sample_tests/test_instance.py", line 91, in setUp
super(TestInstanceNotificationSample, self).setUp()
File "nova/tests/functional/notification_sample_tests/notification_sample_base.py", line 86, in setUp
self.useFixture(nova_fixtures.PlacementFixture())
File "/home/cloudci/ebalgib/nova.git/functional/.tox/functional/local/lib/python2.7/site-packages/testtools/testcase.py", line 756, in useFixture
reraise(*exc_info)
File "/home/cloudci/ebalgib/nova.git/functional/.tox/functional/local/lib/python2.7/site-packages/testtools/testcase.py", line 731, in useFixture
fixture.setUp()
File "nova/tests/fixtures.py", line 1403, in setUp
intercept.install_intercept()
File "/home/cloudci/ebalgib/nova.git/functional/.tox/functional/local/lib/python2.7/site-packages/wsgi_intercept/interceptor.py", line 89, in install_intercept
self._module.install()
File "/home/cloudci/ebalgib/nova.git/functional/.tox/functional/local/lib/python2.7/site-packages/wsgi_intercept/_urllib3.py", line 34, in install
'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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1706545/+subscriptions
References