[karmic] parted can't create swap partitions in vm images

Bug #399428 reported by Philip Muškovac
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
parted (Ubuntu)
Fix Released
Undecided
Colin Watson
Karmic
Fix Released
Undecided
Colin Watson
vm-builder (Ubuntu)
Fix Released
High
Soren Hansen
Karmic
Fix Released
High
Soren Hansen

Bug Description

Binary package hint: parted

In karmic I can't create any partitions of type 'linux-swap' in vm images any more which renders ubuntu-vm-builder useless.

2009-07-14 20:34:14,257 INFO : parted: invalid token: linux-swap
2009-07-14 20:34:14,259 INFO : Cleaning up
Traceback (most recent call last):
  File "/usr/bin/ubuntu-vm-builder", line 28, in <module>
    VMBuilder.run()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/__init__.py", line 65, in run
    frontend.run()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/plugins/cli/__init__.py", line 68, in run
    vm.create()
  File "/usr/lib/python2.6/dist-packages/VMBuilder/vm.py", line 495, in create
    raise e
VMBuilder.exception.VMBuilderException: Process (['parted', '--script', '--', '/tmp/vmbuilderv9lXXv/disk0.img', 'mkpart', 'primary', 'linux-swap', '4096', '5119']) returned 1. stdout: Error: Expecting a file system type.
, stderr: parted: invalid token: linux-swap

Trying that from command line myself parted doesn't accept linux-swap as a fs anymore.

ProblemType: Bug
Architecture: amd64
Date: Tue Jul 14 20:36:29 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: parted 1.8.8.git.2009.06.03-1ubuntu2
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-2.17-generic
SourcePackage: parted
Uname: Linux 2.6.31-2-generic x86_64

Revision history for this message
Philip Muškovac (yofel) wrote :
Philip Muškovac (yofel)
summary: - [karmic] parted can't create swap patitions in vm images
+ [karmic] parted can't create swap partitions in vm images
Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 399428] [NEW] [karmic] parted can't create swap patitions in vm images

Try "linux-swap(new)". I got a patch accepted upstream recently to
correct this.

Revision history for this message
Dominic Evans (oldmanuk) wrote :

confirmed the linux-swap(new) workaround

assigning as also effects python-vm-builder as it should workaround this problem until the upstream parted fix comes down

@cjwatson do you have an upstream bug tracker you can link to?

Changed in parted (Ubuntu):
status: New → Confirmed
Changed in vm-builder (Ubuntu):
status: New → Confirmed
Revision history for this message
Dominic Evans (oldmanuk) wrote :

have added a fix for vm-builder as part of debdiff submitted for sponsorship on bug 403216

Changed in vm-builder (Ubuntu):
status: Confirmed → In Progress
Changed in vm-builder (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-9.10-beta
Thierry Carrez (ttx)
Changed in vm-builder (Ubuntu Karmic):
assignee: nobody → Soren Hansen (soren)
milestone: ubuntu-9.10-beta → none
status: In Progress → Triaged
Revision history for this message
Colin Watson (cjwatson) wrote :

I'm going to backport the parted change; sorry for the delay. Does the vm-builder task need to stay open, in light of this?

Colin Watson (cjwatson)
Changed in parted (Ubuntu Karmic):
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package parted - 1.8.8.git.2009.06.03-1ubuntu5

---------------
parted (1.8.8.git.2009.06.03-1ubuntu5) karmic; urgency=low

  * rationalise-linux-swap.dpatch: Backport upstream change to rationalise
    linux-swap fs names, and add a "linux-swap" alias (LP: #399428).

 -- Colin Watson <email address hidden> Mon, 05 Oct 2009 10:55:31 +0100

Changed in parted (Ubuntu Karmic):
status: Confirmed → Fix Released
Revision history for this message
Soren Hansen (soren) wrote :

No, we should be fine now.

Changed in vm-builder (Ubuntu Karmic):
status: Triaged → Fix Released
Revision history for this message
rowez (info-rowez) wrote :

Trying this on Jaunty: sudo vmbuilder kvm ubuntu --suite karmic needs a upgrade of python-vm-builder to 0.11.3-0ubuntu1. After upgrade with synaptic, it runs with sudo vmbuilder kvm ubuntu but give me an error : parted: invalid token: linux-swap(new)

Upgrading Python to 2.6.4~rc2-0ubuntu1 don't fix the error.

After upgrade Python, do a reinstallation to add missing packages from karmic.

Same error as in Bug description.

Any idea?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.