[Bug 1336855] Re: [SRU] non-interactive grub updates for 12.04 break on AWS

Ben Howard ben.howard at canonical.com
Thu Sep 18 22:22:51 UTC 2014


** Description changed:

- Cloud-init, as part of the first boot configures grub-pc to set the
- device that grub should install to. However, in the case of HVM
+ [SRU JUSTIFICATION]
+ 
+ [IMPACT] Cloud-init, as part of the first boot configures grub-pc to set
+ the device that grub should install to. However, in the case of HVM
  instances, /dev/xvda and /dev/xvda1 are not considered (only sda, sda1,
  vda and vda1). Since AWS HVM instances and Xen use /dev/xvdX devices,
  this means that any Grub update with an ABI change will break the
  instances, rendering them unable to boot.
+ 
+ [FIX] Cloud-init has been patched to understand /dev/xvda devices and
+ set the correct grub-pc/install_device. Further, cloud-init's postinst
+ has been patched to fix people who might be affected by this bug.
+ 
+ [Test Case 1]
+ 1. Boot HVM instance store AMI ami-90b156f8 (us-east-1)
+ 2. Update grub
+ 3. Update cloud-init from -proposed
+ 4. Reboot instance
+ 5. instance should come back up
+ 
+ [Test Case 2]
+ 1. Boot HVM instance store AMI ami-90b156f8 (us-east-1)
+ 2. run "cloud-init-cfg grub_dpkg  --freqenucy always"
+ 3. run "debconf-show grub-pc", confirm that  grub-pc/install_devices is /dev/xvda
+ 4. update grub
+ 5. Reboot
+ 6. instance should come back up
  
  
  ----ORIGINAL report----
  
  It looks like a recent update to grub or the kernel on 12.04 is breaking
  unattended installs on EC2 for HVM instances.
  
  You can reproduce the problem by doing the following:
  
  region: us-east-1
  virtualization type: HVM (e.g. r3.xlarge)
  AMI ID: ami-7a916212
  
  dpkg --configure –a
  apt-get update
  apt-get install -y ruby ruby-dev libicu-dev libssl-dev libxslt-dev
  libxml2-dev monit
  apt-get dist-upgrade –y

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1336855

Title:
  [SRU] non-interactive grub updates for 12.04 break on AWS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1336855/+subscriptions



More information about the Ubuntu-server-bugs mailing list