zaqar-wsgi raise 500 error when create a pool

Bug #1540246 reported by wangxiyuan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
zaqar
Fix Released
High
wangxiyuan

Bug Description

reproduce:
1. create a pool with url : "uri": "mongodb://localhost:27017",
2.create an other pool with the same url.

Zaqar-wsgi will return 500 error.

The reason is that Zaqar-wsgi doesn't catch DuplicateKeyError for pymongo.

wangxiyuan (wangxiyuan)
Changed in zaqar:
assignee: nobody → wangxiyuan (wangxiyuan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zaqar (master)

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

Changed in zaqar:
status: New → In Progress
Changed in zaqar:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zaqar (master)

Reviewed: https://review.openstack.org/274537
Committed: https://git.openstack.org/cgit/openstack/zaqar/commit/?id=ad47f1bcfc4e10ef2261432f58a247244fdad980
Submitter: Jenkins
Branch: master

commit ad47f1bcfc4e10ef2261432f58a247244fdad980
Author: wangxiyuan <email address hidden>
Date: Mon Feb 1 15:45:33 2016 +0800

    Fix 500 error when create pools in wsgi v2.

    When create a pool with a url which is already exist in db,
    pymongo will raise a DuplicateKeyError error. Zaqar-wsgi
    don't catch it.

    APIImpact

    Change-Id: I487a372533c5e8de9edd5796e0039320d2d55b6a
    Closes-bug: #1540246

Changed in zaqar:
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.