Comment 17 for bug 1452835

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/19420
Committed: http://github.org/Juniper/contrail-controller/commit/ea2951a950b020f391001897fc66eedc790288c4
Submitter: Zuul
Branch: R2.20

commit ea2951a950b020f391001897fc66eedc790288c4
Author: Hampapur Ajay <email address hidden>
Date: Mon Jun 22 11:24:17 2015 -0700

config-exception: Handle dbe_read raising NoIdError

dbe_read will raise this if object not available and caller
will determine if this can be gracefully handled.
Handled with 404 in GET/PUT/DEL for object in URL.
Handled with 500 if a parent/referred object is missing.

Database errors remapped to DatabaseUnavailable exception.

Partial-Bug: #1452835

Conflicts:
 src/config/api-server/tests/test_ip_alloc.py
 src/config/api-server/vnc_addr_mgmt.py
 src/config/api-server/vnc_cfg_api_server.py
 src/config/api-server/vnc_cfg_ifmap.py
 src/config/api-server/vnc_cfg_types.py
 src/config/common/tests/test_common.py

Change-Id: I991e311c20d7020bc84cd571f6484349cdabcfaa
(cherry picked from commit c8744187390fec8118c80561cd2eed9ec9ee562b)