fence_kdump_send fails to resolve hostname of destination cluster nodes listed in fence_kdump_nodes
Environment
- Red Hat Enterprise Linux 7
- Pacemaker cluster with
fence_kdumpresource
Issue
- When using
fence_kdumpto capturevmcoreof cluster node before it gets fenced thefence_kdumpfails when hostnames are used infence_kdump_nodesin kdump congifuration file (/etc/kdump.conf). When IP addresses or FQDN are used instead hostnames thenfence_kdumpworks as expected.
Resolution
-
Update to kexec-tools-2.0.15-21.el7 or later. From the version and later the
/etc/hostsand/etc/nsswitchare included inintiramfsin following cases:A. If
fence_kdump_nodesis configured inkdump.confthe/etc/hostsand/etc/nsswitchare included intoinitramfs
B. Iffence_kdump_nodesis not configured inkdump.confbutfence_kdumpstonith resource is configured in pacemaker/etc/hostsand/etc/nsswitchare included intoinitramfs
WORKAROUND for earlier releases:
-
Include
/etc/hostsand/etc/nsswitch.confintoinitramfsgenerated bykdumpby adding following parameter into/etc/kdump.conf:dracut_args --install "/etc/hosts" --install "/etc/nsswitch.conf"This will make hostnames and aliases listed in
/etc/hostsresolvable from crashkernel.
Root Cause
Initramfsby default doesn't contain files/etc/hostsand/etc/nsswitch.confso nodename aliases listed in/etc/hostsare not resolvable from crashkernel by default. This results infence_kdumpfailure in case IP addresses or FQDN via DNS are not listed infence_kdump_nodesparameter.- The bug was tracked on This content is not included.BZ#1543902.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.