yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #33929
[Bug 1445827] Re: unit test failures: Glance insist on ordereddict
Robert, I think this pre-dates the pbr 1.0 change by a month or so.
** Changed in: glance
Status: In Progress => Fix Committed
** Also affects: glance/kilo
Importance: Undecided
Status: New
** Also affects: glance/liberty
Importance: High
Assignee: Stuart McLaren (stuart-mclaren)
Status: Fix Committed
** Changed in: glance/kilo
Status: New => In Progress
** Changed in: glance/kilo
Importance: Undecided => Medium
** Changed in: glance/kilo
Assignee: (unassigned) => Stuart McLaren (stuart-mclaren)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1445827
Title:
unit test failures: Glance insist on ordereddict
Status in OpenStack Image Registry and Delivery Service (Glance):
Fix Committed
Status in Glance kilo series:
In Progress
Status in Glance liberty series:
Fix Committed
Status in Taskflow for task-oriented systems.:
In Progress
Bug description:
There's no python-ordereddict package anymore in Debian, as this is
normally included in Python 2.7. I have therefore patched
requirements.txt to remove ordereddict. However, even after this, I
get some bad unit test errors about it. This must be fixed upstream,
because there's no way (modern) downstream distributions can fix it
(as the ordereddict Python package will *not* come back).
Below is the tracebacks for the 4 failed unit tests.
FAIL: glance.tests.unit.test_opts.OptsTestCase.test_list_api_opts
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
File "/��PKGBUILDDIR��/glance/tests/unit/test_opts.py", line 143, in test_list_api_opts
expected_opt_groups, expected_opt_names)
File "/��PKGBUILDDIR��/glance/tests/unit/test_opts.py", line 45, in _test_entry_point
list_fn = ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2188, in load
self.require(env, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2202, in require
items = working_set.resolve(reqs, env, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 639, in resolve
raise DistributionNotFound(req)
DistributionNotFound: ordereddict
======================================================================
FAIL: glance.tests.unit.test_opts.OptsTestCase.test_list_cache_opts
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
File "/��PKGBUILDDIR��/glance/tests/unit/test_opts.py", line 288, in test_list_cache_opts
expected_opt_groups, expected_opt_names)
File "/��PKGBUILDDIR��/glance/tests/unit/test_opts.py", line 45, in _test_entry_point
list_fn = ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2188, in load
self.require(env, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2202, in require
items = working_set.resolve(reqs, env, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 639, in resolve
raise DistributionNotFound(req)
DistributionNotFound: ordereddict
======================================================================
FAIL: glance.tests.unit.test_opts.OptsTestCase.test_list_manage_opts
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
File "/��PKGBUILDDIR��/glance/tests/unit/test_opts.py", line 301, in test_list_manage_opts
expected_opt_groups, expected_opt_names)
File "/��PKGBUILDDIR��/glance/tests/unit/test_opts.py", line 45, in _test_entry_point
list_fn = ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2188, in load
self.require(env, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2202, in require
items = working_set.resolve(reqs, env, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 639, in resolve
raise DistributionNotFound(req)
DistributionNotFound: ordereddict
======================================================================
FAIL: glance.tests.unit.test_opts.OptsTestCase.test_list_registry_opts
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
File "/��PKGBUILDDIR��/glance/tests/unit/test_opts.py", line 192, in test_list_registry_opts
expected_opt_groups, expected_opt_names)
File "/��PKGBUILDDIR��/glance/tests/unit/test_opts.py", line 45, in _test_entry_point
list_fn = ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2188, in load
self.require(env, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2202, in require
items = working_set.resolve(reqs, env, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 639, in resolve
raise DistributionNotFound(req)
DistributionNotFound: ordereddict
======================================================================
FAIL: glance.tests.unit.test_opts.OptsTestCase.test_list_scrubber_opts
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
File "/��PKGBUILDDIR��/glance/tests/unit/test_opts.py", line 241, in test_list_scrubber_opts
expected_opt_groups, expected_opt_names)
File "/��PKGBUILDDIR��/glance/tests/unit/test_opts.py", line 45, in _test_entry_point
list_fn = ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2188, in load
self.require(env, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2202, in require
items = working_set.resolve(reqs, env, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 639, in resolve
raise DistributionNotFound(req)
DistributionNotFound: ordereddict
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1445827/+subscriptions
References