MAAS tries to power query node with ether_wake power type

Bug #1396678 reported by Georg Steinbach
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Low
Julian Edwards

Bug Description

General Problem Description:

I have a lot of old Lenovo ThinkCenter Desktops which I want to use in a Opensstack-Coud

Powering on a node on the commandline works fine if I do it with this:
root@os1:~# etherwake 00:1e:37:45:1c:16

Using "wakeonlan" doesn't work - so I uninstalled it as I saw that it't not needed in /etc/maas/templates/power/ether_wake.template

But MAAS is failing to power it on. I can't find any hint why. Thats the only message I get:

Nov 26 10:06:31 os1 maas.power: [ERROR] impeccable-beam.maas: Failed to query power state: Unknown power_type 'ether_wake'.

1. The error log " /var/log/maas/maas.log" is full of entries like this:

Nov 26 11:42:50 os1 maas.node: [INFO] private-help.maas: Commissioning started
Nov 26 11:43:31 os1 maas.lease_upload_service: [INFO] Uploading 1 DHCP leases to region controller.
Nov 26 11:45:40 os1 maas.node: [INFO] private-help.maas: Stopping monitor: node-f5742194-7557-11e4-9333-00055d80d51c
Nov 26 11:46:02 os1 maas.node: [INFO] private-help.maas allocated to user georg
Nov 26 11:46:02 os1 maas.node: [INFO] private-help.maas: Starting monitor: {u'deadline': datetime.datetime(2014, 11, 26, 11, 26, 2, 592452, tzinfo=<twisted.protocols.amp._FixedOffsetTZInfo object at 0x7f01e77b26d0>), u'id': u'node-f5742194-7557-11e4-9333-00055d80d51c', u'context': {u'node_status': 9, u'timeout': 2400.0}}
Nov 26 11:46:02 os1 maas.dns: [INFO] Generating new DNS zone file for maas
Nov 26 11:46:02 os1 maas.calls: [INFO] Starting task 'write_dns_zone_config' with args: () {'zones': [<provisioningserver.dns.zoneconfig.DNSForwardZoneConfig object at 0x7f01c1c18f10>], 'callback': provisioningserver.tasks.rndc_command([u'reload', u'maas'])}
Nov 26 11:46:02 os1 maas.calls: [INFO] Starting task 'rndc_command' with args: ([u'reload', u'maas'],) {}
Nov 26 11:46:02 os1 maas.calls: [INFO] Finished task 'rndc_command' with args: ([u'reload', u'maas'],) {}
Nov 26 11:46:02 os1 maas.calls: [INFO] Finished task 'write_dns_zone_config' with args: () {'zones': [<provisioningserver.dns.zoneconfig.DNSForwardZoneConfig object at 0x7f01c1c18f10>], 'callback': provisioningserver.tasks.rndc_command([u'reload', u'maas'])}
Nov 26 11:46:02 os1 maas.dns: [INFO] Generating new DNS zone file for 6.168.192.in-addr.arpa
Nov 26 11:46:02 os1 maas.calls: [INFO] Starting task 'write_dns_zone_config' with args: () {'zones': [<provisioningserver.dns.zoneconfig.DNSReverseZoneConfig object at 0x7f01c0b82e50>], 'callback': provisioningserver.tasks.rndc_command([u'reload', u'6.168.192.in-addr.arpa'])}
Nov 26 11:46:02 os1 maas.calls: [INFO] Starting task 'rndc_command' with args: ([u'reload', u'6.168.192.in-addr.arpa'],) {}
Nov 26 11:46:02 os1 maas.calls: [INFO] Finished task 'rndc_command' with args: ([u'reload', u'6.168.192.in-addr.arpa'],) {}
Nov 26 11:46:02 os1 maas.calls: [INFO] Finished task 'write_dns_zone_config' with args: () {'zones': [<provisioningserver.dns.zoneconfig.DNSReverseZoneConfig object at 0x7f01c0b82e50>], 'callback': provisioningserver.tasks.rndc_command([u'reload', u'6.168.192.in-addr.arpa'])}
Nov 26 11:46:02 os1 maas.power: [INFO] Changing power state (on) of node: private-help.maas (node-f5742194-7557-11e4-9333-00055d80d51c)
Nov 26 11:46:31 os1 maas.power: [ERROR] private-help.maas: Failed to query power state: Unknown power_type 'ether_wake'.
Nov 26 11:46:31 os1 maas.lease_upload_service: [INFO] Uploading 2 DHCP leases to region controller.

