[Bug 342359] Re: [jaunty] ubuntu-vm-builder crashed with ioctl in create()

Jamie Strandboge jamie at ubuntu.com
Tue Mar 24 05:45:11 UTC 2009


Attached is a patch that should address this issue. Basically, it will try up to three times to unmount the disk, rather than failing on the first time. Example output from an attempt that would have previously failed:
...
2009-03-24 00:42:12,075 INFO     Unmounting target filesystem
2009-03-24 00:42:12,076 DEBUG    Unmounting /tmp/vmbuilderYGTk5J/target/
2009-03-24 00:42:12,076 DEBUG    ['umount', '/tmp/vmbuilderYGTk5J/target/']
2009-03-24 00:42:12,488 INFO     Attempting to unmount disk '/tmp/vmbuilderYGTk5J/disk0.img'
2009-03-24 00:42:12,489 DEBUG    ['kpartx', '-d', '/tmp/vmbuilderYGTk5J/disk0.img']
2009-03-24 00:42:12,502 INFO     device-mapper: remove ioctl failed: Device or resource busy
2009-03-24 00:42:12,504 INFO     ioctl: LOOP_CLR_FD: Device or resource busy
2009-03-24 00:42:12,504 INFO     Failed to unmount disk '/tmp/vmbuilderYGTk5J/disk0.img'
2009-03-24 00:42:15,507 INFO     Attempting to unmount disk '/tmp/vmbuilderYGTk5J/disk0.img'
2009-03-24 00:42:15,507 DEBUG    ['kpartx', '-d', '/tmp/vmbuilderYGTk5J/disk0.img']
2009-03-24 00:42:15,519 DEBUG    loop deleted : /dev/loop6
2009-03-24 00:42:15,520 INFO     Converting /tmp/vmbuilderYGTk5J/disk0.img to qcow2, format debian-kvm/disk0.qcow2
...

** Attachment added: "bug_342359.patch"
   http://launchpadlibrarian.net/24298840/bug_342359.patch

** Changed in: vm-builder (Ubuntu)
       Status: Confirmed => In Progress

** Attachment removed: "bug_342359.patch"

   http://launchpadlibrarian.net/24298840/bug_342359.patch

-- 
[jaunty] ubuntu-vm-builder crashed with ioctl in create()
https://bugs.launchpad.net/bugs/342359
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list