raise exception ComputeHostNotFound if host is not found
When performing a live migration,I passed a wrong host parameter,
and then I got a wrong result like this:
"Compute service of host-1 is unavailable at this time".
I thought the compute service stopped, but the fact was I passed
a host id instead of a host name,therefore it could not find the host.
In order to distinguish the error "host not found" from the error
"service not available", I think we should raise a different exception
ComputeHostNotFound instead of ComputeServiceUnavailable.
This patch we will return more accurate error msg for live migration.
Reviewed: https:/ /review. openstack. org/243105 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=c824982e6a3 d6660697e503f72 36377cc8202d41
Committed: https:/
Submitter: Jenkins
Branch: master
commit c824982e6a3d666 0697e503f723637 7cc8202d41
Author: Javeme <email address hidden>
Date: Mon Nov 9 20:37:34 2015 +0800
raise exception ComputeHostNotFound if host is not found
When performing a live migration,I passed a wrong host parameter,
and then I got a wrong result like this:
"Compute service of host-1 is unavailable at this time".
I thought the compute service stopped, but the fact was I passed
a host id instead of a host name,therefore it could not find the host.
In order to distinguish the error "host not found" from the error NotFound instead of ComputeServiceU navailable.
"service not available", I think we should raise a different exception
ComputeHost
This patch we will return more accurate error msg for live migration.
Closes-Bug: #1538837 5b9b1d5a1d1be45 9e890e02bcc
Change-Id: I6ad377147070f8