[ovirt-users] Regarding fencing support in ovirt

Yaniv Kaul ykaul at redhat.com
Wed Dec 14 10:56:36 UTC 2016


On Wed, Dec 14, 2016 at 10:35 AM, Nir Soffer <nsoffer at redhat.com> wrote:

> On Wed, Dec 14, 2016 at 9:02 AM, TranceWorldLogic .
> <tranceworldlogic at gmail.com> wrote:
> > Hi,
> >
> > I was trying to explore more about fencing option supported in ovirt.
> > But getting lost in documents.
> >
> > My requirement is to fence at VM level rather than host level.
> > e.g let assume VM1.1, VM1.2,VM1.3 are running on host1 and VM2.1,VM2.2
> VM2.3
> > running on host2. Suppose due to some error only VM1.1 goes down [Note:
> > VM1.2 and VM1.3 in running state] then VM2.1 must come up.
> >
> > Can I get to know whether such functionality is supported by ovirt ?
> > If yes, would you please explain also how it work
> >           or would you share refernece for me to refer and understand it
> ?
> > if yes, is it configurable by python sdk ?
>
> Fencing in the VM level is not available yet, but will be possible
>

If the intention is to fence a VM because an external HA cluster controls
it, this is possible using fence_rhevm[1], which is part of the
fence-agents package.
Note that it currently has a bug[2] which means it's currently not working
with 4.0 (but it's an easy fix).
Y.

[1]
https://github.com/ClusterLabs/fence-agents/blob/master/fence/agents/rhevm/fence_rhevm.py
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1402860


> once we have vm-leases:
> https://www.ovirt.org/develop/release-management/features/
> storage/vm-leases/
>
> On top of this, we will support automatic failover of vms:
> https://github.com/oVirt/ovirt-site/pull/586/commits/
> 77669161397ebf4cc15c66e0e6876bc033384cfc
>
> This should be available in 4.1, currently blocked by libvirt bug:
> https://bugzilla.redhat.com/1403691
>
> Once a vm has a lease, you can revoke the lease from another host, causing
> sanlock on the original host to terminate the vm using sanlock_request()
> api.
>
> When this will be implemented, we can expose this via the REST API and the
> SDK.
>
> Nir
>
> >
> > Thanks,
> > ~Rohit
> >
> > _______________________________________________
> > Users mailing list
> > Users at ovirt.org
> > http://lists.phx.ovirt.org/mailman/listinfo/users
> >
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.phx.ovirt.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20161214/c35ac3c6/attachment-0001.html>


More information about the Users mailing list