Repository navigation
Conversation
…ected 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.yadav@shapeblue.com>
|
cloudstack-pull-requests #283 SUCCESS |
|
pinging KVM and HA gurus to help review this @kishankavala @wilderrodrigues @remibergsma @mlsorensen @abhinandanprateek @devdeep and others |
|
Looks fine to me. On Mon, Jun 1, 2015 at 12:13 PM, Rohit Yadav notifications@github.com
|
|
After running this on my KVM host: [root@kvm1 ~]# systemctl stop cloudstack-agent The management server said: Then I started it agains: [root@kvm1 ~]# systemctl start cloudstack-agent Jun 02 07:20:10 kvm1 systemd[1]: Starting SYSV: Cloud Agent... And on the UI: Thanks, Rohit! I will merge. |
|
@wilderrodrigues thanks, but the test you did is perhaps not enough as it cleanly shutsdown the agent. In my test, I did these things:
|
…ected 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.yadav@shapeblue.com> This closes #340
|
Nice write up, @bhaisaab I can still take some time, later this week, and go through the steps you have tested. Just quite busy right now. Let's try to have template for PRs, so the "test steps" are also added. Cheers, |
Fixes #335 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Co-authored-by: Marcus Sorensen <mls@apple.com>


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.