[Bug 726790] Re: python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be created properly when lucid is the target

2012-05-23 Thread Louis Bouchard
This looks like a good candidate :
https://bugs.launchpad.net/vmbuilder/+bug/966439

I tested the script and adding --removepkg=cron does fix this behavior

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in Ubuntu.
https://bugs.launchpad.net/bugs/726790

Title:
  python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be
  created properly when lucid is the target

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/726790/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 726790] Re: python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be created properly when lucid is the target

2012-05-21 Thread Stephane Neveu
Hi all,

Same issue here, modifying dapper.py and util.py with '-l' as described
above by mattanja works fine for me.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in Ubuntu.
https://bugs.launchpad.net/bugs/726790

Title:
  python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be
  created properly when lucid is the target

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/726790/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 726790] Re: python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be created properly when lucid is the target

2012-05-12 Thread mattanja
I also had the problem building a lucid image but the added sync line
did not help.

I added the -l option (lazy unmount) to both umount commands in
plugins/ubuntu/dapper.py and util.py and it worked and the devices got
unmounted.

util.py (starting in line 194):
def clean_up_tmpfs(mount_point):
Unmounts a tmpfs storage under `mount_point`.
umount_cmd = [umount, -l, -t, tmpfs, mount_point ]
logging.info('Unmounting tmpfs from %s' % mount_point)
logging.debug('Executing: %s' % umount_cmd)
run_cmd(*umount_cmd)

plugins/ubuntu/dapper.py (line 116)
(I left the sync in there, guess it'd also work without the line)
def unmount_dev(self):
self.context.cancel_cleanup(self.unmount_dev)
run_cmd('sync') # added by me
run_cmd('umount', '-l', '%s/dev' % self.context.chroot_dir)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in Ubuntu.
https://bugs.launchpad.net/bugs/726790

Title:
  python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be
  created properly when lucid is the target

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/726790/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 726790] Re: python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be created properly when lucid is the target

2012-01-24 Thread RafaƂ Krzewski
I was having the same problem, while building maverick image. 
Taco's fix worked, thanks.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in Ubuntu.
https://bugs.launchpad.net/bugs/726790

Title:
  python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be
  created properly when lucid is the target

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/726790/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 726790] Re: python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be created properly when lucid is the target

2012-01-21 Thread Andy Balaam
I was having the same problem, and Taco's fix worked for me too.  Note I
needed to edit the dapper.py file even though I was creating a lucid VM.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in Ubuntu.
https://bugs.launchpad.net/bugs/726790

Title:
  python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be
  created properly when lucid is the target

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/726790/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 726790] Re: python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be created properly when lucid is the target

2012-01-15 Thread Alex Karasulu
I was having the same issue and after adding Taco's sync line in the
dapper.py file everything worked smoothy. Thanks Taco!

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in Ubuntu.
https://bugs.launchpad.net/bugs/726790

Title:
  python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be
  created properly when lucid is the target

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/726790/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 726790] Re: python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be created properly when lucid is the target

2011-12-26 Thread Taco
Using version 0.12.4+bzr469-0ubuntu1 I also get the exception that the
device is busy. When I insert a run_cmd('sync') just before the umount
command it works OK and building finishes without the exception.

So, the /usr/lib/python2.7/dist-
packages/VMBuilder/plugins/ubuntu/dapper.py file contains:

def unmount_dev(self):
self.context.cancel_cleanup(self.unmount_dev)
run_cmd('sync') # added by me
run_cmd('umount', '%s/dev' % self.context.chroot_dir)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in Ubuntu.
https://bugs.launchpad.net/bugs/726790

Title:
  python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be
  created properly when lucid is the target

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/726790/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 726790] Re: python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be created properly when lucid is the target

2011-11-02 Thread PhE
I have the same problem with vmbuilder 0.12.4.r466 (Ubuntu 11.10 amd64).

Here are the last lines of output for this command :

sudo vmbuilder kvm ubuntu --suite natty --flavour virtual --arch i386 -o
--iso=/home/isos/ubuntu-11.04-server-i386.iso --mirror
http://ftp.heanet.ie/pub/ubuntu --debug --libvirt qemu:///system --ip
192.168.0.100 --hostname myvm --user user --name user --pass default
--addpkg unattended-upgrades --addpkg acpid

2011-11-02 08:12:36,012 DEBUG   : Ign http://ftp.heanet.ie 
natty-updates/restricted Translation-en
2011-11-02 08:12:36,014 DEBUG   : Ign http://ftp.heanet.ie 
natty-updates/universe Translation-en
2011-11-02 08:12:36,289 DEBUG   : Reading package lists...
2011-11-02 08:12:36,291 DEBUG   : ['chroot', '/tmp/tmpDvu332', 'apt-get', 
'clean']
2011-11-02 08:12:36,313 DEBUG   : ['umount', '/tmp/tmpDvu332/proc']
2011-11-02 08:12:36,317 DEBUG   : ['umount', '/tmp/tmpDvu332/dev/pts']
2011-11-02 08:12:36,320 DEBUG   : ['umount', '/tmp/tmpDvu332/dev']
2011-11-02 08:12:36,323 INFO: umount: /tmp/tmpDvu332/dev: device is busy.
2011-11-02 08:12:36,323 INFO: (In some cases useful info about 
processes that use
2011-11-02 08:12:36,323 INFO:  the device is found by lsof(8) or 
fuser(1))
2011-11-02 08:12:36,323 INFO: Cleaning up
2011-11-02 08:12:36,324 DEBUG   : ['umount', '/tmp/tmpZQTlF8']
2011-11-02 08:12:36,360 ERROR   : Process (['umount', '/tmp/tmpDvu332/dev']) 
returned 1. stdout: , stderr: umount: /tmp/tmpDvu332/dev: device is busy.
(In some cases useful info about processes that use
 the device is found by lsof(8) or fuser(1))

