On Mon, Jul 10, 2017 at 4:45 PM, Martin Sivak <msivak@redhat.com> wrote:
> In the 'hosted-engine' script itself, in the function cmd_vm_start,
> there is a comment:
>     # TODO: Check first the sanlock status, and if allows:
>
> Perhaps ha-agent checks sanlock status before starting the VM?
> Adding Martin.

QEMU does that by itself. It starts, asks for a lease and dies if it
can't get it.

So:

>>> I see that the qemu-kvm process for the engine starts on two hosts and
>>> then on one of them it gets a "kill -15" and stops
>>> Is it expected behaviour?

This is how it should behave, unless the reason for it is something else.

Martin


Ok. 
My question was: no operating system is loaded at all before getting the lease, so that  don't have any risk of corruption?
It seems so and that only the qemu process is started...
Thanks
Gianluca