summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
Commit message (Collapse)AuthorAgeFilesLines
* 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-162-3/+3
| | | | 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-163-4/+87
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5941 ce84e21b-d406-0410-9b95-82705330c041
* Added missing configuration entitiesFabian Affolter2010-06-141-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5928 ce84e21b-d406-0410-9b95-82705330c041
* Call Core.shutdown explicitly when the XMLRPCServer exists. Fixes server ↵Tim Laszlo2010-06-111-3/+4
| | | | | | hang on lucid git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5925 ce84e21b-d406-0410-9b95-82705330c041
* Prevent bcfg2-server from hanging on exit when the Pseudo FileMonitor is usedTim Laszlo2010-06-111-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5923 ce84e21b-d406-0410-9b95-82705330c041
* Added new bcfg2-admin bundle list part Fabian Affolter2010-06-102-15/+78
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5921 ce84e21b-d406-0410-9b95-82705330c041
* tabs -> spacesSol Jerome2010-06-103-5/+5
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Updated files to match PEP 257 Fabian Affolter2010-06-0930-125/+140
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5904 ce84e21b-d406-0410-9b95-82705330c041
* Updated files to match PEP 257 Fabian Affolter2010-06-093-40/+54
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5903 ce84e21b-d406-0410-9b95-82705330c041
* Darcs addedFabian Affolter2010-06-091-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5902 ce84e21b-d406-0410-9b95-82705330c041
* Updated files to match PEP 257Fabian Affolter2010-06-076-30/+29
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5894 ce84e21b-d406-0410-9b95-82705330c041
* Added init command to bcfg2-admin reportsTim Laszlo2010-06-071-0/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5893 ce84e21b-d406-0410-9b95-82705330c041
* updatefix.py doesn't load initial database version for django 1.*Tim Laszlo2010-06-071-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5892 ce84e21b-d406-0410-9b95-82705330c041
* Performance improvements for bcfg2-admin reports scrub.Tim Laszlo2010-06-072-14/+41
| | | | | | | Switched object updates to executemany statements. Added BatchFetch to retreive Django objects in groups. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5891 ce84e21b-d406-0410-9b95-82705330c041
* Switching Statistics.py to ThreadedStatisticsTim Laszlo2010-06-071-19/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5890 ce84e21b-d406-0410-9b95-82705330c041
* Added ThreadedStatistics plugin class. Migrated DBStats to use ↵Tim Laszlo2010-06-072-7/+38
| | | | | | ThreadedStatistics. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5889 ce84e21b-d406-0410-9b95-82705330c041
* Threaded Statistics.py and fixed xml corruptionTim Laszlo2010-06-041-5/+19
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5888 ce84e21b-d406-0410-9b95-82705330c041
* Switch location to hostname. Urls break things.Tim Laszlo2010-06-042-11/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5887 ce84e21b-d406-0410-9b95-82705330c041
* Initial version of admin tool for reportsTim Laszlo2010-06-032-1/+190
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5886 ce84e21b-d406-0410-9b95-82705330c041
* Performance updates to dynamic reportsTim Laszlo2010-06-037-60/+140
| | | | | | | | | | | | | | | | | Added bad_entries, modified_entries, extra_entries database fields to reduce the number of calls. Created (bad|modified|extra)_entry_count methods to return the sbove fields and populate any missing values. Consolidate interaction_per_client query. Added unique constraint on client_id and timestamp in Interaction. Greatly improved the performance of interaction_per_client. Modified detailed-list.html to add modified field and reduce the database calls to two... unless the bad_entries, modified_entries, extra_entries fields need updating. Modified client index to use only two database queries. Adding automatic update Updating load_stats to update counters in reports_interaction git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5885 ce84e21b-d406-0410-9b95-82705330c041
* Added experimental tagFabian Affolter2010-06-032-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5882 ce84e21b-d406-0410-9b95-82705330c041
* Experimental Darcs plugin addedFabian Affolter2010-06-031-0/+48
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5881 ce84e21b-d406-0410-9b95-82705330c041
* Standardized doc strings of the VCS pluginsFabian Affolter2010-06-034-5/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5880 ce84e21b-d406-0410-9b95-82705330c041
* Comment addedFabian Affolter2010-06-013-0/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5872 ce84e21b-d406-0410-9b95-82705330c041
* Assoicated elements only displays current elementTim Laszlo2010-06-011-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5871 ce84e21b-d406-0410-9b95-82705330c041
* Add option to log importscript.py messages to syslogTim Laszlo2010-05-261-9/+13
| | | | | | | Since we need the ability to do this for DBStats.py it doesn't hurt to add this if importscript.py runs with statistics.xml data. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5868 ce84e21b-d406-0410-9b95-82705330c041
* Use logging instead of print statements in importscript.pyTim Laszlo2010-05-262-13/+22
| | | | | | | | Switch from print statements to the standard Logger.py functions. This allows load_stats in importscript.py to log error messages when daemonized. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5867 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Handle errors in load_statsTim Laszlo2010-05-261-8/+14
| | | | | | | | If any of the sql database insertsor selects failed, the all of the data for the client at that point was lost. This uses an empty Reason object to preserve the rest of the data. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5866 ce84e21b-d406-0410-9b95-82705330c041
* Terminate fam thread on shutdownTim Laszlo2010-05-241-2/+6
| | | | | | | | | When the bcfg2-server exits the fam thread is left running which hangs the process on exit. Resolves Ticket #709 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5863 ce84e21b-d406-0410-9b95-82705330c041
* Hg: New Mercurial plugin from Fabian AffolterSol Jerome2010-05-222-0/+47
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5862 ce84e21b-d406-0410-9b95-82705330c041
* reports: Fixes for Tickets #833 and #885Sol Jerome2010-05-203-7/+8
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5861 ce84e21b-d406-0410-9b95-82705330c041
* Core: Allow the specification of plugin conflicts (Fix for Ticket #875)Sol Jerome2010-04-243-0/+14
| | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
* Packages: fix handling of negative recommended directiveNarayan Desai2010-04-171-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5828 ce84e21b-d406-0410-9b95-82705330c041
* Packages: fix up config file readingNarayan Desai2010-04-171-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5827 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement support for recommended packages in APTSourcesNarayan Desai2010-04-171-6/+16
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5826 ce84e21b-d406-0410-9b95-82705330c041
* Hostbase: Fix a bug that caused setup.py to bailSol Jerome2010-04-1020-35/+35
| | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
* Hostbase/settings.py: Reset language default back to en-usSol Jerome2010-04-101-1/+1
| | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
* Packages: handle BoundPackage entries for prereq processingNarayan Desai2010-04-081-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5810 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement blacklist functionalityNarayan Desai2010-04-081-6/+16
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5809 ce84e21b-d406-0410-9b95-82705330c041
* Remove whitespaceSol Jerome2010-04-0822-75/+66
| | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
* Generic viewsRene Martin2010-04-085-114/+84
|
* Generic viewsRene Martin2010-04-082-0/+112
|
* Ignoring some files.Rene Martin2010-04-081-0/+3
|
* Trying to commit all my workRene Martin2010-04-0810-241/+157
|
* Initial port from Django 0.95 to Django 1.1.Rene Martin2010-04-082-0/+69
| | | | | | | | | | There are lots of things to change, from new admin interface to all the forms. I'm already changed some views to generic ones. All the models are "fixed" to fit in 1.1 specification. Some refactor in url's, named url's added too
* Fix configfile option for bcfg2-admin (Patch from Duncan Hutty)Sol Jerome2010-04-071-1/+2
| | | | | | | Also added a document describing various admin modes (needs to be fleshed out). Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
* SSHbase: Use shutil as per Lee's suggestion in Ticket #866Sol Jerome2010-03-251-2/+3
| | | | | | | | | | | | | | | | | | | | | From the ticket: --- From what I can tell, there is an os.system call (line #214 of Bcfg2/Server/Plugins/SSHbase.py) that is supposed to fire off ssh-keygen to generate the keys in a temporary directory. It seems that this call isn't generating the keys correctly. Adding in some debug os.listdir(tempdir) calls before and after the os.system call, shows that there are no files before and after the os.system call. Running the command manually generates valid key pairs. --- So, while this commit won't fix the os.system call, it should at least prevent the plugin from generating empty ssh keys. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5794 ce84e21b-d406-0410-9b95-82705330c041
* SSHbase: Generate known_hosts file in consistent order (Patch from Lee Loucks)Sol Jerome2010-03-251-31/+32
| | | | | | | | | | | | | | | | From Ticket #869: Because the order of a python set is dependent on the order of the hash of entries of that set, the get_skn method generates a entries in the ssh_known_hosts with the names ordered according to their has instead of a consistent (from the user point of view) order. Some entries are IP, hostname and other entries are hostname, IP. This patch corrects that. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5793 ce84e21b-d406-0410-9b95-82705330c041
* Viz: Include xincluded files from groups.xml (Resolves Ticket #867)Sol Jerome2010-03-251-0/+4
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5790 ce84e21b-d406-0410-9b95-82705330c041