Enforce unique instance uuid in data model

Registered by Matt Riedemann on 2014-06-02

The instances.uuid column in the data model is not unique but by definition a UUID should be unique, and given how it's used within nova and across other openstack services like glance, neutron, ceilometer, etc, it should be unique. Furthermore, there are Foreign Keys created against instances.uuid so it should be unique (this is a requirement for DB2 support and blueprint db2-database).

The instances.uuid field is enforced to be unique at the nova objects layer today (see nova.objects.instance.Instance.fields), but should also be enforced in the data model.

The related nova-spec provides the detailed information on the blueprint design.

Blueprint information

Status:
Complete
Approver:
John Garbutt
Priority:
Low
Drafter:
Matt Riedemann
Direction:
Needs approval
Assignee:
Matt Riedemann
Definition:
Approved
Series goal:
Accepted for kilo
Implementation:
Implemented
Milestone target:
milestone icon 2015.1.0
Started by
John Garbutt on 2014-06-17
Completed by
Matt Riedemann on 2014-12-05

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:enforce-unique-instance-uuid-in-db,n,z

Addressed by: https://review.openstack.org/97300
    Enforce unique instance uuid in data model

Gerrit topic: https://review.openstack.org/#q,topic:bp/enforce-unique-instance-uuid-in-db,n,z

Addressed by: https://review.openstack.org/97946
    WIP: Enforce unique instance uuid in data model

Not all the reviews have +2s and are not all are close to approval, so moving to juno-3. But please move this back to juno-2, should you get your patches approved in time. --johnthetubaguy 21st July 2014

Gerrit topic: https://review.openstack.org/#q,topic:bp/db2-database,n,z

Sorry, this does not have enough positive reviews to make it for juno-3, please resubmit for kilo. For more information, please contact me (johnthetubaguy) via IRC or email. --johnthetubaguy 2nd September 2014

Addressed by: https://review.openstack.org/128097
    (Re)Propose "Enforce unique instance uuid in data model"

Approved now spec is approved for kilo. --johnthetubaguy 14th October 2014

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.