2016-02-15 11:51:21 |
Pawel Koniszewski |
description |
raise ComputeServiceNotExist instead of ComputeServiceUnavailable 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 like ComputeServiceNotExist. |
Invalid exception raised (ComputeServiceUnavailable) 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 like ComputeServiceNotExist. |
|