[regression] euca_rootwrap fixes affected eucalyptus power management (powerwake)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Release Notes for Ubuntu |
Invalid
|
Undecided
|
Unassigned | ||
eucalyptus (Ubuntu) |
Fix Released
|
Wishlist
|
Dustin Kirkland | ||
Karmic |
Fix Released
|
Wishlist
|
Dustin Kirkland | ||
powernap (Ubuntu) |
Fix Released
|
High
|
Dustin Kirkland | ||
Karmic |
Fix Released
|
High
|
Dustin Kirkland |
Bug Description
cluster/handlers.c: euca_rootwrap rework did not whitelist powerwake; however, powerwake does *not* need root privs, drop euca_rootwrap wrapper.
===========
SRU Verification
This fix is bundled with a set of unrelated SRU fixes for Eucalyptus.
To test this:
1) From a working UEC cluster, ensure that you have availability on your nodes:
$ euca-describe-
2) Ensure that your nodes support:
a) one of [ pm-suspend | pm-hibernate | poweroff ]
b) and wake-on-lan (might need to check bios, sudo ethtool eth0)
3) Adjust your eucalyptus scheduling algorithm to POWERSAVE on the front end
$ sudo sed -i "s/^SCHEDPOLICY
4) Restart eucalyptus
$ sudo restart eucalyptus
5) Make sure there are no running instances in your cloud
6) Watch the output of the CC, which will note the status of each node, waiting for 300 seconds of inactivity before putting the node to sleep
$ tail -f /var/log/
...
[Tue Nov 3 14:39:09 2009][023511]
...
[Tue Nov 3 16:09:57 2009][017368]
...
7) After 300 seconds, you should see the node either suspend, hibernate, or poweroff, based on its capability
8) Once the node(s) are sleeping, run an instance. Eucalyptus should dynamically resume (powerwake) the node and deploy the new instance there.
$ euca-run-instances $EMI -k mykey -t c1.medium
Regression potential should be minimal, and restricted to Eucalyptus SCHEDPOLICY=
===========
Changed in powernap (Ubuntu Karmic): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Dustin Kirkland (kirkland) |
milestone: | none → ubuntu-9.10 |
tags: | removed: regression-potential |
Changed in eucalyptus (Ubuntu Karmic): | |
milestone: | ubuntu-9.10 → karmic-updates |
Changed in powernap (Ubuntu Karmic): | |
milestone: | ubuntu-9.10 → karmic-updates |
Changed in eucalyptus (Ubuntu Karmic): | |
importance: | High → Medium |
Changed in powernap (Ubuntu Karmic): | |
status: | In Progress → Fix Committed |
Changed in eucalyptus (Ubuntu Karmic): | |
status: | In Progress → Triaged |
Changed in eucalyptus (Ubuntu Karmic): | |
status: | Triaged → Fix Committed |
description: | updated |
description: | updated |
description: | updated |
tags: | added: uec |
tags: |
added: verification-done removed: verification-needed |
The fix is trivial.
Remove the euca_rootwrap wrapper around powerwake.
:-Dustin