ipmitool aborts due to an assertion failure: "ERROR: error executing ipmitool: ipmitool: lanplus.c:2191: ipmi_lanplus_send_payload: Assertion `session->v2_data.session_state == LANPLUS_STATE_OPEN_SESSION_RECEIEVED' failed."

Solution Verified - Updated -

Issue

  • ipmitool aborts due to an assertion failure:
"ERROR: error executing ipmitool: ipmitool: lanplus.c:2191: ipmi_lanplus_send_payload: Assertion `session->v2_data.session_state == LANPLUS_STATE_OPEN_SESSION_RECEIEVED' failed."
  • Example command line:
# /usr/bin/ipmitool -I lanplus -H 10.10.10.10 -U xyz -P xxxxx power status
  • Backtrace:
#0  0x00007f4ae8d635d7 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007f4ae8d64cc8 in __GI_abort () at abort.c:90
#2  0x00007f4ae8d5c546 in __assert_fail_base (fmt=0x7f4ae8eac128 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", 
    assertion=assertion@entry=0x498250 "session->v2_data.session_state == LANPLUS_STATE_OPEN_SESSION_RECEIEVED", 
    file=file@entry=0x4987b1 "lanplus.c", line=line@entry=2191, 
    function=function@entry=0x498bc0 <__PRETTY_FUNCTION__.6500> "ipmi_lanplus_send_payload") at assert.c:92
#3  0x00007f4ae8d5c5f2 in __GI___assert_fail (
    assertion=assertion@entry=0x498250 "session->v2_data.session_state == LANPLUS_STATE_OPEN_SESSION_RECEIEVED", 
    file=file@entry=0x4987b1 "lanplus.c", line=line@entry=2191, 
    function=function@entry=0x498bc0 <__PRETTY_FUNCTION__.6500> "ipmi_lanplus_send_payload") at assert.c:101
#4  0x000000000046330f in ipmi_lanplus_send_payload (intf=intf@entry=0x6c09a0 <ipmi_lanplus_intf>, 
    payload=payload@entry=0x7ffc1279f8b0) at lanplus.c:2190
#5  0x0000000000463dc9 in ipmi_lanplus_rakp1 (intf=intf@entry=0x6c09a0 <ipmi_lanplus_intf>) at lanplus.c:3031
#6  0x0000000000464460 in ipmi_lanplus_open (intf=0x6c09a0 <ipmi_lanplus_intf>) at lanplus.c:3451
#7  0x000000000043c120 in ipmi_main (argc=<optimized out>, argv=<optimized out>, 
    cmdlist=cmdlist@entry=0x6ab560 <ipmitool_cmd_list>, intflist=intflist@entry=0x0) at ipmi_main.c:840
#8  0x0000000000404090 in main (argc=<optimized out>, argv=<optimized out>) at ipmitool.c:132

Environment

  • Red Hat Enterprise Linux 7
  • ipmitool releases prior to ipmitool-1.8.15-7.el7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In