Modify ↓
Ticket #650 (closed defect: fixed)
PseudoFam mode doesn't work, Gamin-related traceback
Reported by: | kisielk | Owned by: | solj |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.0.0 Release |
Component: | bcfg2-client | Version: | 1.0 |
Keywords: | Cc: |
Description
Running without gamin or FAM installed:
/usr/sbin/bcfg2-server:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead import logging, md5, select, socket, sys, time /usr/lib64/python2.6/site-packages/Bcfg2/Client/Tools/__init__.py:12: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module. import os, popen2, stat, sys, Bcfg2.Client.XML, time /usr/lib64/python2.6/site-packages/Bcfg2/tlslite/utils/cryptomath.py:9: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha Unexpected instantiation failure for plugin Base Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Core.py", line 85, in init_plugins self.plugins[plugin] = plug(self, self.datastore) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Plugins/Base.py", line 25, in __init__ self.core.fam) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 187, in __init__ fam.AddMonitor(name, self) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/FileMonitor.py", line 190, in AddMonitor handle = GaminEvent(handleID, path, 'exists') File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/FileMonitor.py", line 96, in __init__ action_map = {GAMCreated: 'created', GAMExists: 'exists', GAMChanged: 'changed', NameError: global name 'GAMCreated' is not defined Unexpected instantiation failure for plugin Bundler Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Core.py", line 85, in init_plugins self.plugins[plugin] = plug(self, self.datastore) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Plugins/Bundler.py", line 19, in __init__ Bcfg2.Server.Plugin.XMLDirectoryBacked.__init__(self, self.data, self.core.fam) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 187, in __init__ fam.AddMonitor(name, self) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/FileMonitor.py", line 190, in AddMonitor handle = GaminEvent(handleID, path, 'exists') File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/FileMonitor.py", line 96, in __init__ action_map = {GAMCreated: 'created', GAMExists: 'exists', GAMChanged: 'changed', NameError: global name 'GAMCreated' is not defined Unexpected instantiation failure for plugin Cfg Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Core.py", line 85, in init_plugins self.plugins[plugin] = plug(self, self.datastore) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 675, in __init__ self.AddDirectoryMonitor('') File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 723, in AddDirectoryMonitor reqid = self.core.fam.AddMonitor(name, self) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/FileMonitor.py", line 190, in AddMonitor handle = GaminEvent(handleID, path, 'exists') File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/FileMonitor.py", line 96, in __init__ action_map = {GAMCreated: 'created', GAMExists: 'exists', GAMChanged: 'changed', NameError: global name 'GAMCreated' is not defined Failed to instantiate plugin Metadata Unexpected instantiation failure for plugin Pkgmgr Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Core.py", line 85, in init_plugins self.plugins[plugin] = plug(self, self.datastore) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 411, in __init__ XMLDirectoryBacked.__init__(self, self.data, self.core.fam) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 187, in __init__ fam.AddMonitor(name, self) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/FileMonitor.py", line 190, in AddMonitor handle = GaminEvent(handleID, path, 'exists') File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/FileMonitor.py", line 96, in __init__ action_map = {GAMCreated: 'created', GAMExists: 'exists', GAMChanged: 'changed', NameError: global name 'GAMCreated' is not defined Unexpected instantiation failure for plugin Rules Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Core.py", line 85, in init_plugins self.plugins[plugin] = plug(self, self.datastore) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 411, in __init__ XMLDirectoryBacked.__init__(self, self.data, self.core.fam) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 187, in __init__ fam.AddMonitor(name, self) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/FileMonitor.py", line 190, in AddMonitor handle = GaminEvent(handleID, path, 'exists') File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/FileMonitor.py", line 96, in __init__ action_map = {GAMCreated: 'created', GAMExists: 'exists', GAMChanged: 'changed', NameError: global name 'GAMCreated' is not defined Unexpected instantiation failure for plugin SSHbase Traceback (most recent call last): File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Core.py", line 85, in init_plugins self.plugins[plugin] = plug(self, self.datastore) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Plugins/SSHbase.py", line 49, in __init__ self.core.fam) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 187, in __init__ fam.AddMonitor(name, self) File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/FileMonitor.py", line 190, in AddMonitor handle = GaminEvent(handleID, path, 'exists') File "/usr/lib64/python2.6/site-packages/Bcfg2/Server/FileMonitor.py", line 96, in __init__ action_map = {GAMCreated: 'created', GAMExists: 'exists', GAMChanged: 'changed', NameError: global name 'GAMCreated' is not defined Fatal error: No Metadata Plugin
It seems the problem is that the PseudoFam? class instantiates a GaminEvent?, which requires a bunch of stuff imported from the gamin module.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.