Modify

Ticket #47 (closed defect: fixed)

Opened 14 years ago

Last modified 13 years ago

Empty packages.xml file makes bcfg2-server blow up

Reported by: finley@… Owned by: desai
Priority: major Milestone:
Component: bcfg2-client Version:
Keywords: Cc:

Description (last modified by desai) (diff)

I was working on my bcfg2 server the other day, and decided I should create an "updates-that-require-downtime.xml" package list. I didn't want to do it right then, but I wanted to remind myself, so I created an empty file: "touch updates-that-require-downtime.xml".

Then I started having problems:

Apr 14 15:38:34 qa-1 bcfg2-server[11704]: Failed to parse file /var/lib/bcfg2/Pkgmgr/updates-that-require-downtime.xml
Apr 14 15:38:34 qa-1 bcfg2-server[11704]: Processed 1 gamin events in 0.178 seconds. 0 collapsed
Apr 14 15:38:47 qa-1 bcfg2-server[11704]: Cache method called early for /var/lib/bcfg2/Pkgmgr/updates-that-require-downtime.xml; forcing data load
Apr 14 15:38:47 qa-1 bcfg2-server[11704]: Failed to parse file /var/lib/bcfg2/Pkgmgr/updates-that-require-downtime.xml
Apr 14 15:38:47 qa-1 bcfg2-server[11704]: Unexpected failure in BindStructure: Package nis 
Traceback (most recent call last):   
File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 260, in BindStructure
     self.Bind(entry, metadata)   
     File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 272, in Bind
     return glist[0].Entries[entry.tag][entry.get('name')](entry, metadata)
   File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugin.py", line 295, in BindEntry
     matching = [src for src in self.entries.values() TypeError: unsubscriptable object

Attachments

Change History

comment:1 Changed 14 years ago by desai

  • Description modified (diff)

comment:2 Changed 14 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed
  • Description modified (diff)

Fixed in [1c445056e1b7868dffc6d566d14eaa806f11f926] (SVN r1850). Will be included in 0.8.2pre4

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.