[Bug 912066] Re: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
** Changed in: nova Milestone: essex-4 => 2012.1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912066 Title: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/912066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 912066] Re: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
** Changed in: nova Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912066 Title: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/912066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 912066] Re: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
Reviewed: https://review.openstack.org/3726 Committed: http://github.com/openstack/nova/commit/8f7bc2ee6c14fe6dc16d27353869a7a35f4931f0 Submitter: Jenkins Branch:master commit 8f7bc2ee6c14fe6dc16d27353869a7a35f4931f0 Author: Vishvananda Ishaya Date: Thu Feb 2 16:35:49 2012 -0800 Make swap default to vdb if there is no ephemeral * Fixes bug 912066 Change-Id: Ie463a8953fd0ac07a9def0dd86379d06d9259bc5 ** Changed in: nova Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912066 Title: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/912066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 912066] Re: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
** Changed in: nova Milestone: None => essex-4 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912066 Title: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/912066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 912066] Re: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
** Changed in: nova Assignee: (unassigned) => Vish Ishaya (vishvananda) ** Changed in: nova Status: New => In Progress ** Changed in: nova Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912066 Title: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/912066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 912066] Re: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
** Changed in: cloud-init (Ubuntu) Status: New => Invalid ** Changed in: cloud-init Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912066 Title: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/912066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 912066] Re: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
I should mention, I believe the fix is for nova to ask for the device to be attached at /dev/vdb when there is no ephemeral disk. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912066 Title: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/912066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 912066] Re: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
This is a nova bug all right, supplies the incorrect device name in the ec2 metadata. Nova supplies the following: > 'block-device-mapping': {'ami': 'vda', > 'root': '/dev/vda', > 'swap': '/dev/vdc'}, When it should supply this: > 'block-device-mapping': {'ami': 'vda', > 'root': '/dev/vda', > 'swap': '/dev/vdb'}, It seems to nova asks libvirt to attach the swap device at /dev/vdc, but since libvirt+kvm simply uses the supplied device name as an ordering hint, the device is actually attached at /dev/vdb ** Changed in: nova Status: Incomplete => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912066 Title: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/912066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 912066] Re: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
So...I'm going to depend on you two to help me with this. Did you determine whether this is a bug we need to fix in Nova, or is it elsewhere? ** Changed in: nova Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912066 Title: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/912066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 912066] Re: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
> $ sudo blkid /dev/vdb > /dev/vdb: UUID="3447f2ad-9c81-4b95-ab3d-d5ff7aacbfa6" TYPE="swap" -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912066 Title: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/912066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 912066] Re: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
Libvirt XML: http://paste.ubuntu.com/807484/ Instance metadata: http://paste.ubuntu.com/807485/ > $ ls /dev/vd* > /dev/vda /dev/vda1 /dev/vdb > $ cat /etc/fstab > # /etc/fstab: static file system information. > # > > proc/proc proc > nodev,noexec,nosuid 0 0 > LABEL=cloudimg-rootfs / ext4defaults0 > 0 > /dev/vdcnoneswapsw,comment=cloudconfig 0 0 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912066 Title: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/912066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 912066] Re: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
** Also affects: nova Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912066 Title: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/912066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 912066] Re: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
** Changed in: cloud-init (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912066 Title: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/912066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 912066] Re: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
Kiall, could you collect the ec2 metadata from inside such an instance? python -c 'import boto.utils, pprint; pprint.pprint(boto.utils.get_instance_metadata())' Basically, i suspect that the metadata is stating that swap is at /dev/vdc, so cloud-init is trusting it. if that is the case, we either have to : a.) go searching for swap b.) fix nova metadata service and 'b' seems like the right fix, as the MD is clearly wrong. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912066 Title: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/912066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 912066] Re: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present.
Also, This is on the Oneiric cloud-image. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/912066 Title: /etc/fstab contains incorrect device for swap partition when no ephemeral disk present. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/912066/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs