Previously user was getting a 500 error code for ComputeHostNotFound
if they are using latest microversion that does live migration in
async. This patches changes return response to 400 as 500 internal
server error should not be returned to the user for failures due to
user error that can be fixed by changing to request on client side.
Change-Id: I7a9de211ecfaa7f2816fbf8bcd73ebbdd990643c
closes-bug:1643623
(cherry picked from commit fb68fd12e2fd6e9686ad45c9875508bd9fa0df91)
Reviewed: https:/ /review. openstack. org/590649 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=f5b8a0a09ba a3522f5c6f120d8 4db738cc236ab1
Committed: https:/
Submitter: Zuul
Branch: stable/ocata
commit f5b8a0a09baa352 2f5c6f120d84db7 38cc236ab1
Author: Sivasathurappan Radhakrishnan <email address hidden>
Date: Mon Mar 20 03:13:13 2017 +0000
Return 400 when compute host is not found
Previously user was getting a 500 error code for ComputeHostNotFound
if they are using latest microversion that does live migration in
async. This patches changes return response to 400 as 500 internal
server error should not be returned to the user for failures due to
user error that can be fixed by changing to request on client side.
Change-Id: I7a9de211ecfaa7 f2816fbf8bcd73e bbdd990643c bug:1643623 686ad45c9875508 bd9fa0df91)
closes-
(cherry picked from commit fb68fd12e2fd6e9