[
https://issues.apache.org/jira/browse/CLOUDSTACK-8530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14567271#comment-14567271
]
ASF GitHub Bot commented on CLOUDSTACK-8530:
--------------------------------------------
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 <[email protected]>
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 <[email protected]>
----
> KVM hosts without active agent connection are still "Up"
> --------------------------------------------------------
>
> Key: CLOUDSTACK-8530
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8530
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: KVM
> Reporter: Rohit Yadav
> Assignee: Rohit Yadav
> Fix For: 4.6.0, 4.5.2
>
>
> KVM hosts without active agent connection are still "Up". In case a KVM host
> get uncleanly disconnected from the mgmt server, for example due to a
> firewall rule or physical nic unplugging the neighbour KVM hosts might
> investigate and report that the KVM host is in Up state but since mgmt server
> is not connected to the agent (on that host), all further commands such as VM
> migrations, VM deployments etc fail.
> The best fix would be to have the investigator check the KVM host itself and
> if it's unable to contact return the state as disconnected, this way no HA
> for VMs will be triggered.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)