Batch Actions -> Power On does not work unless power_address is manually populated

Bug #912476 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cobbler (Ubuntu)
Fix Released
Low
Andres Rodriguez

Bug Description

I have cobbler (via orchestra) running on a onieric system here.
If I click "Power On" as a "Batch Action" (from http://cobbler-host/cobbler_web/system/list)
then It thinks it worked, but nothing happened.

However, If I run the following, on the same system, then 'jimbo' wakes up fine:
$ sudo powerwake jimbo
INFO: Trying to wake host: [jimbo]
INFO: Sending magic packet to: [0019D16430F1]

The system 'jimbo' in cobbler does have MAC correctly populated as seen in attachment and here:
$ sudo cobbler system dumpvars --name jimbo
allow_duplicate_hostnames : 0
allow_duplicate_ips : 0
allow_duplicate_macs : 0
...
interfaces : {'eth0': {'dhcp_tag': '', 'subnet': '', 'ipv6_address': '', 'virt_bridge': 'virbr0', 'static_routes': [], 'ipv6_mtu': '', 'ipv6_static_routes': [], 'dns_name': '', 'mtu': '', 'bonding': '', 'static': False, 'bonding_opts': '', 'mac_address': '00:19:D1:64:30:F1', 'ipv6_secondaries': [], 'bonding_master': '', 'ip_address': '', 'ipv6_default_gateway': ''}}
...
mac_address_eth0 : 00:19:D1:64:30:F1

I believe this is because I have:
power_management_default_type : ether_wake
power_pass :
power_template_dir : /etc/cobbler/power
power_type : ether_wake
power_user :

I've modified /etc/cobbler/power/power_ether_wake.template to have:
set -x
{
if [ -x /sbin/ether-wake ]; then
   /sbin/ether-wake -i eth0 "$power_address"
elif [ -x /usr/bin/powerwake ]; then
   /usr/bin/powerwake "$power_address"
elif [ -x /usr/bin/wakeonlan ]; then
   /usr/bin/wakeonlan "$power_address"
elif [ -x /usr/sbin/etherwake ]; then
   /usr/sbin/etherwake "$power_address"
fi
} 2>/tmp/out.wake.err >/tmp/out.wake.out

And, I see in /tmp/out.wake.out:
  ERROR: Could not determine the MAC address of []
and out.wake.err:
+ [ -x /sbin/ether-wake ]
+ [ -x /usr/bin/powerwake ]
+ /usr/bin/powerwake

So it appears I could have fixed this by populating 'power_address' with the MAC that I want, but, It seems like it might make sense to somewhere populate "power_address" correctly based on MAC if ether_wake is set. Or, use some other mechanism here.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: cobbler 2.1.0+git20110602-0ubuntu26
ProcVersionSignature: Ubuntu 3.0.0-14.23-server 3.0.9
Uname: Linux 3.0.0-14-server x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Thu Jan 5 15:04:15 2012
InstallationMedia: Ubuntu-Server 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cobbler
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Scott Moser (smoser) wrote :
summary: - Batch Actions -> Power On does not work
+ Batch Actions -> Power On does not work unless power_address is manually
+ populated
Changed in cobbler (Ubuntu):
assignee: nobody → Andres Rodriguez (andreserl)
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cobbler - 2.2.2-0ubuntu19

---------------
cobbler (2.2.2-0ubuntu19) precise; urgency=low

  * Remove remaining Ubuntu branding (LP: #891977)
    - debian/logo-ubuntu.png: removed; cobbler-web.install: not install logo;
      debian/control: Remove Dep on ttf-ubuntu-font-family;
      cobbler-web.postinst: Do not create font symlinks.
  * debian/patches/65_ubuntu_disable_pxe_snippet.patch: Add disable PXE
    snippet. (LP: #914017)
  * 66_use_eth0_mac_for_poweron_etherwake.patch: Use MAC of eth0 if
    power_address has not being defined. (LP: #912476)
 -- Andres Rodriguez <email address hidden> Wed, 01 Feb 2012 12:58:43 -0500

Changed in cobbler (Ubuntu):
status: Confirmed → 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.