cloud-init does not mount ephemeral0 on /mnt in nova
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Unassigned | ||
cloud-init |
Invalid
|
Undecided
|
Unassigned | ||
cloud-init (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
Oneiric |
Invalid
|
Medium
|
Unassigned | ||
nova (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Oneiric |
Fix Released
|
High
|
Unassigned |
Bug Description
related bug:
bug 828357: request to add a label to the filesystem for ephemeral devices
bug 827598: ephemeral device does not have a filesystem
$ python -c 'import boto.utils; print boto.utils.
{'ami': 'sda1', 'root': '/dev/sda1', 'ephemeral0': 'sda2', 'swap': 'sda3'}
$ cat /proc/partitions
$ cat /proc/partitions
major minor #blocks name
253 0 10485760 vda
253 16 83886080 vdb
So there is an issue here, at very least the MD should say "/dev/sda" and "/dev/sdb" would be a better guess. Additionally, there is no third disk (as reported in 'swap') present at all.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: cloud-init 0.6.1-0ubuntu14
ProcVersionSign
Uname: Linux 3.0.0-8-virtual i686
Architecture: i386
Date: Tue Aug 16 19:17:00 2011
Ec2AMI: ami-00000011
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: <nova.db.
Ec2Kernel: aki-00000010
Ec2Ramdisk: unavailable
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Brian Lamar (community): Approve
- Vish Ishaya (community): Approve
-
Diff: 240 lines (+137/-5)6 files modifiednova/api/ec2/cloud.py (+24/-2)
nova/db/sqlalchemy/migrate_repo/versions/046_add_instance_swap.py (+48/-0)
nova/db/sqlalchemy/models.py (+2/-0)
nova/tests/test_cloud.py (+3/-1)
nova/virt/disk.py (+41/-0)
nova/virt/libvirt/connection.py (+19/-2)
- OpenStack release team: Pending requested
-
Diff: 240 lines (+137/-5)6 files modifiednova/api/ec2/cloud.py (+24/-2)
nova/db/sqlalchemy/migrate_repo/versions/046_add_instance_swap.py (+48/-0)
nova/db/sqlalchemy/models.py (+2/-0)
nova/tests/test_cloud.py (+3/-1)
nova/virt/disk.py (+41/-0)
nova/virt/libvirt/connection.py (+19/-2)
Changed in cloud-init (Ubuntu): | |
importance: | Undecided → High |
Changed in nova: | |
importance: | Undecided → Medium |
description: | updated |
Changed in nova (Ubuntu Oneiric): | |
importance: | Undecided → Medium |
status: | New → Triaged |
description: | updated |
Changed in nova (Ubuntu Oneiric): | |
importance: | Medium → High |
tags: | added: server-o-rs |
Changed in nova: | |
status: | Confirmed → Fix Committed |
tags: | added: rls-mgr-o-tracking |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova (Ubuntu): | |
milestone: | none → ubuntu-11.10 |
Changed in nova (Ubuntu Oneiric): | |
status: | Triaged → Fix Released |
So far nova lied. It is fixed by nova revision of 1400 in the repository.
Here is the example
ubuntu@ubuntu:~$ cat /proc/partitions
major minor #blocks name
252 0 10485760 vda
252 16 20971520 vdb
252 32 1048576 vdc
ubuntu@ubuntu:~$ python -c 'import boto.utils; print boto.utils. get_instance_ metadata( )["block- device- mapping" ]'
{'ami': 'vda', 'root': '/dev/vda', 'ephemeral0': '/dev/vdd'}