Traceback (most recent call last):
  File /usr/local/bin/vmbuilder, line 24, in module
cli.main()
  File /usr/local/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py, line 
216, in main
distro.build_chroot()
  File /usr/local/lib/python2.7/dist-packages/VMBuilder/distro.py, line 84, 
in build_chroot
self.call_hooks('configure_os')
  File /usr/local/lib/python2.7/dist-packages/VMBuilder/distro.py, line 67, 
in call_hooks
call_hooks(self, *args, **kwargs)
  File /usr/local/lib/python2.7/dist-packages/VMBuilder/util.py, line 165, in 
call_hooks
getattr(context, func, log_no_such_method)(*args, **kwargs)
  File 
/usr/local/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/distro.py, 
line 155, in configure_os
self.suite.unmount_dev()
  File 
/usr/local/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py, 
line 118, in unmount_dev
run_cmd('umount', '%s/dev' % self.context.chroot_dir)
  File /usr/local/lib/python2.7/dist-packages/VMBuilder/util.py, line 120, in 
run_cmd
raise VMBuilderException, Process (%s) returned %d. stdout: %s, stderr: 
%s % (args.__repr__(), status, mystdout.buf, mystderr.buf)
VMBuilder.exception.VMBuilderException: Process (['umount', 
'/tmp/tmpDvu332/dev']) returned 1. stdout: , stderr: umount: 
/tmp/tmpDvu332/dev: device is busy.
(In some cases useful info about processes that use
 the device is found by lsof(8) or fuser(1))

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in Ubuntu.
https://bugs.launchpad.net/bugs/726790

Title:
  python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be
  created properly when lucid is the target

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/726790/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 726790] Re: python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be created properly when lucid is the target

2011-10-19 Thread Esben Haabendal
I have the same problem using python-vm-builder 0.12.4+bzr469-0ubuntu1.

Only, I am not using a partitions file, but simply specify
--optsize=10240

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in Ubuntu.
https://bugs.launchpad.net/bugs/726790

Title:
  python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be
  created properly when lucid is the target

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/726790/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 726790] Re: python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be created properly when lucid is the target

2011-03-07 Thread Chuck Short
** Changed in: vm-builder (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.
https://bugs.launchpad.net/bugs/726790

Title:
  python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be
  created properly when lucid is the target

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 726790] Re: python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be created properly when lucid is the target

2011-03-01 Thread Andres Rodriguez
Hi Randy,

Thank you for reporting bugs and trying to make Ubuntu Server better!

Could you please provide a Step by step to be able to reproduce this
bug. Once we can reproduce this bug we'll investigate further and maybe
ask for more information.

I'm marking this bug as incomplete until the information requested is
provided.

Best regards,

** Changed in: vm-builder (Ubuntu)
   Status: New = Incomplete

** Changed in: vm-builder (Ubuntu)
   Importance: Undecided = Low

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.
https://bugs.launchpad.net/bugs/726790

Title:
  python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be
  created properly when lucid is the target

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 726790] Re: python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be created properly when lucid is the target

2011-03-01 Thread Randy Barlow
I am attaching a build script that uses a partitions file to demonstrate
the issue. When you run this script, the traceback that I listed doesn't
occur (not sure why). However, the built machine does still complain
about /dev/sda2, and you can verify that it does not have swap.

** Attachment added: A script to demonstrate the issue
   
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/726790/+attachment/1879353/+files/make_kvm_image.sh

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.
https://bugs.launchpad.net/bugs/726790

Title:
  python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be
  created properly when lucid is the target

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 726790] Re: python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be created properly when lucid is the target

2011-03-01 Thread Randy Barlow
I moved the ticket status back to New. I've actually been wondering,
is it appropriate for me to alter the ticket state back to new after I
provide the requested information, or would it have been better if I
left it at Incomplete?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.
https://bugs.launchpad.net/bugs/726790

Title:
  python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be
  created properly when lucid is the target

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 726790] Re: python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be created properly when lucid is the target

2011-03-01 Thread Randy Barlow
This is the partitions file that I used.

** Attachment added: partitions
   
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/726790/+attachment/1879354/+files/partitions

** Changed in: vm-builder (Ubuntu)
   Status: Incomplete = New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.
https://bugs.launchpad.net/bugs/726790

Title:
  python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be
  created properly when lucid is the target

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 726790] Re: python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be created properly when lucid is the target

2011-03-01 Thread Serge Hallyn
Quoting Randy Barlow (726...@bugs.launchpad.net):
 I moved the ticket status back to New. I've actually been wondering,
 is it appropriate for me to alter the ticket state back to new after I
 provide the requested information, or would it have been better if I
 left it at Incomplete?

Thanks, yes please do update the state.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.
https://bugs.launchpad.net/bugs/726790

Title:
  python-vm-builder-0.12.4+bzr462-0ubuntu1: swap partitions fail to be
  created properly when lucid is the target

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs