umount of temporary devfs fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VMBuilder |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Often when I'm trying to run vmbuilder, the umount of /dev in the temporary directory will fail, causing the process to stop. When I have looked into it so far, it appears that cron processes run by root are accessing files under the temporary /dev directory. Is there some way to mitigate this? My output follows:
ubuntu@
2012-03-27 17:48:55,733 INFO : Calling hook: preflight_check
2012-03-27 17:48:55,741 INFO : Calling hook: set_defaults
2012-03-27 17:48:55,742 INFO : Calling hook: bootstrap
2012-03-27 17:52:55,906 INFO : Calling hook: configure_os
2012-03-27 17:53:05,168 INFO :
2012-03-27 17:53:05,169 INFO : Current default time zone: 'Etc/UTC'
2012-03-27 17:53:05,173 INFO : Local time is now: Tue Mar 27 17:53:05 UTC 2012.
2012-03-27 17:53:05,173 INFO : Universal Time is now: Tue Mar 27 17:53:05 UTC 2012.
2012-03-27 17:53:05,174 INFO :
Extracting templates from packages: 100%
2012-03-27 17:53:46,817 INFO :
2012-03-27 17:53:46,818 INFO : Current default time zone: 'Etc/UTC'
2012-03-27 17:53:46,822 INFO : Local time is now: Tue Mar 27 17:53:46 UTC 2012.
2012-03-27 17:53:46,822 INFO : Universal Time is now: Tue Mar 27 17:53:46 UTC 2012.
2012-03-27 17:53:46,823 INFO : Run 'dpkg-reconfigure tzdata' if you wish to change it.
2012-03-27 17:53:46,823 INFO :
2012-03-27 17:53:51,044 INFO : stop: Unknown instance:
2012-03-27 17:53:54,484 INFO : Updating certificates in /etc/ssl/certs... WARNING: Skipping duplicate certificate ca-certificates.crt
2012-03-27 17:53:55,020 INFO : 0 added, 1 removed; done.
2012-03-27 17:53:55,022 INFO : Running hooks in /etc/ca-
2012-03-27 17:53:56,101 INFO : restart: Unknown instance:
2012-03-27 17:53:56,312 INFO : start: Unknown parameter: JOB
2012-03-27 17:53:56,961 INFO : umount: /tmp/tmpGmrfKV/dev: device is busy.
2012-03-27 17:53:56,961 INFO : (In some cases useful info about processes that use
2012-03-27 17:53:56,962 INFO : the device is found by lsof(8) or fuser(1))
2012-03-27 17:53:56,962 INFO : Cleaning up
2012-03-27 17:53:56,962 ERROR : Process (['umount', '/tmp/tmpGmrfKV
(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/
cli.main()
File "/usr/lib/
distro.
File "/usr/lib/
self.
File "/usr/lib/
call_
File "/usr/lib/
getattr(
File "/usr/lib/
self.
File "/usr/lib/
run_
File "/usr/lib/
raise VMBuilderException, "Process (%s) returned %d. stdout: %s, stderr: %s" % (args.__repr__(), status, mystdout.buf, mystderr.buf)
VMBuilder.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
Changed in vmbuilder: | |
status: | New → Confirmed |
I too am experiencing thigs bug on oneiric trying to build a lucid guest with a command line like:
vmbuilder kvm ubuntu --suite lucid --arch i386 -o --libvirt qemu:///system --ip 172.29.5.50 --dns 172.29.5.2 --bridge br0 --user system --pass system
On my system, it not only gives this error but it's actually broken out of the chroot jail and I cannot remove the /tmp/tmp* dir because the host kernel is now using it somehow.
for example: etc/init: Configuration directory deleted
[11068.758303] init: /tmp/tmpWi7L20/
2012-04-02 19:59 DEBUG : Output from template '/etc/vmbuilder /ubuntu/ sources. list.tmpl' : deb http:// archive. ubuntu. com/ubuntu lucid main restricted universe archive. ubuntu. com/ubuntu lucid-updates main restricted universe security. ubuntu. com/ubuntu lucid-security main restricted universe
deb http://
deb http://
2012-04-02 19:59 DEBUG : ['chroot', '/tmp/tmpjwPN8y', 'apt-get', 'update'] security. ubuntu. com lucid-security Release.gpg archive. ubuntu. com lucid Release.gpg archive. ubuntu. com lucid-updates Release.gpg security. ubuntu. com lucid-security Release archive. ubuntu. com lucid Release security. ubuntu. com lucid-security/main Packages archive. ubuntu. com lucid-updates Release security. ubuntu. com lucid-security/ restricted Packages security. ubuntu. com lucid-security/ universe Packages archive. ubuntu. com lucid/main Packages archive. ubuntu. com lucid/restricted Packages archive. ubuntu. com lucid/universe Packages archive. ubuntu. com lucid-updates/main Packages archive. ubuntu. com lucid-updates/ restricted Packages archive. ubuntu. com lucid-updates/ universe Packages /proc'] /dev/pts' ] /dev'] /dev']) returned 1. stdout: , stderr: umount: /tmp/tmpjwPN8y/dev: device is busy.
2012-04-02 19:59 DEBUG : Hit http://
2012-04-02 19:59 DEBUG : Hit http://
2012-04-02 19:59 DEBUG : Hit http://
2012-04-02 19:59 DEBUG : Hit http://
2012-04-02 19:59 DEBUG : Hit http://
2012-04-02 19:59 DEBUG : Hit http://
2012-04-02 19:59 DEBUG : Hit http://
2012-04-02 19:59 DEBUG : Hit http://
2012-04-02 19:59 DEBUG : Hit http://
2012-04-02 19:59 DEBUG : Hit http://
2012-04-02 19:59 DEBUG : Hit http://
2012-04-02 19:59 DEBUG : Hit http://
2012-04-02 19:59 DEBUG : Hit http://
2012-04-02 19:59 DEBUG : Hit http://
2012-04-02 19:59 DEBUG : Hit http://
2012-04-02 19:59 DEBUG : Reading package lists...
2012-04-02 19:59 DEBUG : ['chroot', '/tmp/tmpjwPN8y', 'apt-get', 'clean']
2012-04-02 19:59 DEBUG : ['umount', '/tmp/tmpjwPN8y
2012-04-02 19:59 DEBUG : ['umount', '/tmp/tmpjwPN8y
2012-04-02 19:59 DEBUG : ['umount', '/tmp/tmpjwPN8y
2012-04-02 19:59 INFO : umount: /tmp/tmpjwPN8y/dev: device is busy.
2012-04-02 19:59 INFO : (In some cases useful info about processes that use
2012-04-02 19:59 INFO : the device is found by lsof(8) or fuser(1))
2012-04-02 19:59 INFO : Cleaning up
2012-04-02 19:59 ERROR : Process (['umount', '/tmp/tmpjwPN8y