Merge lp:~jason-hobbs/maas/opensesspriv-workaround-required-lp-1287964 into lp:~maas-committers/maas/trunk

Proposed by Jason Hobbs
Status: Merged
Approved by: Jason Hobbs
Approved revision: no longer in the source branch.
Merged at revision: 2091
Proposed branch: lp:~jason-hobbs/maas/opensesspriv-workaround-required-lp-1287964
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 27 lines (+7/-2)
1 file modified
etc/maas/templates/power/ipmi.template (+7/-2)
To merge this branch: bzr merge lp:~jason-hobbs/maas/opensesspriv-workaround-required-lp-1287964
Reviewer Review Type Date Requested Status
Andres Rodriguez (community) Approve
Review via email: mp+209761@code.launchpad.net

Commit message

Enable opensesspriv workaround for ipmipower.

Many BMCs require this workaround to be enabled for LAN 2.0 sessions to work. The change is fairly innocuous, stays within the bounds of the IPMI spec, and shouldn't cause any issues on BMCs that don't require it. The workaround was tested on a handful of systems that both require and it and don't require it.

To post a comment you must log in.
Revision history for this message
Andres Rodriguez (andreserl) wrote :

lgtm!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'etc/maas/templates/power/ipmi.template'
2--- etc/maas/templates/power/ipmi.template 2014-02-26 07:05:31 +0000
3+++ etc/maas/templates/power/ipmi.template 2014-03-06 19:18:34 +0000
4@@ -19,6 +19,11 @@
5 power_address={{ip_address}}
6 {{endif}}
7
8+# This workaround is required on many BMCs, and should have no impact
9+# on BMCs that don't require it.
10+# See https://bugs.launchpad.net/maas/+bug/1287964
11+workarounds="-W opensesspriv"
12+
13 # Determines the power command needed to execute the desired
14 # action. This function receives ${power_change} as argument.
15 formulate_power_command() {
16@@ -55,9 +60,9 @@
17 fi
18
19 echo workaround |\
20- ${ipmi_chassis_config} ${driver_option} -h ${power_address} -u ${power_user} -p ${power_pass} --commit --filename ${config}
21+ ${ipmi_chassis_config} ${workarounds} ${driver_option} -h ${power_address} -u ${power_user} -p ${power_pass} --commit --filename ${config}
22 echo workaround |\
23- ${ipmipower} ${driver_option} -h ${power_address} -u ${power_user} -p ${power_pass} "$@"
24+ ${ipmipower} ${workarounds} ${driver_option} -h ${power_address} -u ${power_user} -p ${power_pass} "$@"
25 }
26
27 # This script deliberately does not check the current power state