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 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise High Availability Extension 15
SUSE Linux Enterprise High Availability Extension 12

Situation

Node fencing fails due to 'stonith:external/ipmi' not being able to get the hosts list.
/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

Solution to the issue is adding the missing 'hostname' parameter.
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

Node fencing fails due to 'stonith:external/ipmi' not being able to get the hosts list.

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

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center