maas-ipmi-autodetect-tool fails to detect IPMI on midway

Bug #1250388 reported by Robie Basak
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
maas (Ubuntu)
Fix Committed
Undecided
Unassigned
Saucy
Won't Fix
Undecided
Unassigned

Bug Description

[Impact]

Machines successfully enlist, but IPMI autodetection fails. This causes MAAS to fail to have any power control parameters for enlisted nodes, which means that manual intervention is required and MAAS fails to "Just Work".

[Upstream Fix]

Revision 1717 in trunk.

[Development Fix]

Pending upstream release/snapshot.

[Stable Fix]

A minimal "import glob" patch should work here.

[Regression Potential]

"glob" is a standard Python library function, and there should be no impact in importing it. If some change to maas-ipmi-autodetect-tool were to cause a regression, it would be that the tool would fail, thus causing the power parameters to fail to set in MAAS upon enlistment. This is the use case being fixed by this SRU.

[Original Description]

maas 1.4+bzr1693+dfsg-0ubuntu2.2 on Saucy

It appears to me that this would affect Highbank, Midway and anything else that does local IPMI detection using this snippet on Saucy.

During enlistment:

Traceback (most recent call last):
  File "/tmp/sh.6FtsiE/bin/maas-ipmi-autodetect-tool", line 44, in <module>
    main()
  File "/tmp/sh.6FtsiE/bin/maas-ipmi-autodetect-tool", line 33, in main
    (status, ipmi_version) = detect_ipmi()
  File "/tmp/sh.6FtsiE/bin/maas-ipmi-autodetect-tool", line 18, in detect_ipmi
    found = glob.glob("/dev/ipmi[0-9]")
NameError: global name 'glob' is not defined

Looks like this was fixed in upstream trunk in revision 1717. This may need a Saucy SRU.

Workaround: add "import glob" to /etc/maas/templates/commissioning-user-data/snippets/maas_ipmi_autodetect_tool.py.

Tags: midway
Robie Basak (racb)
tags: added: midway
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in maas (Ubuntu):
status: New → Confirmed
Robie Basak (racb)
description: updated
Revision history for this message
Robie Basak (racb) wrote :

We know that there is a fix for this in trunk, if not validated.

Changed in maas (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

saucy has seen the end of its life and is no longer receiving any updates. Marking the saucy task for this ticket as "Won't Fix".

Changed in maas (Ubuntu Saucy):
status: New → Won't Fix
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.