Modify ↓
Ticket #1043 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.
Fixed in 49e51224e3b7637c516ad11391e0e382a158d501. Thanks for the report.