Missing Unique Constraint on Pool Attributes table

Bug #1391212 reported by Betsy Luzader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
High
Betsy Luzader

Bug Description

There should be a unique constraint on the Pool Attributes table to prevent duplicates. The unique constraint should be:

UniqueConstraint('pool_id', 'key', 'value', name='unique_pool_attribute'),

because you can have multiple entries with the same pool_id and key.

Changed in designate:
assignee: nobody → Betsy Luzader (betsy-luzader)
Changed in designate:
importance: Undecided → High
status: New → In Progress
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (master)

Fix proposed to branch: master
Review: https://review.openstack.org/133837

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (master)

Reviewed: https://review.openstack.org/133837
Committed: https://git.openstack.org/cgit/openstack/designate/commit/?id=46d3b4e8dff8092d79d5aa02ca92bad052d51691
Submitter: Jenkins
Branch: master

commit 46d3b4e8dff8092d79d5aa02ca92bad052d51691
Author: Betsy Luzader <email address hidden>
Date: Tue Nov 11 16:28:03 2014 -0600

      Missing Unique Constraint on Pool Attributes table

      This adds a UniqueConstraint on the pool_attributes
      table for the pool_id, key and value

      Closes-Bug:#1391212

    Change-Id: I33c3678343a406a73a3ebd1cc0394eea801dc258

Changed in designate:
status: In Progress → Fix Committed
Changed in designate:
milestone: none → kilo-1
Thierry Carrez (ttx)
Changed in designate:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in designate:
milestone: kilo-1 → 2015.1.0
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.