Modify

Ticket #148 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

bcfg2 fails to build config if Base/ directory is empty

Reported by: gogo@… Owned by: desai
Priority: major Milestone: Bcfg2 0.8.5 Release
Component: bcfg2-server Version:
Keywords: bcfg2-info Cc:

Description

I've enabled the Base Plugin as structure in my bcfg2.conf file.

My Base/ directory in the repository is empty.

$ bcfg2-info
...
> build myhostname config.txt
error in GetStructures
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 300, in BuildConfiguration
    structures = self.GetStructures(meta)
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 263, in GetStructures
    [struct.BuildStructures(metadata) for struct in self.structures])
  File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/Base.py", line 29, in BuildStructures
    [base.Match(metadata) for base in self.entries.values()])
TypeError: reduce() of empty sequence with no initial value

After creating an empty file Base/test.xml bcfg2-info is able to produce a config file for the specified host.

Attachments

Change History

comment:1 Changed 15 years ago by desai

  • Status changed from new 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.

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.