WOL is sent over a wrong NIC
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | MAAS |
Low
|
Unassigned | ||
Bug Description
Based on this questions: http://
The cluster controller has eth1 (public network - set and unmanaged) and p1p1 (maas node network - set as managed dhcp/dns).
When I commission a node or start a node the WOL is sent over the eth1 not the p1p1 (found using `sudo tcpdump -i eth1 port 9 -vvvv -s0 -n`).
stack@helios:~$ dpkg -l '*maas*'|cat
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii maas 1.5.2+bzr2282-
ii maas-cli 1.5.2+bzr2282-
ii maas-cluster-
ii maas-common 1.5.2+bzr2282-
ii maas-dhcp 1.5.2+bzr2282-
ii maas-dns 1.5.2+bzr2282-
ii maas-region-
ii maas-region-
ii python-django-maas 1.5.2+bzr2282-
ii python-maas-client 1.5.2+bzr2282-
ii python-
| Julian Edwards (julian-edwards) wrote : | #1 |
| Filip Krikava (krikava) wrote : | #2 |
| description: | updated |
| Changed in maas: | |
| status: | New → Triaged |
| importance: | Undecided → Low |
| tags: | added: power |
| Filip Krikava (krikava) wrote : | #3 |
If you could point me where to look, I'd happily help. For us this is a blocking issue.
| Julian Edwards (julian-edwards) wrote : | #4 |
You will need to pass the IP of the cluster interface into the power template and use it as the -i arg on the wol command.
The parameters are constructed in src/maasserver/
Thanks!
| Raymond Tau (raymondtau) wrote : | #5 |
Follow the advice of comment #4, I've tried to make this work by applying this change to the code which belong to the package maas version 1.6.0+bzr2545-
| Filip Krikava (krikava) wrote : | #6 |
Thanks Raymond for the patch. I tried it, but I have a mixed results. It seems that it does not work always. For example if in the web ui I click add node, fill in MAC address and set power type to WOL it won't do anything.
I don't know the internals of MAAS, but it seems that the problem is that it does not know the IP address of the node since it has not yet been allocated (I might be wrong).
In the apache error.log I see the following:
[Wed Oct 29 16:19:43.494623 2014] [:error] [pid 4121:tid 140717661169408] [provisioningse
No ip_address entry.
Wouldn't be a better strategy to get a list of all cluster managed interfaces and try them all?
| Filip Krikava (krikava) wrote : | #7 |
One more thing, in the issue_power_action method in provisioningser
| Changed in maas: | |
| milestone: | none → next |
| Changed in maas: | |
| status: | Triaged → Won't Fix |


The askubuntu link is dead, can you supply another please?