Ticket #1120 (closed defect: fixed)

Opened 11 years ago

Last modified 9 years ago

The missing <Group> tag in Packages/sources.xml causes an error

Reported by: Owned by:
Priority: major Milestone: Bcfg2 1.3.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:



There seems to be an error when <Group> tag is missing and <Source ...> <Arch>..</Arch></Source> exists in Packages/sources.xml.

FYI, here is my Packages/sources.xml.

[[email protected] bcfg2]# cat Packages/sources.xml 
    <Group name="rhel-6.2">
       <Source type="yum" rawurl=""  >

As soon as bcfg2 -qvn runs without above the <Group> tag, the following error shows up

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Bcfg2-1.2.3-py2.6.egg/Bcfg2/Server/", line 391, in GetProbes
    meta = self.build_metadata(name)
  File "/usr/lib/python2.6/site-packages/Bcfg2-1.2.3-py2.6.egg/Bcfg2/Server/", line 363, in build_metadata
    data = conn.get_additional_data(imd)
  File "/usr/lib/python2.6/site-packages/Bcfg2-1.2.3-py2.6.egg/Bcfg2/Server/Plugins/Packages/", line 270, in get_additional_data
    collection = self._get_collection(metadata)
  File "/usr/lib/python2.6/site-packages/Bcfg2-1.2.3-py2.6.egg/Bcfg2/Server/Plugins/Packages/", line 267, in _get_collection
  File "/usr/lib/python2.6/site-packages/Bcfg2-1.2.3-py2.6.egg/Bcfg2/Server/Plugins/Packages/", line 340, in factory
    collection = cclass(metadata, relevant, basepath, debug=debug)
  File "/usr/lib/python2.6/site-packages/Bcfg2-1.2.3-py2.6.egg/Bcfg2/Server/Plugins/Packages/", line 100, in __init__
    "cache-%s" % self.cachekey)
  File "/usr/lib/python2.6/site-packages/Bcfg2-1.2.3-py2.6.egg/Bcfg2/Server/Plugins/Packages/", line 47, in cachekey
    return md5(self.get_config()).hexdigest()
  File "/usr/lib/python2.6/site-packages/Bcfg2-1.2.3-py2.6.egg/Bcfg2/Server/Plugins/Packages/", line 174, in get_config
    basereponame = source.get_repo_name(url_map)
  File "/usr/lib/python2.6/site-packages/Bcfg2-1.2.3-py2.6.egg/Bcfg2/Server/Plugins/Packages/", line 721, in get_repo_name
    return Source.get_repo_name(self, url_map)
  File "/usr/lib/python2.6/site-packages/Bcfg2-1.2.3-py2.6.egg/Bcfg2/Server/Plugins/Packages/", line 163, in get_repo_name
    rname = self.groups[0]
IndexError: list index out of range


Change History

comment:1 Changed 11 years ago by

  • Owner changed from desai to
  • Status changed from new to accepted

comment:2 Changed 11 years ago by

comment:3 Changed 11 years ago by

  • Status changed from accepted to closed
  • Resolution set to fixed

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.