summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugin.py
Commit message (Collapse)AuthorAgeFilesLines
* Some docstrings addedFabian Affolter2010-07-161-9/+15
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5967 ce84e21b-d406-0410-9b95-82705330c041
* Fix broken regex match for owner and mtimeTim Laszlo2010-07-081-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5963 ce84e21b-d406-0410-9b95-82705330c041
* Add the ability to specify important entries via info/info.xmlSol Jerome2010-06-221-3/+8
| | | | | | | | | | | | We currently have 'important' entries specified only inside the code for various client tools. This provides no room for growing that list outside of adding things to the code itself. With this change, users can now specify important entries via an additional attribute in their info.xml files. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5957 ce84e21b-d406-0410-9b95-82705330c041
* Updated files to match PEP 257 Fabian Affolter2010-06-211-67/+68
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5951 ce84e21b-d406-0410-9b95-82705330c041
* Slight change to error messageTim Laszlo2010-06-161-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5943 ce84e21b-d406-0410-9b95-82705330c041
* Reduce select timeouts to 2sTim Laszlo2010-06-161-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5942 ce84e21b-d406-0410-9b95-82705330c041
* ThreadedStatistics: load/save data on startup/shutdownTim Laszlo2010-06-161-4/+82
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5941 ce84e21b-d406-0410-9b95-82705330c041
* Added ThreadedStatistics plugin class. Migrated DBStats to use ↵Tim Laszlo2010-06-071-0/+31
| | | | | | ThreadedStatistics. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5889 ce84e21b-d406-0410-9b95-82705330c041
* Core: Allow the specification of plugin conflicts (Fix for Ticket #875)Sol Jerome2010-04-241-0/+1
| | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
* Fix traceback in bcfg2-admin init by using os.makedirs()Sol Jerome2010-02-051-11/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5713 ce84e21b-d406-0410-9b95-82705330c041
* Plugin.py: Fix docstring for GroupSpoolSol Jerome2010-01-081-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5667 ce84e21b-d406-0410-9b95-82705330c041
* Info: Fix regex for paranoid options in info files [bugfix]Sol Jerome2009-12-211-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5629 ce84e21b-d406-0410-9b95-82705330c041
* Plugin: add a per-plugin runtime debugging infrastructureNarayan Desai2009-11-201-1/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5585 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Remove support for old-style posix entriesSol Jerome2009-11-191-3/+0
| | | | | | | | | | | This commit forces the user to specify <Path> entries on the server side while still maintaining compatibility with old clients via the POSIXCompat plugin. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5582 ce84e21b-d406-0410-9b95-82705330c041
* Plugin.py: Fix Cfg conflicts (Reported by Thorsten Lockert on irc)Sol Jerome2009-11-191-1/+1
| | | | | | | | | Since a Path can now be a file/directory/other type, we need to make sure that we only bind files for Cfg entries. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5581 ce84e21b-d406-0410-9b95-82705330c041
* Fix function name in Metadata baseclassNarayan Desai2009-10-221-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5492 ce84e21b-d406-0410-9b95-82705330c041
* Pylint/PEP 8 Code cleanupsSol Jerome2009-10-071-16/+16
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5477 ce84e21b-d406-0410-9b95-82705330c041
* Fix nasty core hang, which would manifest itself as a lockup upon shutdown ↵Narayan Desai2009-10-021-0/+4
| | | | | | | | | | | | | | | | | | | for bcfg2-{server,info,admin} The root cause of this issue was our use of external threads. Without a channel for data requesting plugin (and hence thread) shutdown, plugin threads would continue, unabated, forever. This would cause the python interpreter to hang forever waiting for a futex. Added a new shutdown method to Bcfg2.Server.Plugin.Plugin which sets a state flag upon shutdown request. Plugin threads must cycle periodically, even if no work is available, to ensure that the shutdown flag is honored in a reasonable amount of time. Also, the shutdown method is triggered using atexit. This means that scripts may need to explicitly sys.exit or raise SystemExit, depending on circumstances. This addresses at least one, but probably more tickets, however I am currently offline. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5472 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Add support for unified Path entriesSol Jerome2009-09-071-0/+3
| | | | | | | | | | | This commit adds support for a new Path entry which unifies all the various POSIX entry types. A new plugin is included which will allow you to transform new Path entries back into their old format (for compatibility with old clients). Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5414 ce84e21b-d406-0410-9b95-82705330c041
* Fix FileBacked class to catch created files againNarayan Desai2009-07-161-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5342 ce84e21b-d406-0410-9b95-82705330c041
* FileCaching: only process file updates on exists and changed events (should ↵Narayan Desai2009-07-161-1/+3
| | | | | | cut down on unneeded and expensive startup ops) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5335 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-admin init: fix traceback (reported by somekool on irc)Narayan Desai2009-07-131-9/+14
| | | | | | Apparently classmethods aren't callable from subclasses if overridden git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5322 ce84e21b-d406-0410-9b95-82705330c041
* Plugin.py: Add configurable metadata settings to bcfg2.conf (ticket #680)Sol Jerome2009-07-011-7/+26
| | | | | | | | | | The default settings for ConfigFile metadata were previously hardcoded in Plugin.py. This change enables setting global user-specified defaults in the [mdata] section of bcfg2.conf. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5308 ce84e21b-d406-0410-9b95-82705330c041
* Changed how bcfg2-admin init handles plugins and added update_client to ↵James Yang2009-06-301-0/+11
| | | | | | metadata for changes in 5305 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5306 ce84e21b-d406-0410-9b95-82705330c041
* Cfg: Fix hardwired filename ignores (Fixes Ticket #619)Narayan Desai2009-06-141-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5280 ce84e21b-d406-0410-9b95-82705330c041
* Fix Pkgmgr virtual package target binding (Reported by TimL)Narayan Desai2009-05-201-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5245 ce84e21b-d406-0410-9b95-82705330c041
* Implement reporting for deprecated plugins, improve reporting for ↵Narayan Desai2009-05-071-0/+1
| | | | | | experimental plugins git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5207 ce84e21b-d406-0410-9b95-82705330c041
* More spelling fixesSol Jerome2009-04-081-1/+1
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5157 ce84e21b-d406-0410-9b95-82705330c041
* Clarify priority conflict error messageSol Jerome2009-03-231-3/+5
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5140 ce84e21b-d406-0410-9b95-82705330c041
* Plugin.py: unify predicatesNarayan Desai2009-03-191-4/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5131 ce84e21b-d406-0410-9b95-82705330c041
* Fix negate attribute for ticket #648Sol Jerome2009-03-191-2/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5129 ce84e21b-d406-0410-9b95-82705330c041
* Split out connector interface to allow for additional data generation based ↵Narayan Desai2009-02-021-4/+8
| | | | | | on complete group list git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5055 ce84e21b-d406-0410-9b95-82705330c041
* Add Version plugin typeSol Jerome2009-01-261-0/+7
| | | | | | | | | | | | | | | The following changes were made: * Remove VCS logic out of the Core * Add Git/Svn plugins * Remove config file directive in bcfg2.conf Use of the plugins are enabled by adding Git or Svn (or both) to the plugins line of bcfg2.conf Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5044 ce84e21b-d406-0410-9b95-82705330c041
* Remove old properties implementation and hardwiringNarayan Desai2009-01-211-32/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5036 ce84e21b-d406-0410-9b95-82705330c041
* Infrastructure and initial implementation of the Packages pluginNarayan Desai2009-01-211-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5029 ce84e21b-d406-0410-9b95-82705330c041
* Finish up Pull Source and multi-Statistics codeNarayan Desai2009-01-121-5/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5012 ce84e21b-d406-0410-9b95-82705330c041
* Split pull functionality into PullSource/PullTarget and rebase Cfg and ↵Narayan Desai2009-01-111-8/+9
| | | | | | SSHbase on PullTarget git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5011 ce84e21b-d406-0410-9b95-82705330c041
* Implement generic structure validators and reimplement Deps as oneNarayan Desai2009-01-061-0/+13
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5005 ce84e21b-d406-0410-9b95-82705330c041
* This patch is stage 1 of the plugin capabilities reworkNarayan Desai2009-01-051-22/+21
| | | | | | | | - define new plugin base classes - switch Plugin.__name__ => Plugin.name git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5004 ce84e21b-d406-0410-9b95-82705330c041
* Implement metadata connector functionalityNarayan Desai2008-12-241-0/+12
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5000 ce84e21b-d406-0410-9b95-82705330c041
* Update dictionary accesses to work with Python 3.0Sol Jerome2008-12-221-7/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4999 ce84e21b-d406-0410-9b95-82705330c041
* server infrastructure for central decision listsNarayan Desai2008-10-081-0/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4932 ce84e21b-d406-0410-9b95-82705330c041
* Implement GetCurrentEntry api for Statistics and DBStats (prereq for ↵Narayan Desai2008-08-071-1/+1
| | | | | | portable bcfg2-admin pull) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4869 ce84e21b-d406-0410-9b95-82705330c041
* add GetCurrentEntry method to StatisticsPluginsNarayan Desai2008-08-061-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4863 ce84e21b-d406-0410-9b95-82705330c041
* Add GetExtra plugin stub methodNarayan Desai2008-08-061-0/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4860 ce84e21b-d406-0410-9b95-82705330c041
* support for alternate metadata plugins in viz admin modeAndrew Brestick2008-08-011-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4846 ce84e21b-d406-0410-9b95-82705330c041
* added support for alternate metadata plugins in bcfg2-adminAndrew Brestick2008-07-311-1/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4845 ce84e21b-d406-0410-9b95-82705330c041
* move xml statistics over to new typed-plugin system (enables ↵Narayan Desai2008-07-221-0/+3
| | | | | | direct-to-django statistics plugin) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4817 ce84e21b-d406-0410-9b95-82705330c041
* lay groundwork for statistics pluginsNarayan Desai2008-07-221-0/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4816 ce84e21b-d406-0410-9b95-82705330c041
* Fix complete entry delete paths for Cfg/TCheetah/TGenshi (issue reported by ↵Narayan Desai2008-07-111-5/+8
| | | | | | SolJ) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4774 ce84e21b-d406-0410-9b95-82705330c041