stonith: Could not list hosts for external/ipmi
This document (000020598) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise High Availability Extension 15
SUSE Linux Enterprise High Availability Extension 12
Situation
/var/log/messages show the below errors:
... ... stonith: external_hostlist: 'ipmi gethosts' returned an empty hostlist ... stonith: Could not list hosts for external/ipmi ...
IPMI STONITH external device 'stonith:external/ipmi' configuration:
... primitive <resource name> stonith:external/ipmi \ params ipaddr=<IP Addr> userid=>UserName> passwd=<IPMI root pass> interface=lanplus \ ...
Resolution
Please see below the right configuration of IPMI STONITH:
... primitive <resource name> stonith:external/ipmi \ params hostname=<hostname> ipaddr=<IP Addr> userid=root passwd=<IPMI root pass> interface=lanplus \ ...
Such configuration is confirmed and well explained following the source code as well:
... hostlist = stonith_get_hostlist(s); if (hostlist == NULL) { syslog(LOG_ERR, "Could not list hosts for %s." , SwitchType); }else{ char ** this; for(this=hostlist; *this; ++this) { printf("%s\n", *this); } stonith_free_hostlist(hostlist); } ...
More information on configuring IPMI STONITH could be found at the following link:
https://documentation.suse.com/sle-ha/15-SP1/single-html/SLE-HA-guide/index.html
Cause
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020598
- Creation Date: 01-Mar-2022
- Modified Date:02-Mar-2022
-
- SUSE Linux Enterprise High Availability Extension
- SUSE Linux Enterprise Server for SAP Applications
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com