maas power check won't work with ipmi hosts with the string 'on' in them

Bug #1560830 reported by Brad Marshall on 2016-03-23
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Gavin Panella

Bug Description

While trying to deploy a ppc64el host on MAAS 1.9 I ended up having odd power issues. It appeared to be sending the right power commands, and would power it on and off, but never seemed to recognise that it was powered off.

I had a bit of a poke around in the code and found something interesting in provisioningserver/drivers/power/

    def _issue_ipmi_power_command(command, power_change, power_address, env):
    ..... snip ....
            if 'on' in output:
                return 'on'
            elif 'off' in output:
                return 'off'
                return output

The host I was trying was called cameron, and the output from the ipmipower looked like:

  cameron.1ss.ilo: off

This mean that no matter what happened, once it was turned on it never realised it was off again.

Once I changed the ipmi hostname to the IP address, I could run a power check and it instantly realised it was off.

MAAS Version: 1.9.1+bzr4543-0ubuntu1 (trusty1)

Please let me know if you need any further information.

Gavin Panella (allenap) on 2016-03-23
Changed in maas:
status: New → Triaged
importance: Undecided → High
Gavin Panella (allenap) on 2016-05-18
Changed in maas:
assignee: nobody → Gavin Panella (allenap)
status: Triaged → In Progress
Andres Rodriguez (andreserl) wrote :

Hi Brad,

I believe this bug was fixed in MAAS 1.9.2, can you please upgrade to 1.9.2 ? Thanks!

Gavin Panella (allenap) wrote :

This isn't a dupe of bug 1508741 and it's not fixed in 2.0; I wrote a test this morning that shows it exists; see the linked branch.

Andres Rodriguez (andreserl) wrote :


The bug is dupe. This bug here that Brad reported has been fixed in 1.9.2 but not fixed in 2.0. Bug 1508741 was exactly the same issue, it is just described differently.

Andres Rodriguez (andreserl) wrote :

Note that I added a task in for 2.0

Gavin Panella (allenap) wrote :

You're right, sorry about that.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers