[Bug 611137] [NEW] cc_mounts may need to translate device names for xvda or virtio

Scott Moser smoser at canonical.com
Thu Jul 29 04:14:12 BST 2010


Public bug reported:

As shown in cloud-config syntax at [1], cloud-init allows the user to a name that will appear in the metadata service instead of a device name.  For example, the user can specify:
  - [ ephemeral0, /mnt, auto, "defaults,noexec" ]

If the metadata service contains something like:
 'block-device-mapping': {'ami': 'sda1',
                          'ephemeral0': 'sda2',
                          'root': '/dev/sda1',
                          'swap': 'sda3'},

Then an entry in /etc/fstab will be added for 'sda2'.

There are 2 possibilities that the string 'sda2' will be wrong.
a.) on ec2, we're using a -virtual kernel, or some kernel without a patch to make xen block devices show up as 'sdX' rather than 'xvdX'.  Currently our -ec2 kernels have xen block devices as sdX, but this may change.
b.) on eucalyptus, with virtio as root device and/or ebs.  In this case, the metadata service will still likely have 'sdX' but the kernel devices would be named vdX.

In either case, some trickery will have to be done to decide to rename.

Really, this is just a general problem with the metadata service
provided by the hypervisor believing it knows certain things about the
OS that is running in it.

--
[1] http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/annotate/head%3A/doc/examples/cloud-config.txt

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: eucalyptus-nc 2.0~bzr1211-0ubuntu1
ProcVersionSignature: User Name 2.6.32-305.9-ec2 2.6.32.11+drm33.2
Uname: Linux 2.6.32-305-ec2 i686
Architecture: i386
Date: Thu Jul 29 03:06:03 2010
Ec2AMI: ami-e930db80
Ec2AMIManifest: ubuntu-images-testing-us/ubuntu-maverick-daily-i386-server-20100727.manifest.xml
Ec2AvailabilityZone: us-east-1b
Ec2InstanceType: m1.small
Ec2Kernel: aki-407d9529
Ec2Ramdisk: unavailable
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: eucalyptus

** Affects: cloud-init (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug ec2-images i386 maverick

-- 
cc_mounts may need to translate device names for xvda or virtio
https://bugs.launchpad.net/bugs/611137
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to eucalyptus in ubuntu.



More information about the Ubuntu-server-bugs mailing list