Comment 10 for bug 1171418

Revision history for this message
Chris Long (clong-i) wrote :

Hi All.
I'm completely new to posting here so please forgive my inexperience.
Here's my problem and fix in cli however what I wish to do is add this fix to the ipmi.template so that maas will work correctly.
This is while running maas on a HP Blade server C7000 series with ProLiant BL2x220c G5 server blades - iLo 2.0

non working example:
ipmipower -h 10.200.0.36 -u maas -p xxxxx --stat
10.200.0.36: authentication type unavailable for attempted privilege level

working example:
ipmipower -D LAN_2_0 -h 10.200.0.36 -u maas -p xxxxx --stat
10.200.0.36: off

Another which controls power on and off:
ipmipower -h 10.200.0.36 -u maas -p xxxxx --on
 10.200.0.36: authentication type unavailable for attempted privilege level

ipmipower -h 10.200.0.36 -u maas -p xxxxx --off
 10.200.0.36: authentication type unavailable for attempted privilege level

working example:
ipmipower -D LAN_2_0 -h 10.200.0.36 -u maas -p xxxxx --on
10.200.0.36: ok

ipmipower -D LAN_2_0 -h 10.200.0.36 -u maas -p kC17O6xZ --off
10.200.0.36: ok

So where and how do I add "-D LAN_2_0" to enable the IPMI commands to work within MAAS? I'm sure other people will be experiencing this particular issue.

Do I add anything to either of these files?
/usr/share/pyshared/provisioningserver/power/templates/ipmi.template
/usr/lib/python2.7/dist-packages/provisioningserver/power/templates/ipmi.template

Thanks in advance.