Duplicate insertion of network objects with the same name is allowed by API server

Bug #1623100 reported by Jim Baker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
craton
Fix Released
High
Sulochan Acharya

Bug Description

This example can be repeatedly run:

curl http://127.0.0.1:8080/v1/networks -H "Content-Type: application/json" -d '{"region_id": 1, "name": "network-1", "project_id": 1, "cidr": "baz", "gateway": "foo", "netmask": "bar"}' -H "Content-Type: application/json" -H "X-Auth-Token: demo" -H "X-Auth-User: demo" -H "X-Auth-Project: 1"

We just need a uniqueness index on name.

Changed in craton:
assignee: nobody → Jovon McCloud (jovon-mccloud)
Changed in craton:
status: New → Triaged
importance: Undecided → High
Changed in craton:
assignee: Jovon McCloud (jovon-mccloud) → nobody
assignee: nobody → Sulochan Acharya (sulochan-acharya)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to craton (master)

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

Changed in craton:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to craton (master)

Reviewed: https://review.openstack.org/385906
Committed: https://git.openstack.org/cgit/openstack/craton/commit/?id=7d9c08dc5f1aa9373b6a11b54d017270b970fc6c
Submitter: Jenkins
Branch: master

commit 7d9c08dc5f1aa9373b6a11b54d017270b970fc6c
Author: Sulochan Acharya <email address hidden>
Date: Thu Oct 13 12:04:32 2016 +0100

    Fixes duplicate entry on network creation

    - Adds a unique constraint to ensure only unique
    names are allowed for networks per project_id per region.

    Closes Bug: 1623100

    Change-Id: Ie2ffd21fe58eb335a68599dfefd4566aeac4c3b2

Changed in craton:
status: In Progress → 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.