Fence_virtd/Fence_xvm results in Bad file descriptor

Issues related to applications and software problems and general support
Post Reply
danner26
Posts: 1
Joined: 2020/09/16 03:56:54

Fence_virtd/Fence_xvm results in Bad file descriptor

Post by danner26 » 2020/09/16 04:02:16

Hello,

I am trying to get fencing working on 2 CentOS 8 machines. Both are running pcs and the machines are authed and setup. I have fencing running on both machines in debug and both have:

Code: Select all

# fence_virtd -Fd99
Background mode disabled
Debugging threshold is now 99
backends {
        libvirt {
                uri = "qemu:///system";
        }

}

listeners {
        multicast {
                key_file = "/etc/cluster/fence_xvm.key";
                interface = "ens192";
                port = "1229";
                address = "225.0.0.12";
                family = "ipv4";
        }

}

fence_virtd {
        debug = "99";
        backend = "libvirt";
        listener = "multicast";
        module_path = "/usr/lib64/fence-virt";
}

Backend plugin: libvirt
Listener plugin: multicast
Searching /usr/lib64/fence-virt for plugins...
Searching for plugins in /usr/lib64/fence-virt
Loading plugin from /usr/lib64/fence-virt/libvirt.so
Registered backend plugin libvirt 0.3
Loading plugin from /usr/lib64/fence-virt/serial.so
Failed to map backend_plugin_version
Registered listener plugin serial 0.4
Loading plugin from /usr/lib64/fence-virt/multicast.so
Failed to map backend_plugin_version
Registered listener plugin multicast 1.2
3 plugins found
Available backends:
    libvirt 0.3
Available listeners:
    serial 0.4
    multicast 1.2
Debugging threshold is now 99
Debugging threshold is now 99
Got /etc/cluster/fence_xvm.key for key_file
Got ipv4 for family
Got 225.0.0.12 for address
Got 1229 for port
Got ens192 for interface
Reading in key file /etc/cluster/fence_xvm.key into 0x2290520 (4096 max size)
Actual key length = 4096 bytes
Setting up ipv4 multicast receive (225.0.0.12:1229)
Joining multicast group
ipv4_recv_sk: success, fd = 7
When I then open another console and run

Code: Select all

fence_xvm -o list
I get:

Code: Select all

Request 6 seqno 309354 domain
Plain TCP request
ipv4_connect: Connecting to client
Failed to call back
Could not send reply to fence request: Bad file descriptor
Any idea why I am getting this bad file descriptor?

Here is the config:

Code: Select all

backends {
        libvirt {
                uri = "qemu:///system";
        }

}

listeners {
        multicast {
                key_file = "/etc/cluster/fence_xvm.key";
                interface = "ens192";
                port = "1229";
                address = "225.0.0.12";
                family = "ipv4";
        }

}

fence_virtd {
        backend = "libvirt";
        listener = "multicast";
        module_path = "/usr/lib64/fence-virt";
}

Post Reply