summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Probes.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'maint' into masterSol Jerome2014-04-161-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: doc/appendix/guides/import-existing-ssh-keys.txt misc/bcfg2.spec src/lib/Bcfg2/Client/Tools/VCS.py src/lib/Bcfg2/Client/Tools/YUM.py src/lib/Bcfg2/Encryption.py src/lib/Bcfg2/Reporting/Collector.py src/lib/Bcfg2/Reporting/Storage/DjangoORM.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/FileMonitor/__init__.py src/lib/Bcfg2/Server/Lint/RequiredAttrs.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Packages/__init__.py src/lib/Bcfg2/settings.py src/sbin/bcfg2-crypt src/sbin/bcfg2-reports src/sbin/bcfg2-yum-helper testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/TestAugeas.py
| * fixed pylint testsChris St. Pierre2014-01-301-1/+2
| |
| * load correct JSON library on py2.4Chris St. Pierre2014-01-291-1/+2
| |
* | Merge branch 'maint'Chris St. Pierre2013-12-091-3/+22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/appendix/guides/fedora.txt misc/bcfg2.spec schemas/types.xsd src/lib/Bcfg2/Encryption.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Client.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/Lint/Validate.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/Cfg/CfgEncryptedGenerator.py src/lib/Bcfg2/Server/Plugins/Probes.py src/sbin/bcfg2-crypt testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestCfg/TestCfgEncryptedGenerator.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py testsuite/common.py testsuite/install.sh
| * Probes: added missing docstringChris St. Pierre2013-11-141-0/+3
| |
| * testsuite: fixed unit tests for Probes allowed_groups optionChris St. Pierre2013-11-141-2/+3
| |
| * Add probes.allowed_groups option to restrict group assignments.Simon Ruderich2013-11-141-1/+9
| |
* | Merge branch 'maint'Chris St. Pierre2013-11-111-4/+10
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Server/Admin/Compare.py src/lib/Bcfg2/Server/Admin/Snapshots.py src/lib/Bcfg2/Server/MultiprocessingCore.py src/lib/Bcfg2/Server/Plugins/Probes.py src/sbin/bcfg2-crypt src/sbin/bcfg2-reports tools/upgrade/1.3/migrate_configs.py tools/upgrade/1.3/migrate_perms_to_mode.py
| * Probes: automatically remove duplicate probe dataChris St. Pierre2013-11-111-3/+10
| |
* | Plugins: refactored out unnecessary datastore constructor argumentChris St. Pierre2013-10-291-5/+4
| |
* | Probes: set _use_db property correctlyChris St. Pierre2013-09-231-1/+4
| |
* | Probes: always use database in db-backed probe data storeChris St. Pierre2013-09-231-0/+1
| |
* | Probes: Fixed reading probed.xmlChris St. Pierre2013-09-231-9/+10
| |
* | Pylint/PEP8 fixesSol Jerome2013-09-061-2/+2
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | 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
| |