[Bug 1044837] Re: vmbuilder should accept an empty destination directory

Tokuko 1044837 at bugs.launchpad.net
Sat Sep 15 21:49:39 UTC 2012


Sorry for the unclear description of the bug.
The manpage says:
       -o, --overwrite
              Force overwrite of destination directory if it already exist. [default: False]
But apparently vmbuilder does not overwrite it. It tries to delete it (which fails with mountpoints) and then recreates it, that's a different action.
Why go through the hassle of deleting and recreating it if you can just dump in any file by any name, since you got the permission from the admin that everything in there can be overwritten?
Another point: If I know what files are going to be created (*.qcow2 by default), then I expect to be able to create some files in there if I know that the names do not conflict. Currently these files will be lost for no reason that I see.
I just see no reason for removing the directory beforehand, as this can cause errors like I have gotten. And it counteracts the use of mountpoints whereever you want.

The reason that I do not use /srv/kvm/mysql/mysql is that /srv/kvm is a big filesystem already containing severall VM disk images which are following /srv/kvm/*/*.qcow2. Adding a subdirectory here would require me to migrate all other VMs to ensure that the same mask works for all VM disk images.
To avoid that I currently install the VMs to a subdirectory and move the files afterwards, which requires me to edit the domain config, of course. I consider that unnecessary, if vmbuilder would accept "-o" as "just dump anything you want into that directory. if something does not work (due to permissions or other issues), blame the admin and let him clean up the mess."

-- 
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



More information about the Ubuntu-server-bugs mailing list