Powering multiple SM15k nodes fails with HTTP error 401
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Critical
|
Unassigned | ||
python-seamicroclient (Ubuntu) |
Fix Released
|
Critical
|
Unassigned |
Bug Description
How to Reproduce:
Check multiple SM15k nodes in MAAS, using the drop-down select "Start selected nodes". Some nodes will succeed, others will fail with PowerActionFail. In this case 10 nodes were selected, and more than one failed.
Error Output:
[2014-04-04 20:41:35,135: ERROR/Worker-8] power_on: sm15k failed: Command '# -*- mode: shell-script -*-
#
# Control a system via ipmipower, sending the seamicro specific hex codes
#
# Parameters
power_change=on
power_address=
power_user=admin
power_pass=******
power_control=
system_id=48
ipmitool=
# IPMI power mode
power_mode=1
# Control power using IPMI
issue_ipmi_
${ipmitool} -I lanplus \
-H ${power_address} -U ${power_user}\
-P ${power_pass} raw 0x2E 1 0x00 0x7d 0xab \
}
# Control power using REST v0.9
issue_rest_
python - << END
from provisioningser
power_control_
END
}
# Control power using REST v2
issue_rest_
python - << END
from provisioningser
power_control_
END
}
if [ "${power_control}" = "ipmi" ]
then
issue_
elif [ "${power_control}" = "restapi" ]
then
issue_
elif [ "${power_control}" = "restapi2" ]
then
issue_
fi
' returned non-zero exit status 1:
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/usr/lib/
server.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
return self.api.
File "/usr/lib/
return self._cs_
File "/usr/lib/
raise e
seamicroclient.
[2014-04-04 20:41:35,138: ERROR/MainProcess] Task provisioningser
Traceback (most recent call last):
File "/usr/lib/
R = retval = fun(*args, **kwargs)
File "/usr/lib/
return self.run(*args, **kwargs)
File "/usr/lib/
func(*args, **kwargs)
File "/usr/lib/
issue_
File "/usr/lib/
pa.
File "/usr/lib/
self.
File "/usr/lib/
raise PowerActionFail
PowerActionFail
Related branches
description: | updated |
This is not really a MAAS issue, but rather a bug with the SM15K API. We are keeping it open for tracking purposes.