Bug #1364
teuthology: kernel task won't downgrade
| Status: | Closed | Start date: | 08/05/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Tommi Virtanen | % Done: | 0% | |
| Category: | qa | Spent time: | - | |
| Target version: | v0.34 | |||
| Source: | Severity: | |||
| Backport: | Reviewed: | |||
| Tags: |
Description
update-grub sorts kernels in descending order, so it will always boot the first one. Unless you put the default=N in the /etc/default/grub, in which case it will boot the Nth kernel.
The kernel task just assumes the most recently installed kernel will be the one.
It should probably loop and uninstall any kernels newer than the one it wants.
History
#1 Updated by Sage Weil almost 2 years ago
- Target version changed from v0.33 to v0.34
#2 Updated by Sage Weil almost 2 years ago
- Position set to 8
#3 Updated by Sage Weil almost 2 years ago
- Story points set to 3
- Position deleted (
32) - Position set to 32
#4 Updated by Sage Weil almost 2 years ago
- Position deleted (
32) - Position set to 30
#5 Updated by Sage Weil almost 2 years ago
- Assignee set to Tommi Virtanen
#6 Updated by Tommi Virtanen almost 2 years ago
- Status changed from New to Closed
commit 7fd798a3474a7c453bba97c78fd3080687718386
Author: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Date: 2011-08-10 13:40:00 -0700
Configure grub to default to the right kernel, not the greatest installed one.
This is sticky; that is, even if you install other kernels (manually/via fab/etc),
grub will keep booting up the one that was last enabled via teuthology config.
Use teuthology to switch kernels and it'll just work.
If the kernel the grub default points to is removed, grub will fall back to
booting the kernel with the greatest version number.
Closes: http://tracker.newdream.net/issues/1364