Comment 6 for bug 1035279

Revision history for this message
Scott Moser (smoser) wrote : Re: interactive access to instance lost after reboot followed by euca-reboot-instances

Hi Louis,
  I actually hit this bug on an openstack instance and it occurred to me what was happening. Its a fairly severe bug in our images, and I think it would be good to get the fix back to 12.04 at a minimum.

The issue occurs when the following sequence of events happen
 * reboot issued
 * system cleanly shuts down
 * bios comes up, loads grub
 * grub to do the 5 second countdown (see GRUB_TIMEOUT in
   /etc/default/grub. The build scripts at [1] set this to 0 in quantal)
 * grub writes that it started the kernel load to the grub environment
   file /boot/grub/grubenv
 * kernel starts running, and boot occurs
 * HARD REBOOT HERE
 * /etc/init.d/grub-common marks a "clean boot"
   (this is run at S99 in via rc.sysvinit, very late in boot)

This bug 872244 is fixed in the cloud images in quantal.
Search for GRUB_RECORDFAIL_TIMEOUT in [1].
Also note, that this variable was added to grub at [2].

[1] http://bazaar.launchpad.net/~ubuntu-on-ec2/vmbuilder/automated-ec2-builds/view/head:/vmbuilder-cloudimg-fixes
[2] https://code.launchpad.net/~utlemming/ubuntu/quantal/grub2/param-recordfail-timeout/+merge/107243