IPMI Power command does not work

Bug #1086160 reported by Kiran
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Released
Chris Van Hoof
Fix Committed
Raphaël Badin

Bug Description

Last update to (line 47) "ipmi.template" missing "--" while trying to gather state of the machine

>> ${ipmipower} -h ${power_address} -u ${power_user} -p ${power_pass} "$@"

should be --stat while getting the status of the box

Tags: power ipmi maas

Related branches

tags: added: power
Revision history for this message
Julian Edwards (julian-edwards) wrote :

I don't see the "--" documented anywhere in the man page or its help text. Why do you think it's necessary?

Changed in maas:
status: New → Incomplete
Revision history for this message
Kiran (ramineni) wrote :

issue_ipmi_command() is called by get_power_state() at line:53
ipmi_state=$(issue_ipmi_command stat)

ipmipower valid option to get stat is : -s or --stat
ipmipower --help
-s, --stat Get power status of the target hosts.

Kiran (ramineni)
description: updated
Revision history for this message
Kiran (ramineni) wrote :

testing it little bit more best way to fix it would be change

ipmi.template:53>> ipmi_state=$(issue_ipmi_command stat)

ipmi_state=$(issue_ipmi_command --stat)

essentially changing "stat" to "--stat"

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for MAAS because there has been no activity for 60 days.]

Changed in maas:
status: Incomplete → Expired
Revision history for this message
Peter Petrakis (peter-petrakis) wrote :

ubuntu@ubuntu:~$ ipmipower -h -u admin -p admin stat
ipmipower: Too many arguments

Try `ipmipower --help' or `ipmipower --usage' for more information.
ubuntu@ubuntu:~$ ipmipower -h -u admin -p admin --stat off

Changed in maas:
status: Expired → Confirmed
Raphaël Badin (rvb)
Changed in maas:
status: Confirmed → Fix Committed
assignee: nobody → Chris Van Hoof (vanhoof)
importance: Undecided → High
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers