IPMI Power command does not work

Bug #1086160 reported by Kiran on 2012-12-03
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
High
Chris Van Hoof
1.2
High
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

Related branches

tags: added: power
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
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) on 2012-12-06
description: updated
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)

to
ipmi_state=$(issue_ipmi_command --stat)

essentially changing "stat" to "--stat"

Launchpad Janitor (janitor) wrote :

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

Changed in maas:
status: Incomplete → Expired
Peter Petrakis (peter-petrakis) wrote :

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

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

Changed in maas:
status: Expired → Confirmed
Raphaël Badin (rvb) on 2013-04-23
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  Edit
Everyone can see this information.

Other bug subscribers