[Bug 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
I just wanted to bump this issue because we're now experiencing it in an automated deployment system, and it's been open almost a year and half with no resolution. -- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
I have even tried couple of days ago ... /usr/share/pyshared/VMBuilder/util.py umount_cmd = [umount, -l, -t, tmpfs, mount_point ] just tried added 'lazy umount option' - but no luck. -- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
Well, that workaround did not help 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
This bug duplicates https://bugs.launchpad.net/vmbuilder/+bug/966439 . The workaround is to add --removepkg=cron to the vmbuilder command line. -- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
Hi Based on some of your comments I tried to find what was the issue with the umount The below command helped me to get the information who is holding the lock so based on Serge Hallyn (serge-hallyn) request the error shows as follows, (lsof didn't help me much here so I used fuser) - # fuser -f -v /tmp/tmp4WlrLItmpfs USERPID ACCESS COMMAND /tmp/tmp4WlrLItmpfs: root kernel mount /tmp/tmp4WlrLItmpfs - Based on the above information where I can not kill the PID becuase kernel is holding the lock. So what would be my option here? 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
I just wanted to bump this issue as I've been experiencing it without fail for the last two days and the posted workaround has not resolved the issue. Currently running 11.10 x64. My command line has been: sudo vmbuilder kvm ubuntu -v --debug --suite=lucid --flavour=virtual --rootsize=4096 --swapsize=1024 --mem=388 --arch=i386 --user=system --pass=changemenow --components=main,universe,restricted --addpkg=acpid --addpkg=openssh-server -o --libvirt qemu:///system The error noted before crashing out has consistently been: 2012-03-16 13:59:53,564 ERROR : Process (['umount', '/tmp/tmptaOMHF/dev']) returned 1. stdout: , stderr: umount: /tmp/tmptaOMHF/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/bin/vmbuilder, line 24, in module cli.main() File /usr/lib/python2.7/dist-packages/VMBuilder/contrib/cli.py, line 216, in main distro.build_chroot() File /usr/lib/python2.7/dist-packages/VMBuilder/distro.py, line 84, in build_chroot self.call_hooks('configure_os') File /usr/lib/python2.7/dist-packages/VMBuilder/distro.py, line 67, in call_hooks call_hooks(self, *args, **kwargs) File /usr/lib/python2.7/dist-packages/VMBuilder/util.py, line 165, in call_hooks getattr(context, func, log_no_such_method)(*args, **kwargs) File /usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/distro.py, line 155, in configure_os self.suite.unmount_dev() File /usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py, line 125, in unmount_dev run_cmd('umount', '%s/dev' % self.context.chroot_dir) File /usr/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/tmptaOMHF/dev']) returned 1. stdout: , stderr: umount: /tmp/tmptaOMHF/dev: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) Prior to the crash, mount indicates indeed, the file (/tmp/tmptaOMHF/dev in this case) is still mounted, the file is also notable in /etc/mtab post-crash. I've noted that in the lsof results inserted just prior to the mount call, there appear to be three cron processes still accessing /dev/null within the mounted environment (i.e. /tmp/tmptaOMHF/dev/null). I'm attaching a log which contains the results output from the inserted: run_cmd('lsof', '%s/dev' % self.context.chroot_dir) line onward until vmbuilder exits, crashing. I have successfully built several VMs on this particular machine in the past, using the exact same command, so I was a bit surprised to be running into this issue now, any ideas? -- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
Missed the attach, should be here. ** Attachment added: vmbuilder_lsof_results_and_error_20120316.txt https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+attachment/2881786/+files/vmbuilder_lsof_results_and_error_20120316.txt -- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
Wanted to add a note -- Resolved my own recurring issue by switching from lucid to essentially any other release. Can confirm that both maverick and oneiric work for me, having changed only the release in the call to vmbuilder. .i.e: sudo vmbuilder kvm ubuntu -v --debug --suite=maverick --flavour=virtual --rootsize=4096 --swapsize=1024 --mem=388 --arch=i386 --user=system --pass=changemenow --components=main,universe,restricted --addpkg=acpid --addpkg=openssh-server -o --libvirt qemu:///system works, where sudo vmbuilder kvm ubuntu -v --debug --suite=lucid --flavour=virtual --rootsize=4096 --swapsize=1024 --mem=388 --arch=i386 --user=system --pass=changemenow --components=main,universe,restricted --addpkg=acpid --addpkg=openssh-server -o --libvirt qemu:///system fails Considering that I had the command line string working in early Feb (2012-02-03) and that Lucid . 4 (10.04.4) was released ~ Feb 16, I'd have to guess that changes involved therein are leading to issues with vmbuilder? -- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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
Re: [Bug 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
I see this every time on one KVM host machine and never on my other KVM host machine. Good one is: Fully patched 11.10 Server (no desktop) acting as KVM host using vmbuilder to create guest instances of 11.10 server. Bad one is: Fully patched 11.10 Workstation with Virtualization packages added executing the exact same command line. I created a shell script to contain my vmbuilder command line and copied it to both host machines to be sure that I was performing identical activities on each. I did dig through the Python traceback enough to locate the line throwing the exception. Adding a simple sleep for 5 seconds makes it work every time. I tried to add the suggested debug statements regarding the determination of who is holding the mount point busy. But, for the life of me, I could not figure out where the log file went to -- where is the output of the debug being written? I'm willing to investigate more if it's of service to anyone. On 03/16/2012 02:31 PM, Casey Hilliard wrote: Wanted to add a note -- Resolved my own recurring issue by switching from lucid to essentially any other release. Can confirm that both maverick and oneiric work for me, having changed only the release in the call to vmbuilder. .i.e: sudo vmbuilder kvm ubuntu -v --debug --suite=maverick --flavour=virtual --rootsize=4096 --swapsize=1024 --mem=388 --arch=i386 --user=system --pass=changemenow --components=main,universe,restricted --addpkg=acpid --addpkg=openssh-server -o --libvirt qemu:///system works, where sudo vmbuilder kvm ubuntu -v --debug --suite=lucid --flavour=virtual --rootsize=4096 --swapsize=1024 --mem=388 --arch=i386 --user=system --pass=changemenow --components=main,universe,restricted --addpkg=acpid --addpkg=openssh-server -o --libvirt qemu:///system fails Considering that I had the command line string working in early Feb (2012-02-03) and that Lucid . 4 (10.04.4) was released ~ Feb 16, I'd have to guess that changes involved therein are leading to issues with vmbuilder? -- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
I added this corresponding line: def unmount_dev(self): self.context.cancel_cleanup(self.unmount_dev) run_cmd('chroot', '%s' % self.context.chroot_dir, '/etc/init.d/cron','stop') // -- HERE run_cmd('umount', '%s/dev' % self.context.chroot_dir) That seems to be a temporary workaround for the problem I was seeing (same as @rchilliard -- lsof showed a cron open file to /dev/null). I also had this working up until several days ago without anything else changing and then it suddenly broke. -- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
I will attach the debug log vmbuilder with --addpkg ubuntu-desktop and debug lines: run_cmd('lsof', '%s/proc' % self.context.chroot_dir) run_cmd('lsof', '%s/dev/pts' % self.context.chroot_dir) run_cmd('lsof', '%s/dev' % self.context.chroot_dir) With run_cmd('ps', '-ef') or without --addpkg ubuntu-desktop, I cannot reproduce it. ** Attachment added: vmbuilder-desktop_debug.log https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+attachment/2626950/+files/vmbuilder-desktop_debug.log -- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
Gah! Thanks. Unfortunately my snipped was bad. That was supposed to read: run_cmd('ps', '-ef'); run_cmd('lsof', '%s/dev' % self.context.chroot_dir) run_cmd('mount') -- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
Ouch. I replaced the code with the new lines and ran vmbuilder twice. Unfortunately everything worked fine this way and I couldn't reproduce the problem again (obviosuly I removed the run_cmd('sleep', '10') fix too). I experienced something similar with another server, at first vmbuilder crashed but after making some other changes (like apt-get installing something else, totally unrelated) vmbuilder was able to complete its job and never saw the problem again in that server. I'm wondering if this could be related to getting stuck in some hard disk sector but that doesn't make much sense. The other server I'm referring to is a 4-years-old Core 2 Duo laptop and my current server is a brand new Core i5 desktop, so hardware seems totally unrelated. I'll let you know if I can reproduce the problem again, sorry I can't help more for now. -- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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
Re: [Bug 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
Hm, thanks. It's also possible that the race is just so tight that the 1-2 seconds to run lsof and mount allowed it to proceed. -- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
Hey Serge, I can reproduce this and I'm using the same versions mentioned in the bug description. I added the three lines you suggested to /usr/lib/python2.7/dist- packages/VMBuilder/plugins/ubuntu/dapper.py and this is what I got: vmbuilder kvm ubuntu --suite=oneiric --flavour=virtual --arch=i386 -o --libvirt=qemu:///system --ip=192.168.0.181 --gw=192.168.0.1 --part=vmbuilder.partition --templates=mytemplates --user=alexis --name=Alexis --pass=changeme --addpkg=vim-nox --addpkg=unattended-upgrades --addpkg=acpid --firstboot=/var/lib/libvirt/images/vm1/boot.sh --mem=256 --hostname=vm1 --bridge=br0 2011-12-03 22:10:10,852 INFO: Calling hook: preflight_check 2011-12-03 22:10:10,872 INFO: Calling hook: set_defaults 2011-12-03 22:10:10,873 INFO: Calling hook: bootstrap 2011-12-03 22:25:20,818 INFO: Calling hook: configure_os 2011-12-03 22:31:23,887 INFO: invoke-rc.d: policy-rc.d denied execution of start. 2011-12-03 22:31:25,977 INFO: update-rc.d: warning: unattended-upgrades start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (none) 2011-12-03 22:31:25,977 INFO: update-rc.d: warning: unattended-upgrades stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (0 6) 2011-12-03 22:31:25,990 INFO: invoke-rc.d: policy-rc.d denied execution of start. 2011-12-03 22:31:30,825 INFO: 2011-12-03 22:31:30,829 INFO: Current default time zone: 'Etc/UTC' 2011-12-03 22:31:30,829 INFO: Local time is now: Sun Dec 4 00:31:30 UTC 2011. 2011-12-03 22:31:30,829 INFO: Universal Time is now: Sun Dec 4 00:31:30 UTC 2011. 2011-12-03 22:31:30,829 INFO: 2011-12-03 22:31:49,387 INFO: 2011-12-03 22:31:49,388 INFO: Current default time zone: 'Etc/UTC' 2011-12-03 22:31:49,390 INFO: Local time is now: Sun Dec 4 00:31:49 UTC 2011. 2011-12-03 22:31:49,390 INFO: Universal Time is now: Sun Dec 4 00:31:49 UTC 2011. 2011-12-03 22:31:49,390 INFO: Run 'dpkg-reconfigure tzdata' if you wish to change it. 2011-12-03 22:31:49,391 INFO: 2011-12-03 22:31:58,682 INFO: lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/alexis/.gvfs 2011-12-03 22:31:58,682 INFO: Output information may be incomplete. 2011-12-03 22:31:58,682 INFO: lsof: status error on %s/dev: No such file or directory 2011-12-03 22:31:58,682 INFO: lsof 4.81 2011-12-03 22:31:58,682 INFO: latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ 2011-12-03 22:31:58,683 INFO: latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ 2011-12-03 22:31:58,683 INFO: latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man 2011-12-03 22:31:58,683 INFO: usage: [-?abhlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-f[gG]] 2011-12-03 22:31:58,683 INFO: [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s] 2011-12-03 22:31:58,683 INFO: [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names] 2011-12-03 22:31:58,683 INFO: Use the ``-h'' option to get more help information. 2011-12-03 22:31:58,683 INFO: Cleaning up 2011-12-03 22:31:58,684 ERROR : Process (['lsof', '%s/dev']) returned 1. stdout: , stderr: lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/alexis/.gvfs Output information may be incomplete. lsof: status error on %s/dev: No such file or directory lsof 4.81 latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man usage: [-?abhlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-f[gG]] [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s] [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names] Use the ``-h'' option to get more help information. 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 216, in main distro.build_chroot() File /usr/lib/python2.7/dist-packages/VMBuilder/distro.py, line 84, in build_chroot self.call_hooks('configure_os') File /usr/lib/python2.7/dist-packages/VMBuilder/distro.py, line 67, in call_hooks call_hooks(self, *args, **kwargs) File /usr/lib/python2.7/dist-packages/VMBuilder/util.py, line 165, in call_hooks getattr(context, func, log_no_such_method)(*args, **kwargs) File /usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/distro.py, line 155, in configure_os self.suite.unmount_dev() File /usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py, line 124, in unmount_dev run_cmd('lsof', '%s/dev') File /usr/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)
[Bug 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
Added the fix and tested. Works great! -- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
Whoever is able to reproduce this, to figure out what is keeping the device pinned, could you replace the run_cmd('sleep', '10'); above with run_cmd('ps', '-ef'); run_cmd('lsof', '%s/dev') run_cmd('mount') and post the results here? -- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
A simple workaround is simply add some sleep as follows. def unmount_dev(self): self.context.cancel_cleanup(self.unmount_dev) run_cmd('sleep', '10'); // --- add this line. run_cmd('umount', '%s/dev' % self.context.chroot_dir) Above -- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
Confirmed, I was able to reproduce this error. ** Changed in: vm-builder (Ubuntu) Importance: Undecided = Medium ** 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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 879710] Re: ubuntu-vm-builder crashes when trying to umount tmp directory.
-- 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/879710 Title: ubuntu-vm-builder crashes when trying to umount tmp directory. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vm-builder/+bug/879710/+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