Comment 0 for bug 1943985

Revision history for this message
Abhishek Kekane (abhishek-kekane) wrote :

Glance fails to build with oslo.log 4.4.0 for Debian platform so we need to bump the oslo.log version in requirements.txt

Failures during discovery
=========================
--- import errors ---
Failed to import test module: glance.tests.unit.api.middleware.test_cache_manage
Traceback (most recent call last):
  File "/usr/lib/python3.9/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.9/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/<<PKGBUILDDIR>>/glance/tests/unit/api/middleware/test_cache_manage.py", line 13, in <module>
    from glance.api.middleware import cache_manage
  File "/<<PKGBUILDDIR>>/glance/api/middleware/cache_manage.py", line 23, in <module>
    from glance.api.v2 import cached_images
  File "/<<PKGBUILDDIR>>/glance/api/v2/cached_images.py", line 23, in <module>
    from glance.api import policy
  File "/<<PKGBUILDDIR>>/glance/api/policy.py", line 30, in <module>
    from glance import policies
  File "/<<PKGBUILDDIR>>/glance/policies/__init__.py", line 17, in <module>
    from glance.policies import metadef
  File "/<<PKGBUILDDIR>>/glance/policies/metadef.py", line 39, in <module>
    deprecated_since=versionutils.deprecated.XENA
AttributeError: type object 'deprecated' has no attribute 'XENA'

versionutils module of oslo.log included Xena release from version 4.5.0