cloud-init output does not get to console when booted with pv-grub and ramdisk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
High
|
Scott Moser | ||
Maverick |
Fix Released
|
High
|
Scott Moser | ||
linux (Ubuntu) |
Invalid
|
Undecided
|
John Johansen | ||
Maverick |
Invalid
|
Undecided
|
John Johansen | ||
plymouth (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Maverick |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: cloud-init
cloud-init is run from an upstart job like:
| start on (mounted MOUNTPOINT=/ and net-device-up IFACE=eth0)
| task
| console output
| exec /usr/bin/cloud-init start
Recently, we've switched to using grub as the loader [1], for the blueprint [2].
That change actually changed 3 things:
a.) used grub as the loader
b.) started using ramdisks again (and booting with root=LABEL=
c.) kernel command line changed from "root=/dev/sda1 ro 4" to "root=LABEL=
'b' and 'c' are because the kernel installed creates a ramdisk and update-grub writes the ramdisk stanza for grub to read.
One of these changes has caused output from cloud-init to not get to the console. (output is seen/collected with ec2-get-
cloud-init has code like:
msg = "cloud-init running: %s. up %s seconds" % (now, uptime)
sys.
sys.
to report on the console how long it took to get to this point in the boot cycle. After the change above, it no longer is visible.
I've verified that :
- ec2-run-instances ami-80e10ae9 --kernel aki-078e676e
messages are seen
- ec2-run-instances ami-80e10ae9
messages are not.
aki-078e676e ubuntu-
ami-80e10ae9 ubuntu-
So, it definitely was either using a ramdisk or using grub as the loader.
Other notable information,
- output of cloud-config and cloud-run-
- both cloud-config and cloud-run-
- cloud-config runs much later in boot: start on (filesystem and started rsyslogd)
I'm trying to determine which of the changes caused this regression.
--
[1] http://
[2] https:/
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: cloud-init 0.5.12-0ubuntu7
ProcVersionSign
Uname: Linux 2.6.32-305-ec2 i686
Architecture: i386
Date: Fri Jul 16 16:27:28 2010
Ec2AMI: ami-80e10ae9
Ec2AMIManifest: ubuntu-
Ec2Availability
Ec2InstanceType: m1.small
Ec2Kernel: aki-407d9529
Ec2Ramdisk: unavailable
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cloud-init
Related branches
summary: |
- cloud-init output does not get to console when booted with pv-grub + cloud-init output does not get to console when booted with pv-grub and + ramdisk |
tags: | added: iso-testing |
Changed in linux-ec2 (Ubuntu Maverick): | |
assignee: | nobody → John Johansen (jjohansen) |
tags: | added: server-mro |
Changed in linux-ec2 (Ubuntu Maverick): | |
importance: | Undecided → High |
status: | New → Confirmed |
affects: | linux-ec2 (Ubuntu Maverick) → linux (Ubuntu Maverick) |
tags: | removed: server-mro |
I modified /boot/grub/menu.lst with the following stanzas to boot with and without a ramdisk with the same kernel cmdline.
| title Ubuntu maverick (development branch), kernel 2.6.32-305-ec2 2.6.32- 305-ec2 root=/dev/sda1 ro smnord 2.6.32- 305-ec2 root=/dev/sda1 ro smrd img-2.6. 32-305- ec2
| root (hd0)
| kernel /boot/vmlinuz-
| savedefault 0
|
| title Ubuntu maverick (development branch), kernel 2.6.32-305-ec2
| root (hd0)
| kernel /boot/vmlinuz-
| initrd /boot/initrd.
| savedefault 0
the 'smnord' or 'smrd' is just so i would definitively know that I had booted this stanza by looking at /proc/cmdline.
The result is that cloud-init output does get to the console with smnord and *does* get there with 'smrd'.
So, definitely, the use of ramdisk is stopping output from cloud-init from getting to the console.