/etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Vish Ishaya | ||
cloud-init |
Invalid
|
Undecided
|
Unassigned | ||
cloud-init (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
On OpenStack using a flavor with no ephemeral storage, but with swap space, cloud-init creates an invalid /etc/fstab
Given this favor (Note: "Storage: 0GB" and "Swap: 2048MB"):
> p1.small: Memory: 3072MB, VCPUS: 4, Storage: 0GB, FlavorID: 15, Swap: 2048MB, RXTX Quota: 0GB, RXTX Cap: 0MB
The fstab is generated as:
> # /etc/fstab: static file system information.
> # <file system> <mount point> <type> <options> <dump> <pass>
> proc /proc proc nodev,noexec,nosuid 0 0
> LABEL=cloudimg-
> /dev/vdc none swap sw,comment=
While the devices are (/dev/vdb is the swap):
> # ls /dev/vd*
> /dev/vda /dev/vda1 /dev/vdb
Changed in cloud-init (Ubuntu): | |
importance: | Undecided → Medium |
Changed in cloud-init (Ubuntu): | |
status: | New → Invalid |
Changed in cloud-init: | |
status: | New → Invalid |
Changed in nova: | |
assignee: | nobody → Vish Ishaya (vishvananda) |
status: | New → In Progress |
importance: | Undecided → Low |
Changed in nova: | |
milestone: | none → essex-4 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | essex-4 → 2012.1 |
Also, This is on the Oneiric cloud-image.