ec2 instance fails to boot if registered without ramdisk

Bug #510130 reported by Scott Moser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-ec2 (Ubuntu)
Fix Released
High
John Johansen
Lucid
Fix Released
High
John Johansen
mountall (Ubuntu)
Fix Released
Medium
Unassigned
Lucid
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: upstart

bug 503212 was fixed, so I re-enabled ramdiskless images in ec2 for

ami-7d799414 ubuntu-images-testing-us/ubuntu-lucid-daily-i386-server-20100120.1.manifest.xml

Attempts to boot the instance fail.

Some hints in the console might be:
mountall: Event failed
mountall: Event failed

I'll have to debug this further, but wanted to open a bug to track it.

ProblemType: Bug
Architecture: i386
Date: Wed Jan 20 14:34:24 2010
DistroRelease: Ubuntu 10.04
Ec2AMI: ami-1b7d9072
Ec2AMIManifest: ubuntu-images-testing-us/ubuntu-lucid-daily-i386-server-20100120.manifest.xml
Ec2AvailabilityZone: us-east-1d
Ec2InstanceType: m1.small
Ec2Kernel: aki-60cb2609
Ec2Ramdisk: ari-537d903a
Package: upstart 0.6.3-11build1
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: User Name 2.6.32-301.4-ec2
SourcePackage: upstart
Tags: lucid ec2-images
Uname: Linux 2.6.32-301-ec2 i686

Related branches

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

heres a bootlog with a debug initramfs. The debug initramfs attempted to make the world look like there was no initramfs before invoking /sbin/init. It did the following:

a. instead of moving /proc and /sys to /rootmnt, it unmounted them
b. invoked init with '--verbose'
c. rewrote the mountall job so it said '--debug'
d. umount ${rootmnt}/dev

'd' seems to be problematic.

I noticed that the uec kernels have '/dev/ mounted as a tmpfs by the kernel even without ramdisk, and ec2 kernel does not.
The UEC (-virtual) kernels also have a message like:
  devtmpfs: initialized

which is not present in this boot log.

Revision history for this message
Scott Moser (smoser) wrote :

I'm not certain its related just yet, but ec2 kernel does not not have devtmpfs enabled:

$ grep CONFIG_DEVTMPFS /boot/config-2.6.32-301-ec2
# CONFIG_DEVTMPFS is not set

Revision history for this message
Scott Moser (smoser) wrote :

moving this to linux-ec2 package, and assigning to jjohansen as it seems it might be related to CONFIG_DEVTMPFS

affects: upstart (Ubuntu) → linux-ec2 (Ubuntu)
Changed in linux-ec2 (Ubuntu):
assignee: nobody → John Johansen (jjohansen)
importance: Undecided → High
Revision history for this message
Scott Moser (smoser) wrote :

Opening this also against mountall to try to get an answer to the following question:
Is an upstart and/or mountall dependency on CONFIG_DEVTMPFS a bug? or is that simply a requirement for lucid kernels?

Revision history for this message
Scott Moser (smoser) wrote :

see bug 509841 comment 19 for another report that indeed DEVTMPFS is required.

Thierry Carrez (ttx)
Changed in linux-ec2 (Ubuntu Lucid):
milestone: none → lucid-alpha-3
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-ec2 - 2.6.32-302.6

---------------
linux-ec2 (2.6.32-302.6) lucid; urgency=low

  [ John Johansen ]

  * rebase to Ubuntu-2.6.32-11.15
  * import raw xen patchset
  * import series file for the xen patchset
  * rebase to Ubuntu-2.6.32-12.16
  * [Config] update ec2 configs to make them closer to -server flavor
    - LP: #510130
 -- Andy Whitcroft <email address hidden> Sat, 06 Feb 2010 18:04:10 +0000

Changed in linux-ec2 (Ubuntu Lucid):
status: Confirmed → Fix Released
Revision history for this message
Scott Moser (smoser) wrote :

Verified that ec2 images boot now without ramdisk. Builds ubuntu-lucid-daily-i386-server-20100210.manifest.xml and later should have no ramdisk associated with them. Woohoo!

I booted and ssh'ed to this instance:
RESERVATION r-3a0c7952 950047163771 default
INSTANCE i-ef3adf84 ami-1fdb3776 terminated ec2-keypair.us-east-1 0 m1.small 2010-02-10T05:22:31+0000us-east-1c aki-3fdb3756 monitoring-disabled instance-store

Revision history for this message
Scott Moser (smoser) wrote :

The mountall changes necessary to boot without CONFIG_DEVTMPFS were commited and released under bug 513919

Changed in mountall (Ubuntu Lucid):
importance: Undecided → Medium
status: New → 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.