2.

ii maas 1.7.0+bzr3299-0ubuntu1~trusty all MAAS server all-in-one metapackage
ii maas-cli 1.7.0+bzr3299-0ubuntu1~trusty all MAAS command line API tool
ii maas-cluster-controller 1.7.0+bzr3299-0ubuntu1~trusty all MAAS server cluster controller
ii maas-common 1.7.0+bzr3299-0ubuntu1~trusty all MAAS server common files
ii maas-dhcp 1.7.0+bzr3299-0ubuntu1~trusty all MAAS DHCP server
ii maas-dns 1.7.0+bzr3299-0ubuntu1~trusty all MAAS DNS server
ii maas-proxy 1.7.0+bzr3299-0ubuntu1~trusty all MAAS Caching Proxy
ii maas-region-controller 1.7.0+bzr3299-0ubuntu1~trusty all MAAS server complete region controller
ii maas-region-controller-min 1.7.0+bzr3299-0ubuntu1~trusty all MAAS Server minimum region controller
ii python-django-maas 1.7.0+bzr3299-0ubuntu1~trusty all MAAS server Django web framework
ii python-maas-client 1.7.0+bzr3299-0ubuntu1~trusty all MAAS python API client
ii python-maas-provisioningserver 1.7.0+bzr3299-0ubuntu1~trusty all MAAS server provisioning libraries

3. I configured two NICs:

* 192.168.6.2 (managed DNS and DHCP) - thats where all nodes connect
* 192.168.0.2 (unmanaged)

I can add nodes as long as I power them on by hand.
Aquiring works to but if I want to start the node by pressing the start button - then nothing happens.
If I run etherwake by hand it works. I would like to know whick command is actually run by maas in the background in ordter to power on the nods with wake-on-lan packets?

Related branches

Revision history for this message
Blake Rouse (blake-rouse) wrote :

That error:

[ERROR] impeccable-beam.maas: Failed to query power state: Unknown power_type 'ether_wake'.

Is saying that MAAS cannot query that power_type, this is because that power_type doesn't support that ability and never will as its not built into the protocol.

Changed in maas:
status: New → Invalid
Revision history for this message
Georg Steinbach (gs-t) wrote :

But MAAS offers wake_on_lan as power type? Powering on these machines on the console with etherwake works well.
So what's about querying the power status with wake-on-lan?

Seems I'm missing the bigger picture somewhere. How is this supposed to work with cheap hardware?

Regards

Georg

Revision history for this message
celeblung (luis-ehlen) wrote :

I have the same problem.
MAAS offers wake on lan as power type, so why then it throws an error?
and why is not supported? it works very well.

Regards
Luis

Revision history for this message
Tuan, Hoang-Trong (hoangtrongminhtuan) wrote :

I have the same problem, using "Wake-on-LAN". Any update so far?

Revision history for this message
Mike Hanby (flakrat) wrote :

So what's the work around for this? My compute node systems have WOL but don't have fancy BMC's. How do we get the compute nodes into a ready state if MAAS can't determine the power state via WOL?

Revision history for this message
Raphaël Badin (rvb) wrote :

> If I run etherwake by hand it works. I would like to know whick command is actually run by maas in the background in ordter to
> power on the nods with wake-on-lan packets?

MAAS uses `wakeonlan` first and then tries `etherwake` if `wakeonlan` is not present. (see /etc/maas/templates/power/ether_wake.template.)

summary: - Maas is unable to power on node with Power type "Wake-on-LAN"
+ MAAS tries to power query node with ether_wake power type
Revision history for this message
Raphaël Badin (rvb) wrote :

I took the liberty to rephrase the title of this bug: the real bug here is that MAAS was trying to power query an ether_wake Node and this can't be done. This has been fixed in revision 3284.

Changed in maas:
status: Invalid → Triaged
importance: Undecided → Low
assignee: nobody → Julian Edwards (julian-edwards)
status: Triaged → Fix Committed
Revision history for this message
Raphaël Badin (rvb) wrote :

That being said, powering up (and thus commissioning and deploying) an ether_wake node works as expected (I've used 1.7.1 rc5 from https://launchpad.net/~maas-maintainers/+archive/ubuntu/testing). The only catch is that, when you use ether_wake, you need to power down your nodes manually when you release them.

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

Remote bug watches

Bug watches keep track of this bug in other bug trackers.