summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Snapshots.py
Commit message (Collapse)AuthorAgeFilesLines
* PY3K: Add compatibility commentsSol Jerome2011-06-151-0/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Plugins: Add full PY3K compatibilitySol Jerome2011-04-261-15/+25
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Plugins: PY3K + PEP8 fixesSol Jerome2011-04-061-2/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Snapshots: Use custom bcfg2.conf when specified (Fix for #839)Sol Jerome2010-02-081-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5716 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: Revert changes from [5582] so that old client compatibility is ↵Sol Jerome2009-12-101-4/+15
| | | | | | | | | | | | maintained Older clients (used via POSIXCompat) still have old-style posix entries. This commits allows for old or new client statistics to be uploaded to the snapshots database. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5619 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Remove support for old-style posix entriesSol Jerome2009-11-191-15/+8
| | | | | | | | | | | 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
* Use proper logging for snapshot storage time.David Strauss2009-11-051-1/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5538 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: Add missing datafields for Directory and SymLink to match listed ↵David Strauss2009-11-051-2/+3
| | | | | | ftypes. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5536 ce84e21b-d406-0410-9b95-82705330c041
* Pylint/PEP 8 Code cleanupsSol Jerome2009-10-071-1/+4
| | | | | | 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-2/+5
| | | | | | | | | | | | | | | | | | | 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
* Snapshots: make importer async, and serialize db loadsNarayan Desai2009-07-231-1/+11
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5380 ce84e21b-d406-0410-9b95-82705330c041
* Remove unused imports for pylintSol Jerome2009-04-171-3/+3
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5168 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: fix Statistics data location in importerNarayan Desai2009-04-151-5/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5166 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: Fix extra entry data importNarayan Desai2009-03-211-3/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5135 ce84e21b-d406-0410-9b95-82705330c041
* Add revision and correct fields to snapshot class; should simplify most queriesNarayan Desai2009-03-211-1/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5133 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: Finish off importer (for old-style statistics)Narayan Desai2009-03-061-25/+58
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5108 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: undo last commitNarayan Desai2009-03-051-2/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5107 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: improve generality of the importerNarayan Desai2009-03-051-1/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5106 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: improve generality of the importerNarayan Desai2009-03-051-14/+14
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5105 ce84e21b-d406-0410-9b95-82705330c041
* Get Snapshots working for Service entriesNarayan Desai2009-03-031-17/+25
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5095 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots update - storage of packages works from clients (old-style statistics)Narayan Desai2009-03-021-0/+56
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5092 ce84e21b-d406-0410-9b95-82705330c041