Ticket #47 (new defect) — at Initial Version

Opened 16 years ago

Last modified 15 years ago

Empty packages.xml file makes bcfg2-server blow up

Reported by: [email protected] Owned by: desai
Priority: major Milestone:
Component: bcfg2-client Version:
Keywords: Cc:

Description

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

Note: See TracTickets for help on using tickets.