wake on lan task fail

Bug #992522 reported by Nils Domrose
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
maas-provision (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Wake on LAN Tasks fail due to missing cobblerd apparmor rule for powerwake:

lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04

Tue May 1 12:13:49 2012 - INFO | running: ['/bin/sh', '-c', u'if [ -x /sbin/ether-wake ]; then\n\t/sbin/ether-wake -i eth0 "08:00:27:79:15:b1"\nelif [ -x /usr/bin/powerwake ]; then\n\t/usr/bin/powerwake "08:00:27:79:15:b1"\nelif [ -x /usr/bin/wakeonlan ]; then\n\t/usr/bin/wakeonlan "08:00:27:79:15:b1"\nelif [ -x /usr/sbin/etherwake ]; then\n\t/usr/sbin/etherwake "08:00:27:79:15:b1"\nfi']
Tue May 1 12:13:49 2012 - INFO | received on stdout:
Tue May 1 12:13:49 2012 - DEBUG | received on stderr: /bin/sh: 4: /usr/bin/powerwake: Permission denied

Error reported in syslog:
May 1 12:13:57 maas kernel: [ 5692.851952] type=1400 audit(1335867237.867:35): apparmor="DENIED" operation="exec" parent=63
44 profile="/usr/bin/cobblerd" name="/usr/bin/powerwake" pid=6345 comm="sh" requested_mask="x" denied_mask="x" fsuid=0 ouid=
0

Please add the required permission
i.e. /usr/bin/powerwake rix,

to:

/etc/apparmor.d/usr.bin.cobblerd

Changed in maas-provision (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Leandro Reox (leandro-reox) wrote :

If i manually add the mac addreses on the MAAS dashboard the installation works ok

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.