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

Bug #1560830 reported by Brad Marshall
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
MAAS
In Progress
High
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/ipmi.py:

    def _issue_ipmi_power_command(command, power_change, power_address, env):
    ..... snip ....
            if 'on' in output:
                return 'on'
            elif 'off' in output:
                return 'off'
            else:
                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)
Changed in maas:
status: New → Triaged
importance: Undecided → High
Gavin Panella (allenap)
Changed in maas:
assignee: nobody → Gavin Panella (allenap)
status: Triaged → In Progress
Revision history for this message
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!

Revision history for this message
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.

Revision history for this message
Andres Rodriguez (andreserl) wrote :

@Gavin,

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.

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Note that I added a task in https://bugs.launchpad.net/maas/+bug/1560830 for 2.0

Revision history for this message
Gavin Panella (allenap) wrote :

You're right, sorry about that.

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.