Bug 819672

Summary: Unable to build ovirt-node iso on fedora 17 "No packages or groups specified"
Product: [Retired] oVirt Reporter: Netbulae <info>
Component: ovirt-nodeAssignee: Joey Boggs <jboggs>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, dyasny, jboggs, mburns, mgoldboi, ovirt-bugs, ovirt-maint
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 2.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-14 13:31:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 827269    
Bug Blocks: 824420    

Description Netbulae 2012-05-07 23:18:21 UTC
Description of problem:

I followed all the steps from the wiki (http://www.ovirt.org/wiki/Node_Building) to compile the node iso from git. But it fails at the very last step :-( 

I tried many different options but all the time I get the error:

"imgcreate.errors.CreatorError: No packages or groups specified"

ovirt-node-iso]# make iso publish
rm -f *.ks
Node Creator script is:  ~/ovirt-node/recipe/node-creator
cp ~/ovirt-node/recipe/*.ks .
rm -f version.ks
( \
    echo "PRODUCT='"oVirt Node Hypervisor"'" ;\
    echo "PRODUCT_SHORT='"oVirt Node Hypervisor"'" ;\
    echo "PACKAGE=ovirt-node-iso" ;\
    echo "VERSION=2.3.0" ;\
    echo "RELEASE=999.02.fc16" ;\
) > version.ks
ksflatten -c ovirt-node-image.ks -o ovirt-node-iso.ks
~/ovirt-node/recipe/node-creator ovirt-node-iso.ks
Traceback (most recent call last):
  File "/bin/livecd-creator", line 210, in <module>
    sys.exit(main())
  File "/bin/livecd-creator", line 174, in main
    title=title, product=product)
  File "/usr/lib/python2.7/site-packages/imgcreate/live.py", line 52, in __init__
    tmpdir=tmpdir)
  File "/usr/lib/python2.7/site-packages/imgcreate/creator.py", line 788, in __init__
    ImageCreator.__init__(self, ks, name, releasever=releasever, tmpdir=tmpdir)
  File "/usr/lib/python2.7/site-packages/imgcreate/creator.py", line 84, in __init__
    self.__sanity_check()
  File "/usr/lib/python2.7/site-packages/imgcreate/creator.py", line 412, in __sanity_check
    raise CreatorError("No packages or groups specified")
imgcreate.errors.CreatorError: No packages or groups specified
ERROR: ISO build failed.
make: *** [iso] Error 1

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

Git

Kind regards,

Jorick Astrego
Netbulae

Comment 1 Netbulae 2012-05-08 09:34:40 UTC
Tried it on a fresh install off Fedora 16 and the process is fine. So I think it has to do with my Fedora 17 install.

Comment 2 Joey Boggs 2012-06-01 00:30:36 UTC
Looks like ksflatten isn't working correctly in F17. ksflatten on ovirt-node-iso.ks results in %include's not be flattend to inside a single kickstart file.

Comment 3 Joey Boggs 2012-06-01 01:20:43 UTC
workaround for now is to install older pykickstart version, bz submitted for pykickstart

http://arm.koji.fedoraproject.org/koji/buildinfo?buildID=37975

Comment 4 Mike Burns 2012-06-14 13:31:58 UTC
No fix needed in ovirt-node, just in pykickstart

*** This bug has been marked as a duplicate of bug 827269 ***