summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Reporting
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'cleanup_pidfile' of https://github.com/mattikus/bcfg2 into maintSol Jerome2014-10-231-16/+22
|\
| * Remove PIDFileError as it does not always exist in the package and is rarely ↵Matt Kemp2014-10-021-5/+0
| | | | | | | | used.
| * Catch possible typeerror resulting from None being returned when reading the ↵Matt Kemp2014-10-021-1/+1
| | | | | | | | pid.
| * Fixes to ensure pidfile can be opened or broken if stale.Matt Kemp2014-10-011-18/+11
| |
| * Attempt to break the pid lock during startup.Matt Kemp2014-10-011-8/+26
| | | | | | | | | | | | | | | | This commit attempts to break the pidfilelock during startup in cases where the process may have exited without successfully cleaning up the lockfile. It also attempts to grab the lock before opening the context. Also applied to the Collector module, which may have been looking for the wrong exception since it does not rely on a timeout.
* | Reporting: better exception handlingAlexander Sulfrian2014-10-201-33/+44
| | | | | | | | Try to keep the try-except-blocks as small as possible.
* | Reporting: fix filter urlsAlexander Sulfrian2014-10-121-6/+6
| | | | | | | | | | | | The regex match for the filter urls were to strict. They disallowed some charaters, that are valid in group names and so the django reverse mechanism for building urls failed.
* | Use older nested try syntax for finally for python 2.4 compatMichael Fenn2014-09-101-4/+5
| |
* | Version bump to 1.3.5v1.3.5Sol Jerome2014-09-051-1/+1
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Reporting: Remove duplicate methodSol Jerome2014-08-141-3/+0
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Reporting: Fix prune items import and displaySol Jerome2014-07-152-2/+2
|/ | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reporting: Log to debug to prevent spam in logsSol Jerome2014-04-161-2/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-report-collector: better error messages when failing to daemonizeChris St. Pierre2014-03-041-0/+13
|
* Reporting: properly close db connectionChris St. Pierre2014-02-282-4/+6
| | | | | | | | | Close the db connection at the end of each DjangoORM import, not when the reporting collector shuts down. The collector may not have even opened a connection, in the case of a storage backend other than DjangoORM. Fixes #157
* Version bump to 1.3.4Sol Jerome2014-02-251-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* ensure that DB connections are always closed at thread/process exitChris St. Pierre2014-02-181-3/+6
|
* Reporting: occasionally reap child threadsMichael Fenn2014-01-101-0/+23
| | | | | | | | I noticed that, at least on Python 2.4, memory for threads doesn't get freed until the threads are joined. This patch causes the collector to periodically go through and reap those threads. Tested in production for ~1 month, no reported issues.
* Reporting: Remove wildcard importsSol Jerome2013-11-163-6/+3
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reports: Add missing ImportErrorSol Jerome2013-11-111-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Fix compatibility with Django 1.6.Simon Ruderich2013-11-114-4/+22
|
* Version bump to 1.3.3v1.3.3Sol Jerome2013-11-071-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Revert "Reporting: Simple sanity check to avoid creating too many threads"Michael Fenn2013-10-141-3/+0
| | | | | | | | This reverts commit f813f86f8ac2bc7b55f4eb6a0d936f1ce4f68ba7. Premature optimization is the root of all evil, etc. Conflicts: src/lib/Bcfg2/Reporting/Collector.py
* Reporting: misc improvements to collector threadingMichael Fenn2013-10-101-4/+6
| | | | | | 1. Use a better convention for calling the threading.Thread constructor 2. Add docstring to ReportingStoreThread.run 3. Give the storage thread variable a better name
* Reporting: Simple sanity check to avoid creating too many threadsMichael Fenn2013-10-091-0/+3
|
* Reporting: start a new thread for each importMichael Fenn2013-10-091-10/+29
| | | | | | | | | | | | | | | | | When dealing with a high-latency database connection (eg. across a WAN), the bcfg2-report-collector process can fall behind in its import queue. The imports are very much bound by the response latency of the database server and not processing throughput. This patch fires off a new thread for each database interaction. The thread itself simply falls out of scope when the interaction is finished processing. The interaction object is still read from the disk serially in order avoid having to create a locking mechanism for that part of the process. This change does potentially create greater load on the database server, but ultimately the load is limited by rate at which the bcfg2 server can generate work.
* Reporting: have bcfg2-report-collector be explicit about detachingMichael Fenn2013-08-191-1/+1
| | | | | | | | | Following the same logic as 360ba2e7, we should be explicit about the need to detach the bcfg2-report-collector process. Side note: this bit me because I was starting the bcfg2 server processes via SSH, and the way python-daemon checks for being started by inetd is to see if stdin is a socket. (??)
* Reporting: Fix typoSol Jerome2013-08-081-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Version bump to 1.3.2v1.3.2Sol Jerome2013-07-011-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reporting: Fix traceback when run interactivelySol Jerome2013-06-171-2/+4
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reporting: exclude failures type from detail viewSol Jerome2013-06-051-0/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Merge branch 'django-1.5' into maintSol Jerome2013-06-0513-77/+121
|\
| * Add url loads for all templatesSol Jerome2013-05-069-0/+33
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * Reports: Add support for Django 1.5Sol Jerome2013-04-2913-77/+88
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Reporting: Fix tracebackSol Jerome2013-05-291-14/+18
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Another fix for null target_status in Reporting_sericeentry. This one covers ↵Jake Davis2013-05-281-1/+2
| | | | | | | | Extra entries.
* | exclude failures type from Interaction.bad/modified/extraTim Laszlo2013-05-151-0/+6
| | | | | | | | (cherry picked from commit 06bc603bbfb7615a2840c7bef0ef37013c585adf)
* | models: Fix table name quoting for pgsqlSol Jerome2013-05-101-6/+24
|/ | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reporting: Add back TransportError importSol Jerome2013-04-241-1/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Reporting: better error messages when transport fails to loadChris St. Pierre2013-04-241-9/+8
|
* Reporting: Add failures entry typeSol Jerome2013-04-091-3/+5
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* LocalFilesystem: Use binary data formatSol Jerome2013-04-081-2/+2
| | | | | | | The pickle class returns 'bytes' objects in python 3 instead of 'str' objects which were returned in python2. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* fixed various debugging bitsChris St. Pierre2013-03-211-2/+4
|
* Merge branch '1.3.2' into maintChris St. Pierre2013-03-216-180/+1297
|\ | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Tools/__init__.py src/sbin/bcfg2-test testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/Test__init.py testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIXUsers.py testsuite/Testsrc/test_code_checks.py
| * Reporting: added support for POSIX user/group entriesChris St. Pierre2013-03-083-1/+386
| |
| * Reporting: added support for various SELinux entriesChris St. Pierre2013-03-085-180/+912
| |
* | Version bump to 1.3.1v1.3.1Sol Jerome2013-03-211-1/+1
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Fix the group filter dropdown on firefoxTim Laszlo2013-03-181-1/+1
| |
* | Version bump to 1.3.0v1.3.0Sol Jerome2013-03-151-1/+1
|/ | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Batch deletes for sqliteTim Laszlo2013-01-301-1/+7
|
* Batch adding entries to interactions for sqliteTim Laszlo2013-01-301-1/+5
|