Modify

Ticket #1043 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

Packages Traceback when plugin is enabled, but no sources.xml is created yet

Reported by: https://www.google.com/accounts/o8/id?id=AItOawkPb0RtPyicSdU7pLcv1UrX-yCh-YjkOwU Owned by: desai
Priority: major Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:

Description

$ sudo bcfg2-info
Unexpected instantiation failure for plugin Packages
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/Bcfg2/Server/Core.py", line 171, in init_plugins
    self.plugins[plugin] = plug(self, self.datastore)
  File "/usr/lib/pymodules/python2.6/Bcfg2/Server/Plugins/Packages.py", line 829, in __init__
    self.cachepath, core.fam, self)
  File "/usr/lib/pymodules/python2.6/Bcfg2/Server/Plugins/Packages.py", line 734, in __init__
    Bcfg2.Server.Plugin.SingleXMLFileBacked.__init__(self, filename, fam)
  File "/usr/lib/pymodules/python2.6/Bcfg2/Server/Plugin.py", line 575, in __init__
    fam.AddMonitor(filename, self)
  File "/usr/lib/pymodules/python2.6/Bcfg2/Server/FileMonitor.py", line 279, in AddMonitor
    mode = os.stat(path)[stat.ST_MODE]
OSError: [Errno 2] No such file or directory: '/var/lib/bcfg2/Packages/sources.xml'

ISTM that either blank file should be created or more user friendly message is output.

Attachments

Change History

comment:1 Changed 11 years ago by solj

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

Fixed in 49e51224e3b7637c516ad11391e0e382a158d501. Thanks for the report.

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.