yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #54264
[Bug 1538837] Re: Invalid exception raised (ComputeServiceUnavailable) if host is not found
Reviewed: https://review.openstack.org/243105
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=c824982e6a3d6660697e503f7236377cc8202d41
Submitter: Jenkins
Branch: master
commit c824982e6a3d6660697e503f7236377cc8202d41
Author: Javeme <zhangmei.li@xxxxxxxxxxxx>
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
"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.
Closes-Bug: #1538837
Change-Id: I6ad377147070f85b9b1d5a1d1be459e890e02bcc
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1538837
Title:
Invalid exception raised (ComputeServiceUnavailable) if host is not
found
Status in OpenStack Compute (nova):
Fix Released
Bug description:
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1538837/+subscriptions
References