[openstack-dev] To evacuate it is not mandatory to have compute service down but mandatory to have host down/powered-off/dead
rbryant at redhat.com
Thu Apr 16 13:55:33 UTC 2015
On 04/16/2015 12:45 AM, Ratnaker Katipally wrote:
> In the API.py of /nova/compute/
> We are checking for compute service status in evacuate(..) method.
> msg = (_(/'Instance compute service state on %s '/
> /'expected to be down, but it was up.'/) % inst_host)
> But It is not necessarily required for the compute service to be down
> but we can consider compute service is still up when host is
You are correct. We ran into this issue when working on an automated
evacuation solution for dead hosts .
evacuate should still work here, though. If you're using the default
servicegroup API backend, the service will eventually be seen as down,
but it will take some time (depending on a configured timeout).
It's possible that some external monitoring system already knows that
the host is down. If that system had a way to tell Nova that it knows
the host is gone, this could be sped up. There is a spec for a proposed
API that would allow this .
More information about the OpenStack-dev