[Thincrust-devel] Exception imgcreate.errors.MountError: MountError("Failed to unmap partitions for '/dev/loop0'",)???

Kamesh Jayachandran kamesh at collab.net
Sat Sep 12 13:30:10 UTC 2009


Hi All,

I am using appliance creator tool to create the libvirt images.

It was working well all these days(I play with this tool for the past 1 
week).

Only since today I get the following *error*

<snip>
Unmapping /dev/loop0
device-mapper: remove ioctl failed: Device or resource busy
Traceback (most recent call last):
   File "/usr/bin/appliance-creator", line 164, in <module>
     sys.exit(main())
   File "/usr/bin/appliance-creator", line 155, in main
     creator.cleanup()
   File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 
573, in cleanup
     self.unmount()
   File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 
551, in unmount
     self._unmount_instroot()
   File "/usr/lib/python2.6/site-packages/appcreate/appliance.py", line 
292, in _unmount_instroot
     self.__instloop.cleanup()
   File "/usr/lib/python2.6/site-packages/appcreate/partitionedfs.py", 
line 191, in cleanup
     self.__unmap_partitions()
   File "/usr/lib/python2.6/site-packages/appcreate/partitionedfs.py", 
line 174, in __unmap_partitions
     d['disk'].device)
imgcreate.errors.MountError: Failed to unmap partitions for '/dev/loop0'
Removing compat symlinks
Unmapping /dev/loop0
device-mapper: remove ioctl failed: Device or resource busy
Exception imgcreate.errors.MountError: MountError("Failed to unmap 
partitions for '/dev/loop0'",) in <bound method 
ApplianceImageCreator.__del__ of 
<appcreate.appliance.ApplianceImageCreator object at 0x92be24c>> ignored
</snip>

I retstarted my *box* and ensured *no* mounts on /dev/mapper/loop0p1 
before starting the image creation.

After this failure I get the following *stale* mount point

<snip from df output>
/dev/mapper/loop0p1    1968588    661152   1287436  34% 
/var/tmp/imgcreate-ExJVna/install_root
</snip>

With regards
Kamesh Jayachandran




More information about the Thincrust-devel mailing list