Bug 525900 - [abrt] crash detected in appliance-tools-004.4-3.fc12
Summary: [abrt] crash detected in appliance-tools-004.4-3.fc12
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: appliance-tools
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: David Huff
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:af433610
: 539407 (view as bug list)
Depends On: 546622
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-26 21:43 UTC by Jared Smith
Modified: 2010-03-03 01:58 UTC (History)
6 users (show)

Fixed In Version: appliance-tools-004.5-1.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-03 01:58:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.15 KB, text/plain)
2009-09-26 21:44 UTC, Jared Smith
no flags Details

Description Jared Smith 2009-09-26 21:43:58 UTC
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

Comment 1 Jared Smith 2009-09-26 21:44:01 UTC
Created attachment 362782 [details]
File: backtrace

Comment 2 Henrik Nordström 2009-11-07 13:07:35 UTC
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.

Comment 3 Henrik Nordström 2009-11-07 13:54:55 UTC
seems to be parted that barfs creating a lablel on loop devices.

Comment 4 Bug Zapper 2009-11-16 12:59:58 UTC
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

Comment 5 Giuseppe Coviello 2009-11-27 23:13:21 UTC
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.

Comment 6 David Huff 2009-12-11 21:09:30 UTC
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.

Comment 7 David Huff 2009-12-11 21:10:53 UTC
*** Bug 539407 has been marked as a duplicate of this bug. ***

Comment 8 Jared Smith 2009-12-22 23:21:56 UTC
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/'

Comment 9 Marek Goldmann 2009-12-30 08:51:59 UTC
Jared-

I'm able to build appliances after I installed new parted.

Comment 11 Fedora Update System 2010-02-10 15:44:08 UTC
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

Comment 12 Fedora Update System 2010-02-11 14:59:37 UTC
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

Comment 13 Fedora Update System 2010-03-03 01:58:31 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.