summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Snapshots.py
Commit message (Collapse)AuthorAgeFilesLines
* 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