collectd throws "unexpected privilege" ipmi plugin error

Solution Verified - Updated -

Environment

  • Red Hat OpenStack Platform 13.0
  • OpenIPMI-libs-2.0.23-2.el7
  • Red Hat Enterprise Linux (RHEL) 7

Issue

We have collectd using OpenIPMI-libs-2.0.23-2.el7 reporting following error:

[root@server]# systemctl status collectd
collectd.service - Collectd statistics daemon
   Loaded: loaded (/usr/lib/systemd/system/collectd.service; disabled; vendor preset: disabled)
   Active: active (running) since Mon 2019-07-15 11:31:37 EDT; 5s ago
     Docs: man:collectd(1)
           man:collectd.conf(5)
Main PID: 18960 (collectd)
    Tasks: 13
   CGroup: /system.slice/collectd.service
           18960 /usr/sbin/collectd
 ...
Jul 15 11:31:37 server collectd[18960]: ipmi plugin: x.y.z.w 0 ipmi_lan.c(got_rmcpp_open_session_rsp): Expected privilege 2, got 4
...

This error prevents successful connections to remote IPMI sessions.

Resolution

Root Cause

OpenIPMI libs had a known bug that prevented connecting with a user less than that user's full privilege level. This bug prevented successful connections to remote IPMI sessions from such things as the ipmi plugin for collectd. This is now fixed with OpenIPMI-2.0.23-2.el7_6.1 and newer.

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.

Comments