Debian Bug report logs - #614394
Suggestion: init.d script and config file for openipmi

version graph

Package: openipmi; Maintainer for openipmi is Noël Köthe <noel@debian.org>; Source for openipmi is src:openipmi (PTS, buildd, popcon).

Reported by: Mauricio Tavares <raubvogel@gmail.com>

Date: Mon, 21 Feb 2011 17:39:02 UTC

Severity: normal

Found in version 2.0.16

Fixed in version openipmi/2.0.21-1

Done: Noël Köthe <noel@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Noèl Köthe <noel@debian.org>:
Bug#614394; Package openipmi. (Mon, 21 Feb 2011 17:39:05 GMT) (full text, mbox, link).


Acknowledgement sent to Mauricio Tavares <raubvogel@gmail.com>:
New Bug report received and forwarded. Copy sent to Noèl Köthe <noel@debian.org>. (Mon, 21 Feb 2011 17:39:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Mauricio Tavares <raubvogel@gmail.com>
To: submit@bugs.debian.org
Subject: Suggestion: init.d script and config file for openipmi
Date: Mon, 21 Feb 2011 12:37:38 -0500
Package: openipmi
Version: 2.0.16

I think it would be a nice touch to add a init.d script to start/stop
openipmi (and load the required and desired kernel modules) in the
debian package. Since the ubuntu version has it, probably it would not
take much effort to add it to the package.

If using th eubuntu script, it has to be modified  to look for the
config file in /etc/default, not in /etc/sysconfig as the ubuntu one
currently does (as mentioned in
https://bugs.launchpad.net/ubuntu/+source/openipmi/+bug/473332). Of
course, we would also need a default /etc/default/openipmi config
file; a sample config file can be found at
http://linux.dell.com/files/openipmi/initscript.tgz or
http://launchpadlibrarian.net/62077268/%3Atmp%3Aopenipmi.sysconf.




Information forwarded to debian-bugs-dist@lists.debian.org, Noèl Köthe <noel@debian.org>:
Bug#614394; Package openipmi. (Mon, 16 Feb 2015 21:48:04 GMT) (full text, mbox, link).


Acknowledgement sent to Azeem Esmail <azeeme234@gmail.com>:
Extra info received and forwarded to list. Copy sent to Noèl Köthe <noel@debian.org>. (Mon, 16 Feb 2015 21:48:04 GMT) (full text, mbox, link).


Message #10 received at 614394@bugs.debian.org (full text, mbox, reply):

From: Azeem Esmail <azeeme234@gmail.com>
To: 614394@bugs.debian.org
Subject: RE: init.d script and config file for openipmi
Date: Mon, 16 Feb 2015 13:45:25 -0800
Is the reason why I cannot get Hardware Watchdog setup properly related 
to this bug?

openipmi (2.0.16-1.4)
ipmitool (1.8.14-4)
watchdog (5.14-3)

***

The server keeps rebooting after 5 minutes. What am I doing wrong, and 
what do I need to do to get hardware watchdog working in Debian Jessie. 
Please help.


Motherboard: Supermicro X9DRH-7TF


***

List of IPMI BMC Info:

# dmidecode --type 38

# dmidecode 2.12
# SMBIOS entry point at 0x000f04c0
SMBIOS 2.7 present.

Handle 0x003f, DMI type 38, 18 bytes
IPMI Device Information
    Interface Type: KCS (Keyboard Control Style)
    Specification Version: 2.0
    I2C Slave Address: 0x00
    NV Storage Device: Not Present
    Base Address: 0x0000000000000CA2 (I/O)
    Register Spacing: Successive Byte Boundaries


***

Install procedure:

# apt-get install openipmi
# apt-get install ipmitool

While installing ipmitools there was an error message "Job for 
ipmievd.service failed...." because /dev/ipmi0 was not created yet. I 
rebooted and reinstalled ipmitool.


# apt-get install --reinstall ipmitool


# lsmod | grep ipmi

ipmi_wathdog
ipmi_si
ipmi_poweroff
ipmi_devintf
ipmi_msghandler


# dmesg | grep ipmi

ipmi message handler version 39.2
ipmi device interface
ipmi_si: probing via ACPI
ipmi_si: 00:07: [io 0x0ca2] regsize 1 spacing 1 irq 0
ipmi_si: Adding ACPI-specified kcs state machine
ipmi_si: probing via SMBIOS
ipmi_si: SMBIOS: io 0xca2 regsize 1 spacing 1 irq 0
ipmi_si: Adding SMBIOS-specified kcs state machine duplicate interface
ipmi_si: probing via SPMI
ipmi_si: SPMI: io 0xca2 regsize 1 spacing 1 irq 0
ipmi_si: Adding SPMI-specified kcs state machine duplicate interface

ipmi_si: Trying ACPI-specified kcs state machine at i/o address 0xca2, 
slave address 0x0, irq0 ipmi_si: 00:07: Found new BMC (man_id: 0x002a7c, 
prod_id: 0x0664, dev_id: 0x20)

ipmi_si: 00:07: IPMI kcs interface initialized

Is there a conflict with there being duplicate interfaces, and should 
one be used in place of the other and if so how?


***

The boot time startup screen listed

watchdog: iTCO_wdt: cannot register miscdev on minor=130 (err=-16).
watchdog: iTCO_wdt: a legacy watchdog module is probably present.


To solve this issue I blacklisted the following modules so they would 
not load into the kernel.


iTCO-wdt
iTCO_vendor_support

Also setting the following option in '/etc/default/grub' before running 
'update-grub'


GRUB_CMDLINE_LINUX_DEFAULT="quiet nmi_watchdog=0"


While I was trouble shooting, I also blacklisted

mei
mei_me

And I used 'lsmod' to verified that none of the blacklisted modules were 
loaded into the kernel.



***

Then I install the watchdog service:

# apt-get install watchdog


I edited the watchdog daemon config file:

# nano /etc/watchdog.conf

watchdog-device=/dev/watchdog
watchdog-timeout=240
interval=20
logtick=30
realtime=yes
priority=1
admin=root
file=/var/log/messages
log-dir=/var/log/watchdog


# ipmitool mc watchdog get

Watchdog Time Use: SMS/OS (0x44)
Watchdog Time is: Started/Running
Watchdog Timer Action: Hard Reset (0x01)
Pre-timeout interval: 0 seconds
Timer Expiration Flags: 0x00
Initial Countdown: 240 sec
Present Countdown: 233 sec


# cat /var/log/syslog | grep watchdog

... watchdog[1087] :  starting daemon (5.14):
... watchdog[1087] :  int=20s realtime=yes sync=no soft=no mla=0 mem=0
... watchdog[1087] :  ping: no machine to check
... watchdog[1087] :  file: /var/log/messages:0
... watchdog[1087] :  pidfile: no server process to check
... watchdog[1087] :  interface: no interface to check
... watchdog[1087] :  temperature: no sensors to check

... watchdog[1087] : test=none(0) repair=none(0) alive=/dev/watchdog 
heartbeat=none to=root no_act=no force=no

... watchdog[1087] :  watchdog now set to 240 seconds
... watchdog[1087] :  hardware watchdog identity: IPMI


# nano /etc/default/watchdog

# Start watchdog at boot time? 0 or 1
run_watchdog=1
# Start wd_keepalive after stopping watchdog? 0 or 1
run_wd_keepalive=1
# Load module before starting watchdog
watchdog_module="none"


# nano /etc/default/ipmievd

# This is a shell script fraction
#
# To enable ipmievd set ENABLED="true" for sysvinit (ignored by systemd)
ENABLED="false"
#
#
# Options to the daemon ipmievd(8).
#
IPMIEVD_OPTIONS=open daemon"
ENABLE=true


In addition:

While I can manually start the 'watchdog.service' and 'ipmievd.service', 
these serviced do not start automatically at boot time.


'systemctl enable <service name>' does not enable either service with 
the following output listed:


Synchronizing state for watchdog.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d watchdog defaults
Executing /usr/sbin/update-rc.d watchdog enable

The unit files have no [Install] section. they are not ment to be 
enabled using systemctl.

...

How should I start the services automatically at boot time?


***

The motherboard has a jumper (JI2C1) for the 'I2C Bus to PCI-Exp. 
Slots'. The jumper is currenly disabled. Does this jumper need to be 
enabled as the output for 'dmidecode --type 38' lists an 'I2C Slave 
Address: 0x00' ?



***

I read about setting the following parameters, but there was no 
/etc/default/openipmi file.


IPMI_SI=yes
DEV_IPMI=yes
IPMI_WATCHDOG=yes
IPMI_WATCHDOG_OPTIONS="timeout=300"
IPMI_POWEROFF=no
IPMI_POWERCYCLE=no
IPMI_IMB=no

Am I supposed to set these parameters and if so where?


***

Is there supposed to be an ipmi.service? If so how does it get installed?


Thanks

Azeem



Reply sent to Noël Köthe <noel@debian.org>:
You have taken responsibility. (Thu, 25 Feb 2016 16:27:35 GMT) (full text, mbox, link).


Notification sent to Mauricio Tavares <raubvogel@gmail.com>:
Bug acknowledged by developer. (Thu, 25 Feb 2016 16:27:35 GMT) (full text, mbox, link).


Message #15 received at 614394-close@bugs.debian.org (full text, mbox, reply):

From: Noël Köthe <noel@debian.org>
To: 614394-close@bugs.debian.org
Subject: Bug#614394: fixed in openipmi 2.0.21-1
Date: Thu, 25 Feb 2016 16:26:43 +0000
Source: openipmi
Source-Version: 2.0.21-1

We believe that the bug you reported is fixed in the latest version of
openipmi, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 614394@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Noël Köthe <noel@debian.org> (supplier of updated openipmi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 25 Feb 2016 12:06:21 +0100
Source: openipmi
Binary: openipmi libopenipmi0 libopenipmi-dev
Architecture: source amd64
Version: 2.0.21-1
Distribution: unstable
Urgency: medium
Maintainer: Noël Köthe <noel@debian.org>
Changed-By: Noël Köthe <noel@debian.org>
Description:
 libopenipmi-dev - Intelligent Platform Management Interface - development
 libopenipmi0 - Intelligent Platform Management Interface - runtime
 openipmi   - Intelligent Platform Management Interface (for servers)
Closes: 474087 539416 569015 614394 632523 764041 775847
Changes:
 openipmi (2.0.21-1) unstable; urgency=medium
 .
   * new upstream release from 2014-01-28
     - ACK NMUs. Thanks for your help! closes: #764041, #569015, #474087, #632523
   * debian/control updates homepage to https
   * added init script. Thanks for the script. closes: #539416, #614394
   * enabled openssl. closes: #775847
   * debian/rules added hardening flags
Checksums-Sha1:
 5b78968ebc259be42cdc1da098fc31436d2e3b48 1877 openipmi_2.0.21-1.dsc
 54f63ab7fe09f6a4b0b718601fe9c61014aa220b 3473323 openipmi_2.0.21.orig.tar.gz
 227054a41f9ae44964e1ef10bdb9a3580a6eed2c 6976 openipmi_2.0.21-1.diff.gz
 94d72c27c50251140544cade891feab5bbf7dcb0 660770 libopenipmi-dev_2.0.21-1_amd64.deb
 c21cd659ff91cccb7b150b35340f3a6f3fe02188 1299726 libopenipmi0-dbgsym_2.0.21-1_amd64.deb
 b312b3d258d89d670dc0fb76a486d08b5e787a16 527376 libopenipmi0_2.0.21-1_amd64.deb
 5f33c9cc0a354f615eec2348ffcffd9441d1f16e 235144 openipmi-dbgsym_2.0.21-1_amd64.deb
 054b4e5adf6c0df2c5288f46cf7feaf1f1bd2ceb 209224 openipmi_2.0.21-1_amd64.deb
Checksums-Sha256:
 bb85cda06851a733d24001f453ff04c9405e31189d87fef504feee841a9943da 1877 openipmi_2.0.21-1.dsc
 37b844d02119b94b31e2bb2bd8062ffdf6cd3eb4bc75fa6c47184e8b14fe95b8 3473323 openipmi_2.0.21.orig.tar.gz
 df08f74860dca68401190288a56647a2d8d075500705af798dc171d3c80a1408 6976 openipmi_2.0.21-1.diff.gz
 f4b933a168d416340d14d9113870ef3c03e374f91173afa6f1a0edbcb7eacc87 660770 libopenipmi-dev_2.0.21-1_amd64.deb
 994c88deb6d20611d8f1d51f7152082bf6d9a9b1206256ffb86ebf637bd1570c 1299726 libopenipmi0-dbgsym_2.0.21-1_amd64.deb
 6e9fb152c9ad2ec83a346ec6244c07063846821c462416ff64df9632cd51a26d 527376 libopenipmi0_2.0.21-1_amd64.deb
 a3976da66ec99f56d422e9a36293fc2f614ef944e30e4e03c2fd13d9a949688d 235144 openipmi-dbgsym_2.0.21-1_amd64.deb
 7a74ef365e05cd1bc47f43beac8e882face949259f81b5a99e65a1c3e4a35fa5 209224 openipmi_2.0.21-1_amd64.deb
Files:
 ff79e8a2041d1c6d2ed31f4e5bf10f02 1877 admin optional openipmi_2.0.21-1.dsc
 dc0b42ae40b3f1d0db2a94b75b95fae1 3473323 admin optional openipmi_2.0.21.orig.tar.gz
 a380baca3d0e07bb6200c389e3b025d9 6976 admin optional openipmi_2.0.21-1.diff.gz
 e2527316369596a75eb2fc91d52fba8d 660770 libdevel optional libopenipmi-dev_2.0.21-1_amd64.deb
 37fdd767d39a43a7aa79ce9f807f163b 1299726 debug extra libopenipmi0-dbgsym_2.0.21-1_amd64.deb
 de860240b450bb642653f3c42830c718 527376 devel optional libopenipmi0_2.0.21-1_amd64.deb
 a4c8e26082f2f7cfdd94470eafbe3723 235144 debug extra openipmi-dbgsym_2.0.21-1_amd64.deb
 bf4d20ff878f7fd463915b2aedd92360 209224 admin optional openipmi_2.0.21-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJWzxPmAAoJEGjAeL6I+AzaJcUP/1RPe637iX2Z5YSvJramr8TM
GZwVEROWvyOTLcMfywy3bkWqnTOAaEnzXek6NoV68kDUkAWbh9CL1QUYEGUK4G02
Xrd6sEvnUYnxYN55Br4DQdgFVfzbWoVM2adR75Y3KePh1AoSRKSrsKxI0LhnUDgN
4wTrpCPAvZKIRR/tcHrGrqYxk6+SfFJXJgsZ/ggck1CuUTf18Xc/HOfeTbTjeo9u
z7zIpGH4g8W86/gWPxgciOnp5YjCygjK7uwDdww+mUKgBX3D6DEb85e00VP4PUfG
sYESi3xM4h3kLJ0Jt5h/LrULSi6VdGoajrbyi7iyd/8xDfXqpnPpkJD70qRV/ism
ToBawGP/Y91TA5LaX9t29ZDUuFtdMGVVIJDSgDl7Fp1gUU6lIMoPzB8WfY1Q4Q5w
4sm4lx7jpUzuvQTW5h3LeIYfOWHWGx4sk07dB5h5aeMIWAmka19IcJ4DcX1ZHiCg
QICQbs3KjNYXLbsCpkxmQIwy6wcresRIfgu6/LUWvi0/C+7JZobcQRxTCh7w+3qr
rarCyhjO2ItJO2WicILyokQnH28Gs/MBLXNoTw+XZPZlZAN9tbV12GFJ3Xu7/NJC
P2nGm1kDjbDiBSFdHSRWpHXVBXpKRExPFfXnFoMsWU4xV2eCrHoHLghapbXFVXAD
Fx6FrgnCQGeN4m++w4bS
=sa6O
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 25 Mar 2016 07:28:51 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jan 6 08:34:14 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.