[SRU] Fix uuid shim in newer Python versions

Bug #1656333 reported by Corey Bryant
8
This bug affects 1 person
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/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.

Revision history for this message
Brian Murray (brian-murray) wrote :

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.

Changed in kombu (Ubuntu):
status: New → Fix Released
Changed in kombu (Ubuntu Trusty):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Corey, or anyone else affected,

Accepted kombu into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/kombu/3.0.7-1ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Matthias Klose (doko) wrote :

I checked that nova, oslo.messaging, glance, cinder build with the proposed python 2.7.12 update packages using this kombu version (I didn't check with the python2.7 currently in trusty).

Revision history for this message
Corey Bryant (corey.bryant) wrote :

I've successfully run regression on trusty-proposed and tagged this bug as verification-done.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kombu - 3.0.7-1ubuntu1.1

---------------
kombu (3.0.7-1ubuntu1.1) trusty; urgency=medium

  * d/p/fix-uuid-shim.patch: Cherry-pick patch from upstream to fix uuid
    shim in newer Python versions (LP: #1656333).

 -- Corey Bryant <email address hidden> Fri, 13 Jan 2017 08:39:16 -0500

Changed in kombu (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote : Update Released

The verification of the Stable Release Update for kombu has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.