Dear Nir,

the issue with the 'The method does not exist or is not available: {'method': u'GlusterHost.list'}, code = -32601' is not related to the sanlock. I don't know why the 'vdsm-gluster' package was not installed as a dependency.


> Can you share your sanlock log?
>
I'm attaching the contents of /var/log , but here is a short snippet:

About the sanlock issue - it reappeared with errors like :
2019-01-31 13:33:10 27551 [17279]: leader1 delta_acquire_begin error -223 lockspace hosted-engine host_id 1
2019-01-31 13:33:10 27551 [17279]: leader2 path /var/run/vdsm/storage/808423f9-8a5c-40cd-bc9f-2568c85b8c74/2c74697a-8bd9-4472-8a98-bf624f3462d5/411b6cee-5b01-47ca-8c28-bb1fed8ac83b offset 0
2019-01-31 13:33:10 27551 [17279]: leader3 m 0 v 30003 ss 512 nh 0 mh 1 oi 0 og 0 lv 0
2019-01-31 13:33:10 27551 [17279]: leader4 sn hosted-engine rn  ts 0 cs 60346c59
2019-01-31 13:33:11 27551 [21482]: s6 add_lockspace fail result -223
2019-01-31 13:33:16 27556 [21482]: s7 lockspace hosted-engine:1:/var/run/vdsm/storage/808423f9-8a5c-40cd-bc9f-2568c85b8c74/2c74697a-8bd9-4472-8a98-bf624f3462d5/411b6cee-5b01-47ca-8c28-bb1fe
d8ac83b:0


I have managed to fix it by running the following immediately after the ha services were started by ansible:

cd /rhev/data-center/mnt/glusterSD/ovirt1.localdomain\:_engine/808423f9-8a5c-40cd-bc9f-2568c85b8c74/ha_agent/
sanlock direct init -s hosted-engine:0:hosted-engine.lockspace:0
systemctl stop ovirt-ha-agent ovirt-ha-broker
systemctl status vdsmd
systemctl start ovirt-ha-broker ovirt-ha-agent

Once the VM started - ansible managed to finish the deployment without any issues.
I hope someone can check the sanlock init stuff , as it is really frustrating.


Best Regards,
Strahil Nikolov