Reviewed: https://review.openstack.org/57847 Committed: http://github.com/openstack/cinder/commit/58db021240cafb33f602aba50fdaa9060c15d84a Submitter: Jenkins Branch: master
commit 58db021240cafb33f602aba50fdaa9060c15d84a Author: huangtianhua <email address hidden> Date: Fri Nov 22 15:22:07 2013 +0800
Migrate volume should check para "host" in request
The server doesn't check whether the parameter "host" is in request body. So the 500 error has been thrown.
We should catch the KeyError and transfer the KeyError to 400 (HTTPBadRequest) instead of 500.
Closes-Bug: #1253904 Change-Id: I3fb07113816a87f284b47e32bacd57f78a32676c
Reviewed: https:/ /review. openstack. org/57847 github. com/openstack/ cinder/ commit/ 58db021240cafb3 3f602aba50fdaa9 060c15d84a
Committed: http://
Submitter: Jenkins
Branch: master
commit 58db021240cafb3 3f602aba50fdaa9 060c15d84a
Author: huangtianhua <email address hidden>
Date: Fri Nov 22 15:22:07 2013 +0800
Migrate volume should check para "host" in request
The server doesn't check whether the parameter "host" is in request
body. So the 500 error has been thrown.
We should catch the KeyError and transfer the KeyError to
400 (HTTPBadRequest) instead of 500.
Closes-Bug: #1253904 f284b47e32bacd5 7f78a32676c
Change-Id: I3fb07113816a87