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.
Reviewed: https:/ /review. openstack. org/447355 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=fb68fd12e2f d6e9686ad45c987 5508bd9fa0df91
Committed: https:/
Submitter: Zuul
Branch: master
commit fb68fd12e2fd6e9 686ad45c9875508 bd9fa0df91
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
closes-