abrt detected a crash. How to reproduce ----- 1. 2. 3. Comment ----- Following examples at http://thincrust.org/tooling.html for creating a thincrust image Additional information ====== Attached files ---- backtrace cmdline ----- /usr/bin/python -tt /usr/bin/appliance-creator -n thincrust --config /usr/share/spin-kickstarts/fedora-aos.ks component ----- appliance-tools executable ----- /usr/bin/appliance-creator kernel ----- 2.6.31-23.fc12.x86_64 package ----- appliance-tools-004.4-3.fc12 uuid ----- af433610
Created attachment 362782 [details] File: backtrace
Having the same problem. rawhide system fully up to date as of today. Crashes every time I try to create an appliance image. Same usage on F11 works fine.
seems to be parted that barfs creating a lablel on loop devices.
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle. Changing version to '12'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
There is an error on line 65 of /usr/lib/python2.6/site-packages/appcreate/partitionedfs.py as stated in the backtrace, "d" is a dict so it doesn't have any attribute named device, that is an attribute of the disk object contained in "d" with the key "disk". So I suggest to replace the line raise MountError("Error writing partition table on %s" % d.device) with raise MountError("Error writing partition table on %s" % d['disk'].device) . But fixing this bug exposes us another one: as everyone can expect now appliance-creator exits with the error message "Unable to create appliance : Failed mount disks : Error writing partition table on /dev/loop0". This happens because parted always fails to reload part table with loop devices, so I suggest to skip the check as in row 107 of the same file. With this workround appliance-creator works fine on my systems.
The above work around is a good workaround but not a real fix for this issue. We reported a bug on parted and the next build should have a real fix. https://bugzilla.redhat.com/show_bug.cgi?id=546622 I'll push a fix for the syntax error in Line 65 as well as a couple other fixes and try to do a new build sometime next week.
*** Bug 539407 has been marked as a duplicate of this bug. ***
Now that the parted problem has been solved, we can move on to another problem: [root@hockey tmp]# !appliance-creator appliance-creator -n test --config ./test.cfg ['/', '/boot', 'swap'] mke2fs 1.41.9 (22-Aug-2009) Filesystem label=/ OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 128 inodes, 240 blocks 2 blocks (0.83%) reserved for the super user First data block=0 1 block group 32768 blocks per group, 32768 fragments per group 128 inodes per group Writing inode tables: done Filesystem too small for a journal Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 37 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. tune2fs 1.41.9 (22-Aug-2009) Setting maximal mount count to -1 Setting interval between checks to 0 seconds mount: wrong fs type, bad option, bad superblock on /dev/mapper/loop1p3, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so /usr/lib/python2.6/site-packages/imgcreate/errors.py:40: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 return str(self.message) Unable to create appliance : Failed mount disks : Failed to mount '/dev/loop13' to '/var/tmp/imgcreate-Q45HVa/install_root/'
Jared- I'm able to build appliances after I installed new parted.
fixed: http://git.fedorahosted.org/git/?p=appliance-tools.git;a=commit;h=2436d6ac3077678c332a6b0965ddeaed6d736021
appliance-tools-004.5-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/appliance-tools-004.5-1.fc12
appliance-tools-004.5-1.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update appliance-tools'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1777
appliance-tools-004.5-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.