Startup failed to load ipmi_devintf module

Bug #473332 reported by Kipp Glover
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
openipmi (Ubuntu)
Fix Released
Low
Serge Hallyn

Bug Description

Binary package hint: openipmi

Ubuntu Version:
===========
kipp@dhcp57-92:~$ lsb_release -rd
Description: Ubuntu 9.04
Release: 9.04

openipmi package version:
===================
kipp@dhcp57-92:~$ sudo apt-cache policy openipmi
openipmi:
  Installed: 2.0.14-2ubuntu1
  Candidate: 2.0.14-2ubuntu1
  Version table:
 *** 2.0.14-2ubuntu1 0
        500 http://us.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

What I expected to happen:
====================
I expected that when openipmi starts, it will load the ipmi_devinft module

What happened instead:
==================
I had to manually load the ipmi_devintf module

$sudo modprobe ipmi_devintf

Workaround:
=========
It seems that in the /etc/init.d/openipmi script will selectively load the ipmi_devintf module based on the value of the $DEV_IPMI. Upstream defines this value in /etc/sysconfig/ipmi. Ubuntu does not include this file.

It would probably make sense to define/set this variable in /etc/default/openipmi, and source that in
the initscript.

In the meantime, customers could probably just put DEV_IPMI="yes" at
the top of /etc/init.d/openipmi This will at least persist across reboots.

Thanks!
/Kipp

Related branches

Revision history for this message
Chuck Short (zulcss) wrote :

Ill take a look at this for lucid.

Thanks
chuck

Changed in openipmi (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Jamie Jamison (jamie-jamison) wrote :

This is still a problem on lucid. The ipmi_devintf and ipmi_si kernel modules don't load automatically and /dev/ipmi0 isn't created, so ipmitool won't work.

Revision history for this message
Jamie Jamison (jamie-jamison) wrote :

I downloaded a CentOS RPM for openipmi and extracted the file

  /etc/sysconfig/ipmi

I copied this file to

  /etc/default/openipmi

as Kipp suggested and made the following edits to

  /etc/init.d/openipmi

Line 35: Changed

  CONFIGFILE=/etc/sysconfig/ipmi

to

  CONFIGFILE=/etc/default/openipmi

to source correct configuration file.

Line 68: Changed

  LOCKFILE=/var/lock/subsys/ipmi

to

  LOCKFILE=/var/lock/ipmi

for the location of the ipmi lockfile.

I tested this by rebooting the system and it works, the ipmi_devintf and ipmi_si kernel modules load, /dev/ipmi0 is created and the lockfile is created at /var/lock/ipmi. Attached is a copy of the ipmi config file I installed at /etc/default/openipmi

to

Changed in openipmi (Ubuntu):
assignee: nobody → Serge Hallyn (serge-hallyn)
status: Confirmed → In Progress
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

@Jamie,

Thanks for all those details. I believe I've embodied them in a small proposed change at the linked bzr tree. The resulting package is building in ppa:serge-hallyn/ipmi. Could you test that one and tell me whether it fixes all of your problems?

Revision history for this message
Jamie Jamison (jamie-jamison) wrote :

Serge, I ended up going over to the freeipmi package. I don't know when I'd have time to test this.

Revision history for this message
Raubvogel (raubvogel) wrote :

Serge, if nobody has tried it I can try it out.

Jamie, risking going off-topic, how do you compare freeipmi with openipmi?

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 473332] Re: Startup failed to load ipmi_devintf module

Quoting Raubvogel (<email address hidden>):
> Serge, if nobody has tried it I can try it out.

Awesome, thanks much.

Revision history for this message
Jamie Jamison (jamie-jamison) wrote :

I might be able to try this in the next few days. I have a system I'm re-imaging and I'll see if I can find time to test this. Without going too far off topic I think that both openipmi and freeipmi are good solutions for communicating with your BMC and the hardware watchdog and both worked for me. I chose to deploy freeipmi over openipmi because it doesn't require you to load any device drivers and because I felt that the documentation was clearer.

Revision history for this message
Raubvogel (raubvogel) wrote :

Lockfile part of this bug was addressed in https://bugs.launchpad.net/ubuntu/+source/openipmi/+bug/722770

Serge, is there a way for me to try that in 10.10 or 10.04LTS? I do not have natty and need it in 10.04LTS.

Revision history for this message
Raubvogel (raubvogel) wrote :

Serge,

NVM, I tested in 10.10 and they work. /etc/default/openipmi is created and /etc/init.d/openipmi correctly points to /etc/default/openipmi and /var/lock/ipmi.

So, looks like a winner to me.

Thanks!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openipmi - 2.0.18-0ubuntu3

---------------
openipmi (2.0.18-0ubuntu3) natty; urgency=low

  * Fix up packaging to install and use /etc/default/openipmi.
    (LP: #473332) Thanks to Serge Hallyn.
 -- Chuck Short <email address hidden> Fri, 04 Mar 2011 10:38:42 -0500

Changed in openipmi (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.