[SRU] Fix uuid shim in newer Python versions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kombu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Description]
Rebuilding cinder and glance with python2.7.12 for trusty is resulting in kombu failures such as:
Traceback (most recent call last):
...
File "/usr/lib/
from uuid import UUID, uuid4 as _uuid4, _uuid_generate_
ImportError: cannot import name _uuid_generate_
See: http://
This backports a patch from upstream kombu to fix the uuid shim in newer Python versions. It is also backward compatible with the current version of Python in trusty.
[Test Case]
Building cinder and glance will run unit tests that will fail with Python2.7.12 without this patch.
[Regression Potential]
Low. The patch is cherry-picked from upstream.
It would have been helpful to include information about which versions of Ubuntu this is fixed in, looking at the source code for the version in Xenial it is fixed there.