Bug 508973 - appliance-creator crashes making rawhide image
Summary: appliance-creator crashes making rawhide image
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: appliance-tools
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: David Huff
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-30 17:43 UTC by Steve Grubb
Modified: 2010-03-03 01:58 UTC (History)
3 users (show)

Fixed In Version: appliance-tools-004.5-1.fc12
Clone Of:
Environment:
Last Closed: 2010-03-03 01:58:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Steve Grubb 2009-06-30 17:43:25 UTC
Description of problem:
Traceback (most recent call last):
  File "/usr/bin/appliance-creator", line 164, in <module>
    sys.exit(main())
  File "/usr/bin/appliance-creator", line 150, in main
    creator.configure()
  File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 732, in configure
    self._create_bootconfig()
  File "/usr/lib/python2.6/site-packages/appcreate/appliance.py", line 277, in _create_bootconfig
    self._create_grub_config()
  File "/usr/lib/python2.6/site-packages/appcreate/appliance.py", line 212, in _create_grub_config
    grub += "splashimage=(hd0,%d)%s/grub/splash.xpm.gz\n" % (bootdevnum, prefix)
TypeError: %d format: a number is required, not NoneType


Version-Release number of selected component (if applicable):
004-3

Additional Info:
This was being run on rawhide making a rawhide minimal install @core system.

Comment 1 David Huff 2009-06-30 18:17:54 UTC
I was not able to reproduce this issue, I can create a RAW hide image with no error on an F11 box using the sample ks file.  

It looks like "bootdevnum" is beeing set to NONE.

Please provide you ks file and the options you are using for appliance-creator and I will try to reproduce.

-D

Comment 2 Steve Grubb 2009-06-30 18:44:24 UTC
Sure, this is what I'm using:

http://people.redhat.com/sgrubb/libcap-ng/testing.html

On F-11, it works fine. When run on native rawhide system is where I run into problems.

Comment 3 Steve Grubb 2009-06-30 18:50:53 UTC
Btw, does the rawhide system you created boot? I know rawhide can be pretty raw. But it seems like something is going wrong wrt grub.

Comment 4 David Huff 2009-06-30 19:58:25 UTC
OK, this makes more scene....

I haven't really tested on F12/rawhide yet so there may be some initial problems.

I was able to boot a guest and run off of it however when I try to build an appliance on it I get errors...

[root@localhost ~]# cat /etc/fedora-release 
Fedora release 11.90 (Rawhide)
[root@localhost ~]# appliance-creator -c test.ks -d -v
Formatting disks
Assigning partitions to disks
Creating partitions
[]
Writing mkinitrd config /var/tmp/imgcreate-HHaSSD/install_root/etc/sysconfig/mkinitrd
/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 to find package 'grub' : No package(s) available to install


looks like my repos may me fubar??

Comment 5 Bug Zapper 2009-11-16 10:34:17 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 6 David Huff 2010-02-10 17:11:31 UTC
A new build for F12 has been built that should address this issue....

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 7 Fedora Update System 2010-02-11 14:59:45 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 8 Fedora Update System 2010-03-03 01:58:37 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.