yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #87812
[Bug 1582465] Re: unit tests failed with RequiredOptError
The tests work fine in the CI, and py27 is no longer supported. Closing
this, feel free to reopen if you still hit this bug.
** Changed in: glance
Status: New => Won't Fix
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1582465
Title:
unit tests failed with RequiredOptError
Status in Glance:
Won't Fix
Bug description:
the latest commit:9ec54a3f27c683ac3bc5807b81971e1f5a2be99a
Date: Fri May 13 18:43:49 2016 +0000
on glance master whit ubuntu 14,
I used proxy server to internet,
tox -e py27 --
I got so many failed unit tests like this:
glance.tests.unit.v2.test_tasks_resource.TestTasksDeserializer.test_index_negative_limit
----------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "glance/tests/unit/v2/test_tasks_resource.py", line 475, in setUp
super(TestTasksDeserializer, self).setUp()
File "glance/tests/utils.py", line 73, in setUp
config.parse_args(args=[])
File "glance/common/config.py", line 186, in parse_args
default_config_files=default_config_files)
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2169, in __call__
self._check_required_opts()
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2736, in _check_required_opts
raise RequiredOptError(opt.name, group)
oslo_config.cfg.RequiredOptError: value required for option: keystone_authtoken.auth-url
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
other failed tests traceback:
glance.tests.functional.test_cache_middleware.TestImageCacheXattr.test_cache_middleware_transparent_v2
------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "glance/tests/utils.py", line 177, in wrapped
func(*a, **kwargs)
File "glance/tests/functional/test_cache_middleware.py", line 138, in test_cache_middleware_transparent_v2
body=jsonutils.dumps(image_entity))
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1609, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1351, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/httplib2/__init__.py", line 1272, in _conn_request
conn.connect()
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/httplib2/__init__.py", line 916, in connect
self.sock.connect((self.host, self.port) + sa[2:])
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/httplib2/socks.py", line 424, in connect
self.__negotiatehttp(destpair[0], destpair[1])
File "/home/tecs/glance/.tox/py27/local/lib/python2.7/site-packages/httplib2/socks.py", line 390, in __negotiatehttp
raise HTTPError((statuscode, statusline[2]))
httplib2.socks.HTTPError: (504, 'Gateway Time-out')
is this a bug of unit test?
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1582465/+subscriptions
References