freeipmi patch for HP moonshot ARM cartridges with I2c

Bug #1324992 reported by Narinder Gupta
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
freeipmi (Debian)
Fix Released
Unknown
freeipmi (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Fix Released
Undecided
Unassigned

Bug Description

[Impact]
freeipmi is unable to reliable communicate with the BMC on ARM HP Moonshot cartridges
[Test Case]

[Regression Potential]
Should be minimal, given the new code only runs in a case that would've previous resulted in a failure.

Related branches

Revision history for this message
Narinder Gupta (narindergupta) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "this is the patch accepted upstream" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
dann frazier (dannf) wrote :

I've prepared a potential fix for this issue in ppa:ce-hyperscale/ce-hyperscale-scratch. Please verify and confirm that this backport contains the required functionality.

dann frazier (dannf)
description: updated
Revision history for this message
Manoj Iyer (manjo) wrote :

Installed the package that dannf provided and ran the exact same command that works for Shashi with his version of freeipmi+patches:

ubuntu@c3n3:~$ sudo bmc-info --no-probing --driver-type=SSIF --driver-address=0x10 --driver-device=/dev/i2c-2 --get-device-id --debug
=====================================================
Get Device ID Request
=====================================================
SSIF Header:
------------
[ 0h] = lun[ 2b]
[ 6h] = net_fn[ 6b]
IPMI Command Data:
------------------
[ 1h] = cmd[ 8b]
ipmi_cmd_get_device_id: internal system error
ubuntu@c3n3:~$

Revision history for this message
dann frazier (dannf) wrote :

OK, turns out it was a firmware setting that Manoj was missing in the previous comment.

On a system with the correct setting, this is what freeipmi shows w/o my branch:
root@ubuntu:/home/ubuntu# bmc-info --no-probing --driver-type=SSIF --driver-address=0x10 --driver-device=/dev/i2c-2 --get-device-id
ipmi_cmd_get_device_id: internal system error

And this is with my branch:
root@ubuntu:/home/ubuntu# bmc-info --no-probing --driver-type=SSIF --driver-address=0x10 --driver-device=/dev/i2c-2
Device ID : 20
Device Revision : 0
Device SDRs : supported
Firmware Revision : 1.30
Device Available : yes (normal operation)
IPMI Version : 2.0
Sensor Device : supported
SDR Repository Device : unsupported
SEL Device : supported
FRU Inventory Device : supported
IPMB Event Receiver : unsupported
IPMB Event Generator : supported
Bridge : unsupported
Chassis Device : supported
Manufacturer ID : Hewlett-Packard (11)
Product ID : 8449

System Firmware Version :
System Name : ProLiant m800 Server Cartridge
Primary Operating System Name :
Operating System Name :

Channel Information
Channel Number : 0
Medium Type : IPMB (I2C)
Protocol Type : IPMB-1.0
Active Session Count : 0
Session Support : session-less
Vendor ID : Intelligent Platform Management Interface forum (7154)

dann frazier (dannf)
Changed in freeipmi (Ubuntu):
status: New → Confirmed
Changed in freeipmi (Ubuntu Trusty):
status: New → Confirmed
Changed in freeipmi (Debian):
status: Unknown → New
Revision history for this message
Robie Basak (racb) wrote :

dann's work is perfect, as usual - thank you! I see that the current release (1.4.4) that is not yet packaged contains this patch, so cherry-picking should be no issue. Uploaded to Utopic.

Changed in freeipmi (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

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

  * debian/patches/Retry-ssif-reads-as-needed.patch: Retry SSIF reads
    as needed, LP: #1324992
 -- dann frazier <email address hidden> Fri, 30 May 2014 15:53:06 -0600

Changed in freeipmi (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Robie Basak (racb) wrote :

Uploaded to Trusty. Now awaiting SRU team approval.

Changed in freeipmi (Ubuntu Trusty):
status: Confirmed → Triaged
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.1 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: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
Kodamati Pradeep Vinesh Reddy (pradeep-reddy2) wrote :

After installing the freeipmi from the proposed repositories, I see the below error

ubuntu@ubuntu:~$ sudo bmc-info --no-probing --driver-type=SSIF --driver-address=0x10 --driver-device=/dev/i2c-2 --get-device-id
[sudo] password for ubuntu:
insufficient permission on driver device '/dev/i2c-2'

When I looked into the /dev/ I dont see i2c-2 device.

ubuntu@ubuntu:~$ dpkg --list | grep freeipmi
ii freeipmi 1.1.5-3ubuntu3.1 all GNU implementation of the IPMI protocol
ii freeipmi-bmc-watchdog 1.1.5-3ubuntu3.1 armhf 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 armhf GNU IPMI - IPMI node detection tool
ii freeipmi-tools 1.1.5-3ubuntu3.1 armhf GNU implementation of the IPMI protocol - tools
ii libfreeipmi12 1.1.5-3ubuntu3.1 armhf GNU IPMI - libraries
ubuntu@ubuntu:~$

Please let me know if I am missing something.

Thanks,
Pradeep.

Revision history for this message
Narinder Gupta (narindergupta) wrote : RE: [Bug 1324992] Re: freeipmi patch for HP moonshot ARM cartridges with I2c

You need to manual load the i2c-dev driver

Narinder Gupta

Kodamati Pradeep Vinesh Reddy <email address hidden> wrote:

null

Revision history for this message
Kodamati Pradeep Vinesh Reddy (pradeep-reddy2) wrote :

I loaded the driver manually, now I see the devices but the command fails with "internal system error. See below

root@ubuntu:~# ls /dev/i2c-*
/dev/i2c-0 /dev/i2c-1 /dev/i2c-2
root@ubuntu:~# bmc-info --no-probing --driver-type=SSIF --driver-address=0x10 --driver-device=/dev/i2c-2 --get-device-id
ipmi_cmd_get_device_id: internal system error

Revision history for this message
Kodamati Pradeep Vinesh Reddy (pradeep-reddy2) wrote :

I am seeing the error like mentioned by manoj above comment #4

root@ubuntu:~# bmc-info --no-probing --driver-type=SSIF --driver-address=0x10 --driver-device=/dev/i2c-2 --get-device-id --debug
=====================================================
Get Device ID Request
=====================================================
SSIF Header:
------------
[ 0h] = lun[ 2b]
[ 6h] = net_fn[ 6b]
IPMI Command Data:
------------------
[ 1h] = cmd[ 8b]
ipmi_cmd_get_device_id: internal system error
root@ubuntu:~#

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

pradeep which node? It needs node 2, 3, and 4 need some extra step as per
shashi. Can you try it node 1 if it is not node one. Otherwise you need to
get the steps from shashi to enabled i2c on those nodes.

Thanks and Regards,
Narinder Gupta (PMP) <email address hidden>
Canonical, Ltd. narindergupta [irc.freenode.net]
+1.281.736.5150 narindergupta2007[skype]

Ubuntu- Linux for human beings | www.ubuntu.com | www.canonical.com

On Tue, Aug 5, 2014 at 10:16 PM, Kodamati Pradeep Vinesh Reddy <
<email address hidden>> wrote:

> I am seeing the error like mentioned by manoj above comment #4
>
> root@ubuntu:~# bmc-info --no-probing --driver-type=SSIF
> --driver-address=0x10 --driver-device=/dev/i2c-2 --get-device-id --debug
> =====================================================
> Get Device ID Request
> =====================================================
> SSIF Header:
> ------------
> [ 0h] = lun[ 2b]
> [ 6h] = net_fn[ 6b]
> IPMI Command Data:
> ------------------
> [ 1h] = cmd[ 8b]
> ipmi_cmd_get_device_id: internal system error
> root@ubuntu:~#
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1324992
>
> Title:
> freeipmi patch for HP moonshot ARM cartridges with I2c
>
> Status in “freeipmi” package in Ubuntu:
> Fix Released
> Status in “freeipmi” source package in Trusty:
> Fix Committed
> Status in “freeipmi” package in Debian:
> New
>
> Bug description:
> [Impact]
> freeipmi is unable to reliable communicate with the BMC on ARM HP
> Moonshot cartridges
> [Test Case]
>
> [Regression Potential]
> Should be minimal, given the new code only runs in a case that would've
> previous resulted in a failure.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/freeipmi/+bug/1324992/+subscriptions
>

Revision history for this message
Shashi Dande (shashi-dande) wrote :

With the latest firmware all the nodes should work. I think he did not download the correct freeimpi version.

Revision history for this message
Kodamati Pradeep Vinesh Reddy (pradeep-reddy2) wrote :

Node 1 works without any changes required to K60.

root@Slaytonc41n1:~# bmc-info --no-probing --driver-type=SSIF --driver-address=0x10 --driver-device=/dev/i2c-2 --get-device-id
Device ID : 20
Device Revision : 0
Device SDRs : supported
Firmware Revision : 1.30
Device Available : yes (normal operation)
IPMI Version : 2.0
Sensor Device : supported
SDR Repository Device : unsupported
SEL Device : supported
FRU Inventory Device : supported
IPMB Event Receiver : unsupported
IPMB Event Generator : supported
Bridge : unsupported
Chassis Device : supported
Manufacturer ID : Hewlett-Packard (11)
Product ID : 8449
root@Slaytonc41n1:~#

The other nodes work only if I do the changes to K60.

Shashi do you know which firmware has the changes?

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

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

  [ dann frazier ]
  * debian/patches/Retry-ssif-reads-as-needed.patch: Retry SSIF reads
    as needed, LP: #1324992
 -- Robie Basak <email address hidden> Thu, 17 Jul 2014 02:14:05 +0000

Changed in freeipmi (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Scott Kitterman (kitterman) 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.

Changed in freeipmi (Debian):
status: New → 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.