maas.power Error changing power state (on) while commissioning the node
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have five Dell 1950 RAC, BMC and Network card firmware updated. I have configured one of the servers for the MAAS cluster controller and the other can simply boot from PXE as a Node.
My problem is once I do Commissioning MAAS fail and log the error:
Failed to power on node - Node could not be powered on:
Could not contact node's BMC: Connection timed out while
performing power action. Check BMC configuration and
connectivity and try again.
However, after 10 to 20 seconds it detects the power status:
Queried node's BMC - Power state queried: off
I realized, if I turn of the server 5 to 8 seconds before doing commissioning the process will be successful.
In addition, I can turn on and off the server by using ipmipower and etherwake
It seems to be the IPMI query time out problem. In older version it was possible to change the time-out in /etc/maas/
How can I change the timeout value?? where is it?
As you see below, the node was returning the power state but after commissioning the server require 10 to 15 seconds to respond to power state again (I cannot ping the node BMC IP address).
Node Log:
Queried node's BMC - Power state queried: off Thu, 20 Oct. 2016 11:34:48
Failed to power on node - Node could not be powered on: Could not contact node's BMC: Connection timed out while performing power action. Check BMC configuration and connectivity and try again. Thu, 20 Oct. 2016 11:34:28
Node changed status - From 'Commissioning' to 'Failed commissioning' Thu, 20 Oct. 2016 11:34:28
Marking node failed - Node could not be powered on: Could not contact node's BMC: Connection timed out while performing power action. Check BMC configuration and connectivity and try again. Thu, 20 Oct. 2016 11:34:28
User aborting node commissioning - (root) Thu, 20 Oct. 2016 11:34:27
User aborting node commissioning - (root) Thu, 20 Oct. 2016 11:34:26
User aborting node commissioning - (root) Thu, 20 Oct. 2016 11:34:26
User aborting node commissioning - (root) Thu, 20 Oct. 2016 11:34:26
User aborting node commissioning - (root) Thu, 20 Oct. 2016 11:34:25
User aborting node commissioning - (root) Thu, 20 Oct. 2016 11:34:24
MAAS.LOG:
Oct 20 11:38:53 maas maas.import-images: [INFO] Downloading image descriptions from http://
Oct 20 11:38:54 maas maas.import-images: [INFO] Finished importing boot images, the region does not have any new images.
Oct 20 11:40:47 maas maas.power: [ERROR] Power state could not be queried: Connection timed out while performing power action. Check BMC configuration and connectivity and try again.
Oct 20 11:40:48 maas maas.power: [ERROR] primary: Failed to refresh power state: Connection timed out while performing power action. Check BMC configuration and connectivity and try again.
Oct 20 11:46:02 maas maas.power: [ERROR] Power state could not be queried: Connection timed out while performing power action. Check BMC configuration and connectivity and try again.
Oct 20 11:46:03 maas maas.power: [ERROR] primary: Failed to refresh power state: Connection timed out while performing power action. Check BMC configuration and connectivity and try again.
Oct 20 11:51:18 maas maas.power: [ERROR] Power state could not be queried: Connection timed out while performing power action. Check BMC configuration and connectivity and try again.
Oct 20 11:51:18 maas maas.power: [ERROR] primary: Failed to refresh power state: Connection timed out while performing power action. Check BMC configuration and connectivity and try again.
Oct 20 11:56:18 maas maas.power: [ERROR] Power state could not be queried: Connection timed out while performing power action. Check BMC configuration and connectivity and try again.
Oct 20 11:56:18 maas maas.power: [ERROR] primary: Failed to refresh power state: Connection timed out while performing power action. Check BMC configuration and connectivity and try again.
Oct 20 11:58:53 maas maas.import-images: [INFO] Started importing boot images.
Oct 20 11:58:53 maas maas.import-images: [INFO] Downloading image descriptions from http://
Oct 20 11:58:54 maas maas.import-images: [INFO] Finished importing boot images, the region does not have any new images.
Oct 20 12:01:32 maas maas.power: [ERROR] Power state could not be queried: Connection timed out while performing power action. Check BMC configuration and connectivity and try again.
Oct 20 12:01:33 maas maas.power: [ERROR] primary: Failed to refresh power state: Connection timed out while performing power action. Check BMC configuration and connectivity and try again.
Output from dpkg -l '*maas*'|cat
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii maas 2.0.0+bzr5189-
ii maas-cli 2.0.0+bzr5189-
un maas-cluster-
ii maas-common 2.0.0+bzr5189-
ii maas-dhcp 2.0.0+bzr5189-
ii maas-dns 2.0.0+bzr5189-
ii maas-proxy 2.0.0+bzr5189-
ii maas-rack-
ii maas-region-api 2.0.0+bzr5189-
ii maas-region-
un maas-region-
un python-django-maas <none> <none> (no description available)
un python-maas-client <none> <none> (no description available)
un python-
ii python3-django-maas 2.0.0+bzr5189-
ii python3-maas-client 2.0.0+bzr5189-
ii python3-
You can change the "timeout" in the actual power driver now which is located at:
/usr/lib/ python3/ dist-packages/ provisioningser ver/drivers/ power/ipmi. py.
See if this helps your situation.