Public bug reported:

vmbuilder should accept an empty destination directory without trying to 
recreate it.
Currently it fails even with overwrite option if the directory is a mountpoint.

vm-builder: 0.12.4+bzr477-0ubuntu3
Description:    Ubuntu 12.04.1 LTS
Release:        12.04

root@tina ~ # mount | grep mysql
/dev/mapper/vg00-kvm--mysql on /srv/kvm/mysql type ext4 (rw)
root@tina ~ # ls -la /srv/kvm/mysql
total 8
drwxr-xr-x 2 root root 4096 Sep  1 23:51 .
drwxr-xr-x 7 root root 4096 Sep  1 22:45 ..
root@tina ~ # vmbuilder kvm ubuntu -d /srv/kvm/mysql -o -v -m 1024 --cpus 1 
--part /srv/kvm/mysql/mysql.part --ip 1.2.3.4 --mask 255.255.255.0 --firstboot 
/srv/kvm/template/firstboot.sh --execscript /srv/kvm/template/execscript.sh
Traceback (most recent call last):
  File "/usr/bin/vmbuilder", line 24, in <module>
    cli.main()
  File "/usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py", line 167, 
in main
    shutil.rmtree(destdir)
  File "/usr/lib/python2.7/shutil.py", line 254, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/usr/lib/python2.7/shutil.py", line 252, in rmtree
    os.rmdir(path)
OSError: [Errno 16] Device or resource busy: '/srv/kvm/mysql'
root@tina ~ #

** Affects: vm-builder (Ubuntu)
     Importance: Undecided
         Status: 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/1044837

Title:
  vmbuilder should accept an empty destination directory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/1044837/+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

Reply via email to