GitHub user bhaisaab opened a pull request:

    https://github.com/apache/cloudstack/pull/340

    CLOUDSTACK-8530: KVM hosts without active agents should be in Disconnected 
state

    KVM hosts which are up but their agents are shutdown should be put
    in disconnected state. This would avoid getting the VMs HA'd and other 
commands
    such as deploying a VM will exclude that host and save us from errors.
    
    The improvement is that, we first try to contact the KVM host itself. If it 
fails
    we assume that it's disconnected, and then ask its KVM neighbours if they 
can
    check its status. If all of the KVM neighbours tell us that it's Down and 
we're
    unable to reach the KVM host, then the host is possibly down. In case any 
of the
    KVM neighbours tell us that it's Up but we're unable to reach the KVM host 
then
    we can be sure that the agent is offline but the host is running.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/cloudstack CLOUDSTACK-8530

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/340.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #340
    
----
commit 43a0b6bb064f607196bdf84819e1b472e4a705fb
Author: Rohit Yadav <rohit.ya...@shapeblue.com>
Date:   2015-06-01T12:53:58Z

    CLOUDSTACK-8530: KVM hosts without active agents should be in Disconnected 
state
    
    KVM hosts which are actuall up, but if their agents are shutdown should be 
put
    in disconnected state. This would avoid getting the VMs HA'd and other 
commands
    such as deploying a VM will exclude that host and save us from errors.
    
    The improvement is that, we first try to contact the KVM host itself. If it 
fails
    we assume that it's disconnected, and then ask its KVM neighbours if they 
can
    check its status. If all of the KVM neighbours tell us that it's Down and 
we're
    unable to reach the KVM host, then the host is possibly down. In case any 
of the
    KVM neighbours tell us that it's Up but we're unable to reach the KVM host 
then
    we can be sure that the agent is offline but the host is running.
    
    Signed-off-by: Rohit Yadav <rohit.ya...@shapeblue.com>

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to