Bug 712719

Summary: Pungi fails with: yum.Errors.GroupsError: No Groups Available in any repository
Product: [Fedora] Fedora Reporter: Erik M Jacobs <ejacobs>
Component: pungiAssignee: David Cantrell <dcantrell>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: dcantrell, ejacobs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-28 19:12:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
simple kickstart none

Description Erik M Jacobs 2011-06-12 17:23:02 UTC
Description of problem:
When trying to run Pungi to create install media, it fails with yum.Errors.GroupsError: No Groups Available in any repository

Version-Release number of selected component (if applicable):
pungi-2.5-2.fc15.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install pungi
2. Run pungi
  
Actual results:
[root@t61dora F15custom]# pungi -c /var/www/html/fedora-desktop.cfg --destdir=/tmp/spins/F15custom --name Fedora Tweaked --ver 15 --nosource --force
WARNING: SELinux is enforcing.  This may lead to a compose with selinux disabled.
Consider running with setenforce 0.
Warning: Reusing existing destination directory.
Pungi:INFO: Getting sacks for arches ['athlon', 'i586', 'i486', 'noarch', 'i386', 'i686', 'src']
Traceback (most recent call last):
  File "/usr/bin/pungi", line 214, in <module>
    main()
  File "/usr/bin/pungi", line 88, in main
    mypungi.getPackageObjects()
  File "/usr/lib/python2.7/site-packages/pypungi/__init__.py", line 412, in getPackageObjects
    searchlist.extend(self.getPackagesFromGroup(group))
  File "/usr/lib/python2.7/site-packages/pypungi/__init__.py", line 306, in getPackagesFromGroup
    if not self.ayum.comps.has_group(group.name):
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 882, in <lambda>
    comps = property(fget=lambda self: self._getGroups(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 805, in _getGroups
    raise Errors.GroupsError, _('No Groups Available in any repository')
yum.Errors.GroupsError: No Groups Available in any repository

Expected results:
Pungi runs and completes as expected

Additional info:
Tried a yum clean all followed by yum grouplist followed by pungi again and still failed.
Tried with SELinux in permissive mode, still failed.
Tried with multiple kickstarts, all failed.

Comment 1 Jesse Keating 2011-06-13 18:05:39 UTC
What is in your kickstart file?  Pungi uses the kickstart file to define the repositories to use, and those repositories need to have group metadata in them.

Comment 2 Erik M Jacobs 2011-06-19 18:41:49 UTC
Created attachment 505497 [details]
simple kickstart

This is a simple kickstart I'm trying to use with Pungi on F15.

Comment 3 Jesse Keating 2011-06-28 19:12:53 UTC
I don't see a repo defined anywhere in this kickstart file.  Pungi needs repos defined in order to know where to get the packages from, it does not use your system yum configuration.