[SRU] bug #43027, ipmi-locate only works on ia64

Bug #1359285 reported by Narinder Gupta
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
freeipmi (Ubuntu)
Fix Released
Critical
Unassigned
Trusty
Fix Released
Critical
Unassigned

Bug Description

[Impact]
ipmi-locate only work on ia64, and it does not work on UEFI enabled systems. This causes ipmi-locate to not be able to discover attached BMC's, causing the Ubuntu Certification to Fail.

[Test Case]
1. Install freeipmi tools in a UEFI enabled system (DL380 Gen9)
2. ipmi-locate, it will fail
3. Install freeipmi-tools with fix.
4. ipmi-locate, it will succeed.

[Regression Potential]
Minimal, this only enables UEFI, and does nto affect ia64 architectures. This has been tested and systems will be re-tests (both UEFI/onon-UEFI) before it cane be successfully verified.

[Original Description]
USE_EFI is only defined in ipmi-locate if the ARCH is ia64. A distro (RHEL7 for example) delivered version of freeipmi will need to run on UEFI and legacy systems.
I've attached a patch that fixes this issue and another issue where the SMBIOS= line in /sys/firmware/efi/systab is terminated with a "linefeed" (0x0a) and not a NULL(ox00)

patch link https://savannah.gnu.org/bugs/download.php?file_id=31919

Tue 19 Aug 2014 08:52:19 PM UTC, comment #1:
Thanks, it'll be in the next release.

Revision history for this message
Michael F. Miller (mikem1355) wrote :

Tested patch on DL380 Gen9. It works correctly.

Revision history for this message
Michael F. Miller (mikem1355) wrote :

Output from patched ipmi-locate:

ubuntu@dl380g9-uefi:~/freeipmi-1.4.5/ipmi-locate$ sudo ./ipmi-locate
Probing KCS device using DMIDECODE... done
IPMI Version: 2.0
IPMI locate driver: DMIDECODE
IPMI interface: KCS
BMC driver device:
BMC I/O base address: 0xCA2
Register spacing: 1

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

This bug was fixed in the package freeipmi - 1.1.5-3ubuntu5

