summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Probes.py
Commit message (Collapse)AuthorAgeFilesLines
* Probes: Fix unicode probesSol Jerome2013-09-011-3/+8
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Revert "Probes: Decode value for python 3"Sol Jerome2013-09-011-1/+1
| | | | This reverts commit c9be23ce06c04286851383c968c6e075a4005b75.
* Probes: Decode value for python 3Sol Jerome2013-09-011-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Merge branch 'maint'Sol Jerome2013-09-011-1/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Server/BuiltinCore.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/Plugins/NagiosGen.py src/lib/Bcfg2/Server/Plugins/Probes.py src/lib/Bcfg2/Server/SSLServer.py tools/README
| * Probes: Disable builtin redefinition checkSol Jerome2013-08-101-1/+1
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * Probes: Fix unicode probe handlingSol Jerome2013-08-101-1/+5
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * Revert "Probes: Fix failing nosetests"Sol Jerome2013-08-101-4/+10
| | | | | | | | | | | | This reverts commit 4f745cc2731f7035f02566ba8bc1a0e9ae1b1a71. This breaks handling of unicode on python 2.
* | Probes: rewrite for new caching systemChris St. Pierre2013-08-161-173/+236
| | | | | | | | | | | | | | | | | | | | | | Substantially rewrote the way the Probes plugin caches data. Formerly, it was structured to assume that probe data was stored in probed.xml, with the database feature very much a second-class citizen; this adds a proper abstraction layer between the persistent storage and the plugin (and its caches). Also rewrote most Probes unit tests to actually be useful unit tests, not implementation tests.
* | testsuite: fixed more unit testsChris St. Pierre2013-08-121-2/+2
| |
* | testsuite: fixed most pylint complaintsChris St. Pierre2013-08-091-0/+5
| |
* | Plugins: Fixed/made consistent Django model loadChris St. Pierre2013-08-091-1/+1
| |
* | testsuite: fixed unit tests for server pluginsChris St. Pierre2013-08-091-7/+8
| |
* | Merge branch 'options-rewrite'Chris St. Pierre2013-08-081-12/+23
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Init.py src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/BuiltinCore.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/MultiprocessingCore.py src/lib/Bcfg2/Server/Plugin/base.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Packages/__init__.py src/lib/Bcfg2/Server/SSLServer.py src/lib/Bcfg2/Utils.py src/lib/Bcfg2/settings.py src/sbin/bcfg2-crypt src/sbin/bcfg2-info src/sbin/bcfg2-lint src/sbin/bcfg2-test src/sbin/bcfg2-yum-helper tools/bcfg2-profile-templates.py
| * | Options: migrated plugins to new options parserChris St. Pierre2013-06-271-12/+23
| | |
* | | Merge branch 'maint'Chris St. Pierre2013-08-081-8/+31
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/appendix/files/mysql.txt doc/getting_started/index.txt doc/server/plugins/structures/bundler/kernel.txt src/lib/Bcfg2/Server/MultiprocessingCore.py src/lib/Bcfg2/Server/Plugin/interfaces.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Probes.py src/lib/Bcfg2/Server/Plugins/SSHbase.py
| * | Plugin: added new Caching interfaceChris St. Pierre2013-08-071-3/+9
| | | | | | | | | | | | | | | | | | | | | This gives a single unified interface for expiring caches, no matter the plugin. This will be particularly useful with the MultiprocessingCore, as certain calls must be dispatched to child processes to expire their caches.
| * | Probes: properly clear cacheChris St. Pierre2013-08-061-2/+4
| | | | | | | | | | | | | | | When reloading probe groups/data for a single client from the database, only clear data for that client, not for all clients.
| * | Probes: expire metadata cache after loading dataChris St. Pierre2013-08-061-0/+6
| | |
| * | Probes: fixed unit testChris St. Pierre2013-08-051-1/+1
| | |
| * | Multiprocessing: proxy RecvProbeData callsChris St. Pierre2013-08-051-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | This proxies RecvProbeData calls to child cores to expire the probe cache. The probe data itself is not relayed, just the fact that there was probe data received from a given client. Fixes #129.
* | | Merge branch 'maint'Sol Jerome2013-07-081-2/+2
|\| | | |/ |/| | | | | | | Conflicts: src/lib/Bcfg2/settings.py src/sbin/bcfg2-crypt
| * pep8: fixed testsChris St. Pierre2013-07-021-2/+2
| |
* | Merge branch 'maint'Chris St. Pierre2013-06-271-6/+10
|\| | | | | | | | | | | | | | | | | Conflicts: doc/server/plugins/generators/cfg.txt doc/server/plugins/generators/tcheetah.txt src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
| * Probes: Fixing Django exception importJason Kincl2013-06-171-1/+2
| |
| * Probes: no need to .save() after .get_or_create()Chris St. Pierre2013-06-171-1/+1
| |
| * Probes: no need to .save() after .get_or_create()Chris St. Pierre2013-06-141-1/+1
| |
| * Probes: reduce race condition that can result in multiple probe groupsChris St. Pierre2013-06-131-6/+9
| |
* | Merge branch 'maint'Chris St. Pierre2013-05-171-10/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/appendix/guides/centos.txt doc/server/plugins/grouping/metadata.txt setup.py src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Client/Proxy.py src/lib/Bcfg2/Server/Lint/Genshi.py src/lib/Bcfg2/Server/Lint/Validate.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/SSHbase.py src/sbin/bcfg2-lint
| * Probes: Fix failing nosetestsSol Jerome2013-05-101-10/+4
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Merge branch 'maint'Chris St. Pierre2013-04-241-16/+36
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Client/Tools/YUM.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Perf.py src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/Admin/__init__.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/FileMonitor/Fam.py src/lib/Bcfg2/Server/Lint/RequiredAttrs.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Base.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py src/lib/Bcfg2/Server/Plugins/Cvs.py src/lib/Bcfg2/Server/Plugins/Darcs.py src/lib/Bcfg2/Server/Plugins/Decisions.py src/lib/Bcfg2/Server/Plugins/FileProbes.py src/lib/Bcfg2/Server/Plugins/Fossil.py src/lib/Bcfg2/Server/Plugins/Git.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/Plugins/NagiosGen.py src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py src/lib/Bcfg2/Server/Plugins/Packages/Source.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Properties.py src/lib/Bcfg2/Server/Plugins/__init__.py src/lib/Bcfg2/Server/__init__.py src/sbin/bcfg2-build-reports src/sbin/bcfg2-crypt testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestMetadata.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProperties.py
| * pep-8: fixed indentation?Chris St. Pierre2013-04-161-2/+2
| |
| * Probes: Fix pylint errorSol Jerome2013-04-101-1/+2
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * PY3K: Fix client/server to work with python 3Sol Jerome2013-04-101-4/+12
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * Probes: fixed long linesChris St. Pierre2013-03-291-8/+9
| |
| * Probes: Handle unicode probesSol Jerome2013-03-291-3/+13
| | | | | | | | | | | | | | | | There is no good way of sending unicode probes to older clients which do not have support for them. This change will cause unicode probes to be skipped for unsupported clients and handled properly for new clients. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * testsuite: fixed more unit test stuffChris St. Pierre2013-03-261-2/+3
| |
| * fixed regex errors introduced by 6c996f42c53a36fc0406f836d64b8c1bec6f4bccChris St. Pierre2013-03-261-1/+1
| |
| * testsuite: fixed issues found by latest version of pylintChris St. Pierre2013-03-261-4/+4
| |
| * testsuite: fixed issues found by latest version of pep8Chris St. Pierre2013-03-261-6/+5
| |
* | moved some libraries in Bcfg2/ into more specific (Server/ or Client/) placesChris St. Pierre2013-02-051-3/+4
| |
* | added a module-level FAM object to avoid passing it as an argument a billion ↵Chris St. Pierre2013-01-171-3/+4
|/ | | | times
* gave ProbeSet a pretty stringification for debug outputChris St. Pierre2012-11-271-0/+3
|
* fixed unit testsChris St. Pierre2012-10-291-0/+3
|
* added database locking to MetadataChris St. Pierre2012-10-291-2/+2
|
* Probes/DatabaseBackend: add a thread lock for databases that cannot handle ↵Tim Laszlo2012-10-261-0/+1
| | | | multiple writes
* Update internal probe data at once.Tim Laszlo2012-10-231-13/+10
| | | | | | | When a large number of clients upload probe data at once, the data is occasionally written out before the data is fully populated. This causes writes to fail with KeyErrors on the server and clients to stop running.
* copy probe data when writing probed.xml to avoid race conditionChris St. Pierre2012-10-191-6/+11
|
* added support for JSON and YAML properties filesChris St. Pierre2012-10-151-9/+3
|
* wrote sphinx docs for base server CoreChris St. Pierre2012-10-151-1/+1
|
* Packages: updated pulp repo handling to latest Pulp v1 APIChris St. Pierre2012-10-111-1/+1
|