But on every KVM hosts, using fence_xvm command success.

 

[root@ohost1 ~]# fence_xvm -o list

1.ovs1                           7fd9b01e-236c-4d08-9c07-ad0b710139e2 off

1.ovs2                           6b0e73b1-649a-470d-9c1b-ca6919e0514d off

2.host1                          476e5157-1211-4701-bf0d-425ebb251817 off

2.host2                          f7523d48-37dd-45ac-8c5d-dc20300f42db off

3.ohost1                         d2b5c362-9c2e-49fd-adef-aebe80716c22 on

3.ohost2                         b192cb11-1be8-41fa-b156-5363513f6478 on

3.ohost3                         b83f1fe4-44ee-45fc-87e5-c79d2ac55fb1 on

4.foreman                        6c5ee3a0-bdc6-4bd6-bd01-78c497c387ce off

4.foreman2                       0715da46-abf5-49df-9057-d7baaaf2f500 off

[root@ohost1 ~]#

[root@ohost1 ~]#

[root@ohost1 ~]#

[root@ohost1 ~]# fence_xvm -a 225.0.0.12 -k /etc/cluster/fence_xvm.key -H 3.ohost1 -o status

Status: ON

[root@ohost1 ~]#

 

 

 

 

 

 

 

 

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

 

 

 

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 ?