Hi Victor, I too had a similar failover requirement. I also got on the path of making an HA-enabled KVM host in CS 4.9 after doing the same steps you performed but in CS 4.9 where the agent got in "Alert" state but not in "Down" state. However, if your requirement is simply that in case a host executing an HA-enabled VM goes down in CS 4.11, it should be restarted on another host, you don't need to make the KVM host HA.
How I replicated failover scenario in Cloudstack 4.11: - Start an HA-enabled VM on a host. - Unplug the host - Make sure at least one suitable host with enough resources is available. - My CS 4.11 after the durations of ping-duration*ping-timeout (60*2.5 ~ 3.5 minutes) decides that the host is down and restarts the VM on another host. (NOTE: this assumes that your NFS or storage server is on another machine and you are not using local storage for the HA-enabled VM) Your management server logs should show that host id: xxx has disconnected with event ping timeout and after several of those messages, it should decide that host is down. If this is not the case, look for insufficient server capacity and cannot create deployment messages in server logs. If all of above don't match your scenario, a look at management server logs would help. On Thu, 8 Mar 2018 at 14:05 victor <vic...@ihnetworks.com> wrote: > Hello Andrija, > > Yes I am doing the same test as you mentioned ie unplug NIC in one of > the host and observer the action of VM's in that host. But in my test > the VM's didn't get started in another host. > > Regards > Victor > > > On 03/07/2018 11:52 PM, Andrija Panic wrote: > > Hi Victor, > > > > zero experience here with 4.11 in general, but what are you expecting to > > happen ? > > > > you powered off a host, so nothing for IPMI driver to do - host is down > > already, no host HA actions are expected afaik. > > > > I guess you might have have wanted to i.e. unplug NIC (cause network > issues > > on MGMT network), or... kill agent service and then observe the actions. > > > > Were VMs started on another host, in your test? > > > > Cheers > > > > On 7 March 2018 at 18:01, victor <vic...@ihnetworks.com> wrote: > > > >> Hello Guys, > >> > >> I have installed cloudstack 4.11. I have enabled HA for each hosts I > have > >> added. I have also added ipmi successfully (using ipmi driver). The > hosts > >> are showing like the following. > >> > >> ======= > >> > >> HA Enabled Yes > >> HA State Available > >> HA Provider kvmhaprovider > >> > >> ====== > >> > >> Also the host is showing the following correctly > >> > >> Resource state --> Enabled > >> State --> UP > >> Power state --> On > >> > >> So I have shutdown one of the hosts to see how the KVM hosts Ha is > >> working. I have waited for half an hour. But nothing has happened. What > >> will happen to the VM's in that host, if the host failed to back up. > There > >> isn't much from logs. > >> > >> Regards > >> Victor > >> > > > > > >