---------------
freeipmi (1.1.5-3ubuntu5) utopic; urgency=medium

  * debian/patches/freeipmi-uefi.patch: Fix ipmi-locate on non ia64
    architectures. (LP: #1359285)
 -- Chuck Short <email address hidden> Wed, 20 Aug 2014 12:43:55 -0400

Changed in freeipmi (Ubuntu):
status: New → Fix Released
summary: - bug #43027, ipmi-locate only works on ia64
+ [SRU] bug #43027, ipmi-locate only works on ia64
description: updated
description: updated
description: updated
description: updated
Changed in freeipmi (Ubuntu Trusty):
importance: Undecided → Critical
Changed in freeipmi (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello Narinder, or anyone else affected,

Accepted freeipmi into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/freeipmi/1.1.5-3ubuntu3.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in freeipmi (Ubuntu Trusty):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Michael F. Miller (mikem1355) wrote :

Has this build completed? I can only get

ubuntu@dl380-gen9:~$ dpkg -l "*ipmi*" | cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-====================================-=============================-============-===============================================================================
ii freeipmi 1.1.5-3ubuntu3.1 all GNU implementation of the IPMI protocol
ii freeipmi-bmc-watchdog 1.1.5-3ubuntu3.1 amd64 GNU implementation of the IPMI protocol - BMC watchdog
ii freeipmi-common 1.1.5-3ubuntu3.1 all GNU implementation of the IPMI protocol - common files
ii freeipmi-ipmidetect 1.1.5-3ubuntu3.1 amd64 GNU IPMI - IPMI node detection tool
ii freeipmi-tools 1.1.5-3ubuntu3.1 amd64 GNU implementation of the IPMI protocol - tools
ii libfreeipmi12 1.1.5-3ubuntu3.1 amd64 GNU IPMI - libraries
ii libipmiconsole2 1.1.5-3ubuntu3.1 amd64 GNU IPMI - Serial-over-Lan library
ii libipmidetect0 1.1.5-3ubuntu3.1 amd64 GNU IPMI - IPMI node detection library

From /etc/apt/sources.list:

deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://us.archive.ubuntu.com/ubuntu/ trusty-proposed restricted main multiverse universe

Revision history for this message
Michael F. Miller (mikem1355) wrote :

ubuntu@dl380-gen9:~$ sudo apt-cache search freeipmi
freeipmi-common - GNU implementation of the IPMI protocol - common files
freeipmi-tools - GNU implementation of the IPMI protocol - tools
libfreeipmi-dev - GNU IPMI - development package
libfreeipmi12 - GNU IPMI - libraries
libipmiconsole-dev - GNU IPMI - ipmiconsole development package
libipmiconsole2 - GNU IPMI - Serial-over-Lan library
libipmidetect-dev - GNU IPMI - ipmidetect development package
libipmidetect0 - GNU IPMI - IPMI node detection library
libipmimonitoring-dev - GNU IPMI - ipmimonitoring development package
libipmimonitoring5 - GNU IPMI - Sensor monitoring library
freeipmi - GNU implementation of the IPMI protocol
freeipmi-bmc-watchdog - GNU implementation of the IPMI protocol - BMC watchdog
freeipmi-ipmidetect - GNU IPMI - IPMI node detection tool
ubuntu@dl380-gen9:~$ sudo apt-get upgrade freeipmi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
freeipmi is already the newest version.
The following packages have been kept back:
  linux-headers-generic linux-signed-generic linux-signed-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

Revision history for this message
Narinder Gupta (narindergupta) wrote :

tested and verified by HP and it works here is the out on one of their Gen9 server.

root@DL120gen9:~# ipmi-locate

Probing KCS device using DMIDECODE... done

IPMI Version: 2.0

IPMI locate driver: DMIDECODE

IPMI interface: KCS

BMC driver device:

BMC I/O base address: 0xCA2

Register spacing: 1

Probing SMIC device using DMIDECODE... FAILED

Probing BT device using DMIDECODE... FAILED

Probing SSIF device using DMIDECODE... FAILED

Probing KCS device using SMBIOS... FAILED

Probing SMIC device using SMBIOS... FAILED

Probing BT device using SMBIOS... FAILED

Probing SSIF device using SMBIOS... FAILED

Probing KCS device using ACPI... FAILED

Probing SMIC device using ACPI... FAILED

Probing BT device using ACPI... FAILED

Probing SSIF device using ACPI... FAILED

Probing KCS device using PCI... FAILED

Probing SMIC device using PCI... FAILED

Probing BT device using PCI... FAILED

Probing SSIF device using PCI... FAILED

root@DL120gen9:~# dpkg -l | grep freeipmi

ii freeipmi 1.1.5-3ubuntu3.2 all GNU implementation of the IPMI protocol

ii freeipmi-bmc-watchdog 1.1.5-3ubuntu3.2 amd64 GNU implementation of the IPMI protocol - BMC watchdog

ii freeipmi-common 1.1.5-3ubuntu3.2 all GNU implementation of the IPMI protocol - common files

ii freeipmi-ipmidetect 1.1.5-3ubuntu3.2 amd64 GNU IPMI - IPMI node detection tool

ii freeipmi-tools 1.1.5-3ubuntu3.2 amd64 GNU implementation of the IPMI protocol - tools

ii libfreeipmi12 1.1.5-3ubuntu3.2 amd64 GNU IPMI - libraries

tags: added: verification-done
removed: verification-needed
Changed in freeipmi (Ubuntu Trusty):
status: Fix Committed → Confirmed
status: Confirmed → Fix Released
Changed in freeipmi (Ubuntu Trusty):
status: Fix Released → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package freeipmi - 1.1.5-3ubuntu3.2

---------------
freeipmi (1.1.5-3ubuntu3.2) trusty-proposed; urgency=medium

  [ Chuck Short ]
  * debian/patches/freeipmi-uefi.patch: Fix ipmi-locate on non ia64
    architectures. (LP: #1359285)
 -- Andres Rodriguez <email address hidden> Fri, 22 Aug 2014 14:09:36 -0400

Changed in freeipmi (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Chris J Arges (arges) wrote : Update Released

The verification of the Stable Release Update for freeipmi has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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