[Bug 1656333] [NEW] [SRU] Fix uuid shim in newer Python versions

Corey Bryant corey.bryant at canonical.com
Fri Jan 13 15:35:29 UTC 2017


Public bug reported:

[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/python2.7/dist-packages/kombu/utils/__init__.py", line 17, in <module>
    from uuid import UUID, uuid4 as _uuid4, _uuid_generate_random
ImportError: cannot import name _uuid_generate_random

See: http://qa.ubuntuwire.org/ftbfs/rebuilds/test-rebuild-20161216
-updates-python2712-trusty.html

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.

** Affects: kombu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to kombu in Ubuntu.
https://bugs.launchpad.net/bugs/1656333

Title:
  [SRU] Fix uuid shim in newer Python versions

Status in kombu package in Ubuntu:
  New

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/python2.7/dist-packages/kombu/utils/__init__.py", line 17, in <module>
      from uuid import UUID, uuid4 as _uuid4, _uuid_generate_random
  ImportError: cannot import name _uuid_generate_random

  See: http://qa.ubuntuwire.org/ftbfs/rebuilds/test-rebuild-20161216
  -updates-python2712-trusty.html

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kombu/+bug/1656333/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list