It raises JSON-RPC error.

 

The engine log is :

 

2021-01-18 14:05:33,181+08 WARN  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-5) [a19cd4a1-58d4-407b-ae6d-9ee11d6d5eb2] EVENT_ID: VDS_ALERT_FENCE_TEST_FAILED(9,001), Power Management test failed for Host ohost1.tltd.com.Internal JSON-RPC error

2021-01-18 14:05:33,181+08 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.FenceVdsVDSCommand] (default task-5) [a19cd4a1-58d4-407b-ae6d-9ee11d6d5eb2] FINISH, FenceVdsVDSCommand, return: FenceOperationResult:{status='ERROR', powerStatus='UNKNOWN', message='Internal JSON-RPC error'}, log id: 5b821a80

2021-01-18 14:05:33,191+08 WARN  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-5) [a19cd4a1-58d4-407b-ae6d-9ee11d6d5eb2] EVENT_ID: FENCE_OPERATION_USING_AGENT_AND_PROXY_FAILED(9,021), Execution of power management status on Host ohost1.tltd.com using Proxy Host ohost3.tltd.com and Fence Agent xvm:192.168.10.12 failed.

2021-01-18 14:05:33,191+08 WARN  [org.ovirt.engine.core.bll.pm.FenceAgentExecutor] (default task-5) [a19cd4a1-58d4-407b-ae6d-9ee11d6d5eb2] Fence action failed using proxy host 'ohost3.tltd.com', trying another proxy

2021-01-18 14:05:33,238+08 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-5) [a19cd4a1-58d4-407b-ae6d-9ee11d6d5eb2] EVENT_ID: FENCE_OPERATION_USING_AGENT_AND_PROXY_STARTED(9,020), Executing power management status on Host ohost1.tltd.com using Proxy Host ohost2.tltd.com and Fence Agent xvm:192.168.10.12.

2021-01-18 14:05:33,240+08 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.FenceVdsVDSCommand] (default task-5) [a19cd4a1-58d4-407b-ae6d-9ee11d6d5eb2] START, FenceVdsVDSCommand(HostName = ohost2.tltd.com, FenceVdsVDSCommandParameters:{hostId='e2333e4e-cc5b-47c0-a007-541ae5aac2df', targetVdsId='0dc3ca3e-1643-4c92-aa1f-4860f3a3c3fe', action='STATUS', agent='FenceAgent:{id='null', hostId='null', order='1', type='xvm', ip='192.168.10.12', port='1229', user='root', password='***', encryptOptions='false', options='ipport=1229'}', policy='null'}), log id: 69fdd7b2

 

 

 

 

 

 

From: users-bounces@ovirt.org <users-bounces@ovirt.org> On Behalf Of tommy
Sent: Monday, January 18, 2021 12:24 PM
To: 'users' <users@ovirt.org>
Subject: [ovirt-users] How to configure Power Management Fence Protocol for Libvirtd VM ?

 

Hi, everyone:

 

My test env is running on Ubuntu Libvirtd server, I configure the QEMU VM as Physical Host, the hosts list is:

 

root@ubts1:~# virsh

Welcome to virsh, the virtualization interactive terminal.

 

Type:  'help' for help with commands

       'quit' to quit

virsh # list

Id   Name        State

---------------------------

24   3.ooengh1   running

25   3.ooengh2   running

 

 

root@ubts2:~# virsh

Welcome to virsh, the virtualization interactive terminal.

 

Type:  'help' for help with commands

       'quit' to quit

virsh # list

Id   Name       State

--------------------------

26   3.ohost1   running

27   3.ohost2   running

28   3.ohost3   running

 

The ooengh1 and ooengh2 are configured for hosted-engine, and ohst1 ohost2 ohost3 are configured for KVM server.

 

Now, I want to test the Power Management service using my test env, how can I choose the fence protocol ?