Batch Actions -> Power On does not work unless power_address is manually populated
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://
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
allow_duplicate_ips : 0
allow_duplicate
...
interfaces : {'eth0': {'dhcp_tag': '', 'subnet': '', 'ipv6_address': '', 'virt_bridge': 'virbr0', 'static_routes': [], 'ipv6_mtu': '', 'ipv6_static_
...
mac_address_eth0 : 00:19:D1:64:30:F1
I believe this is because I have:
power_managemen
power_pass :
power_template_dir : /etc/cobbler/power
power_type : ether_wake
power_user :
I've modified /etc/cobbler/
set -x
{
if [ -x /sbin/ether-wake ]; then
/sbin/ether-wake -i eth0 "$power_address"
elif [ -x /usr/bin/powerwake ]; then
/usr/
elif [ -x /usr/bin/wakeonlan ]; then
/usr/
elif [ -x /usr/sbin/etherwake ]; then
/usr/
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+git201106
ProcVersionSign
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)
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cobbler
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
Changed in cobbler (Ubuntu): | |
assignee: | nobody → Andres Rodriguez (andreserl) |
status: | New → Confirmed |
importance: | Undecided → Low |
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) logo-ubuntu. png: removed; cobbler- web.install: not install logo; control: Remove Dep on ttf-ubuntu- font-family; web.postinst: Do not create font symlinks. patches/ 65_ubuntu_ disable_ pxe_snippet. patch: Add disable PXE eth0_mac_ for_poweron_ etherwake. patch: Use MAC of eth0 if
- debian/
debian/
cobbler-
* debian/
snippet. (LP: #914017)
* 66_use_
power_address has not being defined. (LP: #912476)
-- Andres Rodriguez <email address hidden> Wed, 01 Feb 2012 12:58:43 -0500