Create uuidutils module

Bug #1070198 reported by Zhongyue Luo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo-incubator
Fix Released
Low
Zhongyue Luo
Grizzly
Fix Released
Low
Zhongyue Luo

Bug Description

UUIDs are widely used across projects in OpenStack.
However, the usage pattern of the uuid module seems to be diverging as projects evolve.
For example, the hex value of a uuid is called as uuid.hex but as str(uuid.hex) in some projects.
Validating a canonical uuid form in Nova is using the uuid.UUID object but Quantum is using regex.
There should be a uuidutils module which lets all projects share functions handling UUIDs.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

This sounds like a problem educating developers about the way to use the module in the stdlib as much as anything. Is creating a new wrapper module really necessary?

Revision history for this message
Mark McLoughlin (markmc) wrote :

is_uuid_like() seems like a useful utility

Changed in openstack-common:
status: New → Confirmed
importance: Undecided → Low
status: Confirmed → In Progress
assignee: nobody → Zhongyue Luo (zyluo)
Revision history for this message
Mark McLoughlin (markmc) wrote :
Zhongyue Luo (zyluo)
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-common (master)

Reviewed: https://review.openstack.org/14658
Committed: http://github.com/openstack/openstack-common/commit/2824a9bbe493493392adef1e79ee4de6f3a76fe0
Submitter: Jenkins
Branch: master

commit 2824a9bbe493493392adef1e79ee4de6f3a76fe0
Author: Zhongyue Luo <email address hidden>
Date: Tue Oct 23 14:35:19 2012 +0800

    Creates uuidutils module

    Fixes bug #1070198

    Implements UUID processing functions used across projects.

    Change-Id: Ife2c972cea727dc7e453008bcd5871607e883d5c

Changed in openstack-common:
status: In Progress → Fix Committed
Mark McLoughlin (markmc)
affects: openstack-common → oslo
Mark McLoughlin (markmc)
Changed in oslo:
milestone: none → grizzly-1
status: Fix Committed → Fix Released
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.