Comment 16 for bug 1293791

Revision history for this message
Kent Baxley (kentb) wrote : Re: [Bug 1293791] Re: ipmi template tries to apply ipmi to *hosts* address rather than ipmi address

Mike,

DON'T comment it out. I tried that earlier (see above comments).
With the format of this file you have to either get rid of them
completely or maybe put a space between the pound sign and the {{.

On Wed, Mar 19, 2014 at 10:20 AM, Mike Rushton
<email address hidden> wrote:
> The servers we're testing at the moment are Cisco C220 and C240
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1294332).
> https://bugs.launchpad.net/bugs/1293791
>
> Title:
> ipmi template tries to apply ipmi to *hosts* address rather than ipmi
> address
>
> Status in MAAS:
> Fix Committed
>
> Bug description:
>
> The maas 'ipmi.template' has the following code:
>
> | # Parameters.
> | power_change={{power_change}}
> | power_address={{power_address}}
> | ...
> | # If ip_address was supplied, use it in preference to the power_address,
> | # because it gets discovered on-the-fly based on mac_address.
> | {{if ip_address}}
> | power_address={{ip_address}}
> | {{endif}}
> | ...
> |
> | issue_ipmi_command() {
> | echo workaround |\
> | ${ipmipower} ${workarounds} ${driver_option} -h ${power_address} -u ${power_user} -p ${power_pass} "$@"
> | ...
>
> The "if ip_address" section is simply wrong.
>
> If maas is aware of an ip address that it would use for this *HOST*,
> then it will try to contact ipmi at that address.
>
> The following is some output of my debug statements in ipmi.template,
> with stdout and stderr in line:
>
> | Mon, 17 Mar 2014 19:44:03 +0000: [4741] power_address=192.168.1.202 [ip_address=192.168.9.7] power_change=off user=maas pass=MYPASSWORD driver=LAN_2_0 config=/etc/maas/templates/power/ipmi.conf
> | echo workaround | /usr/sbin/ipmi-chassis-config -W opensesspriv --driver-type=LAN_2_0 -h 192.168.9.7 -u maas -p MYPASSWORD --commit --filename /etc/maas/templates/power/ipmi.conf
> | /usr/sbin/ipmi-chassis-config: connection timeout
> | echo workaround | /usr/sbin/ipmipower -W opensesspriv --driver-type=LAN_2_0 -h 192.168.9.7 -u maas -p MYPASSWORD --off
> | 192.168.9.7: connection timeout
> | Mon, 17 Mar 2014 19:44:44 +0000: ret=0
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/maas/+bug/1293791/+subscriptions

--
Kent Baxley
Field Engineer, Canonical
<email address hidden>