
Dear Milan, Today, i just found that oVirt 4.2 support iLO5 and power management was set on all hosts (hypervisor). I found that if i choose VM lease and shutdown iSCSI network, the VM was shutdown. Then the VM will migrate to another host if the iSCSI network was resumed. If i just choose enable HA on VM setting, the VM was successfully migrate to another hosts. But i want to ask another question, what if the management network is down? What VM and hosts behavior would you expect? Regards Terry Hung 2018-02-28 22:29 GMT+08:00 Milan Zamazal <mzamazal@redhat.com>:
Terry hey <recreationh@gmail.com> writes:
I am testing iSCSI bonding failover test on oVirt, but i observed that VM were paused and did not migrate to another host. Please see the details as follows.
I have two hypervisors. Since they are running iLO 5 and oVirt 4.2 cannot support iLO 5, thus i cannot setup power management.
For the cluster setting, I set "Migrate Virtual Machines" under the Migration Policy.
For each hypervisor, I bonded two iSCSI interface as bond 1.
I created one Virtual machine and enable high availability on it. Also, I created one Virtual machine and did not enable high availability on it.
When i shutdown one of the iSCSI interface, nothing happened. But when i shutdown both iSCSI interface, VM in that hosts were paused and did not migrate to another hosts. Is this behavior normal or i miss something?
A paused VM can't be migrated, since there are no guarantees about the storage state. As the VMs were paused under erroneous (rather than controlled such as putting the host into maintenance) situation, migration policy can't help here.
But highly available VMs can be restarted on another host automatically. Do you have VM lease enabled for the highly available VM in High Availability settings? With a lease, Engine should be able to restart the VM elsewhere after a while, without it Engine can't do that since there is danger of resuming the VM on the original host, resulting in multiple instances of the same VM running at the same time.
VMs without high availability must be restarted manually (unless storage domain becomes available again).
HTH, Milan