tricircle/tricircle
Dongfeng Huang 2af0625d62 Catch an exception on resource routing update
1. What is the problem
When resource routing needs to update its attribute
named pod_id, it will fail if the pod where the new pod_id
lays on doesn't exist. This update error was caught
through internal server error originally and it was not
detailed enough.

2. What is the solution for the problem
Dismiss this update request by giving a regular invalid
parameter error and tell the operator that the new pod
for resource routing should exist. The pod to which the
pod_id belongs can only be selected from the existing
pods. Because it is a foreign key and highly depends on
pod table. At the same time, we should add one test case
for this circumstance.

3. What the features need to be implemented to the Tricircle to
realize the solution
None.

Change-Id: Iae6e3368c7f0ff0cd751aca932cba818328bb723
2017-02-24 10:17:51 +08:00
..
api Catch an exception on resource routing update 2017-02-24 10:17:51 +08:00
cmd Merge "DB migration version" 2017-01-12 09:25:30 +00:00
common Merge "Fix get_pod_by_top_id method in common.utils" 2017-02-15 01:48:55 +00:00
db Merge "Add get pod unit test case" 2017-02-15 08:47:05 +00:00
network Merge "Improve bottom allocation pool calculation" 2017-02-10 04:07:30 +00:00
tempestplugin Clean useless tables in Tricircle after splitting 2017-01-05 09:53:45 +08:00
tests Catch an exception on resource routing update 2017-02-24 10:17:51 +08:00
xjob Clean imports in code 2017-02-06 13:12:57 +07:00
__init__.py networking-tricircle core plugin and security group 2015-08-05 14:49:24 +03:00