create_region_with_id with duplicate id raise 500 Internal Server Error

Bug #1283904 reported by Rui Chen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
Rui Chen

Bug Description

Create region with duplicate id raise 500 Internal Server Error

No handle sql conflicts In catalog sql driver.

{
    "error": {
        "message": "An unexpected error prevented the server from fulfilling your request. None",
        "code": 500,
        "title": "Internal Server Error"
    }
}

No check duplicate id in catalog kvs driver.

New region will override old one in catalog kvs driver.

Tags: region
Rui Chen (kiwik-chenrui)
Changed in keystone:
assignee: nobody → Rui Chen (kiwik-chenrui)
Changed in keystone:
status: New → In Progress
Revision history for this message
Rui Chen (kiwik-chenrui) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/#/c/75816/

Dolph Mathews (dolph)
Changed in keystone:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/75816
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=e8bbe4ccf31a58c39756351d090170e418ec195d
Submitter: Jenkins
Branch: master

commit e8bbe4ccf31a58c39756351d090170e418ec195d
Author: ruichen <email address hidden>
Date: Mon Feb 24 17:39:09 2014 +0800

    Fix create_region_with_id raise 500 Error bug

    1. add sql.handle_conflicts wrapper in sql backend driver.
    2. check duplicate region id in kvs backend driver.
    3. add 2 test cases to check exception.Conflict when create duplicate id region.

    Closes-Bug: #1283904

    Change-Id: Icfc5edf661501a5c134f324a76824812dbda2760

Changed in keystone:
status: In Progress → Fix Committed
Dolph Mathews (dolph)
Changed in keystone:
milestone: none → icehouse-rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/84732

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (milestone-proposed)

Reviewed: https://review.openstack.org/84732
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=856f7df76f2b0232d1e7bc7234db8d2e5593341f
Submitter: Jenkins
Branch: milestone-proposed

commit 856f7df76f2b0232d1e7bc7234db8d2e5593341f
Author: ruichen <email address hidden>
Date: Mon Feb 24 17:39:09 2014 +0800

    Fix create_region_with_id raise 500 Error bug

    1. add sql.handle_conflicts wrapper in sql backend driver.
    2. check duplicate region id in kvs backend driver.
    3. add 2 test cases to check exception.Conflict when create duplicate id region.

    Closes-Bug: #1283904

    Change-Id: Icfc5edf661501a5c134f324a76824812dbda2760

Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: icehouse-rc2 → 2014.1
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.