John Mitchell
32d1c0e4db
fixed copyright date
2015-06-11 16:10:23 -04:00
Matthew Jones
3c2f3f323a
Fix some flake8
2015-06-09 16:07:06 -04:00
Matthew Jones
ab5c4b5f20
Check connection for scan jobs before actually running the job, fail
...
early if the system tracking database isn't available
2015-06-09 15:31:23 -04:00
Chris Meyers
f3430783c8
flake8
2015-06-08 10:10:18 -04:00
Chris Meyers
16682ba830
Correctly delete facts when module isn't specified. Also made deletion algorithm more simple and memory efficient by not loading in records into memory.
2015-06-05 17:05:20 -04:00
Matthew Jones
e392add46f
Catch exceptions if there are issues communicating with mongo
2015-06-01 16:00:11 -04:00
Matthew Jones
8006066609
Disable cleanup_facts if the user does not have system tracking enabled
...
in their license file
2015-06-01 10:30:41 -04:00
Chris Meyers
f8fc424ee5
fixed calling of method that never existed
...
When setting an instance as the primary instance project directory
creation may be necessary. Do not perform this action if instance is
secondary.
2015-06-01 08:20:15 -04:00
Chris Church
e23539e69b
Fix flake8 warning.
2015-05-30 16:42:56 -04:00
Chris Church
8eb69b96d1
Set created_by and modified_by on default org to superuser (if found). Fixes https://trello.com/c/gERRKtXa
2015-05-30 16:23:12 -04:00
Chris Church
79a8e541cd
Revert cleanup_deleted to delete one at a time, instead of batches.
2015-05-29 14:52:16 -04:00
Matthew Jones
31d0342d41
More copyright headers for api side stuff
2015-05-29 12:10:40 -04:00
Matthew Jones
b3da3b34a3
Changing some legal headers for python source files
2015-05-29 12:10:39 -04:00
Matthew Jones
10da862ab1
Lower the cleanup_deleted batch size to 50 to reduce overall memory
...
usage during the cleanup operation
2015-05-28 16:37:34 -04:00
Luke Sneeringer
6709654e04
Create a default organization.
2015-05-28 14:04:07 -05:00
Luke Sneeringer
682a804a55
Merge branch 'master' into licenses-unstable
2015-05-22 10:12:41 -04:00
Luke Sneeringer
9cc68d4da7
License differentiation for HA.
2015-05-21 11:35:23 -04:00
Chris Church
7f1c97b167
Include pk in inventory source name to keep it unique even with group renames. Fixes https://trello.com/c/PnmDWCai
2015-05-20 14:00:33 -04:00
Chris Meyers
9bd0ea5d8d
add module fact cleanup granularity
2015-05-18 10:31:36 -04:00
Chris Church
74cfca2f21
Remove pasted code from cleanup_deleted, consistently use logger for cleanup commands.
2015-05-14 15:42:29 -04:00
Chris Meyers
c2a87bbb53
allow user provided fact scan modules
2015-05-12 09:39:37 -04:00
Chris Church
1a5823d0b3
Improve speed of cleanup_deleted system job. Fixes https://trello.com/c/2wB7DMdt
2015-05-11 21:51:42 -04:00
Chris Meyers
ecdc5913f1
added default --days value to --help
2015-04-29 13:50:06 -04:00
Chris Meyers
ee66e98af5
Merge pull request #160 from chrismeyersfsu/feature-cleanup_facts_all_time2
...
support --granularity=0d to delete all facts.
2015-04-27 13:20:17 -04:00
Chris Meyers
f1afae4b80
support --granularity=0d to delete all facts.
...
Still respect --older_than
2015-04-27 11:12:50 -04:00
Matthew Jones
22acd51650
Implementing tower cleanup task for cleaning up facts
2015-04-24 14:15:25 -04:00
Chris Meyers
13aa8fce82
Merge pull request #147 from chrismeyersfsu/fix-azuer
...
handle shutdown azure instances
2015-04-23 10:06:26 -04:00
Matthew Jones
5a401c31aa
Handle any exception that could come from sending a packet to a client
2015-04-22 16:50:37 -04:00
Matthew Jones
fb3bbea027
Add recv_disconnect to acl allowed methods
2015-04-21 14:13:53 -04:00
Chris Meyers
1df51f3c48
better error handling
2015-04-20 17:15:03 -04:00
Chris Church
3f98b40ed7
Add test for cleaning up activity stream, delete objects in batches to make it quicker.
2015-04-16 13:40:36 -04:00
Chris Meyers
bbe23b0071
Merge pull request #133 from chrismeyersfsu/feature-cleanup_facts
...
implemented cleanup_facts command + tests
2015-04-13 15:10:10 -04:00
Chris Meyers
7ecddcfa70
flake8
2015-04-13 11:53:27 -04:00
Chris Meyers
44e5db39ab
implemented cleanup_facts command + tests
2015-04-13 10:45:47 -04:00
Chris Church
48bbac7f18
Fix flake8 warnings.
2015-04-09 22:55:53 -04:00
Chris Meyers
2a039bb31f
moved new fact implementation to fact app
2015-04-07 09:50:35 -04:00
Chris Meyers
a769af0e83
flake8 fixes
2015-04-07 09:50:35 -04:00
Chris Meyers
c03cef022d
Implemented fact scan storage logic.
...
* added mongo connection logic
* added mongo dbtransform logic to allow keys with . and $
* altered tower fact scanner CacheModule to emit a message for each fact module facts (including ansible facts). Previously, seperate facts module facts were getting concatenated to each subsequent emi
* tower fact scanner CacheModule timeout set as to not hang for forever
* broke apart commands.py test
* added unit test for run_fact_cache_receiver, facts, and dbtransform
2015-04-07 09:50:35 -04:00
Chris Church
12e0ec960c
Add support for cleaning up ad hoc commands.
2015-04-02 15:40:12 -04:00
Chris Church
f7b8d510dc
Implement support for ad hoc commands.
2015-03-30 13:04:19 -04:00
Matthew Jones
8204f42972
Merge pull request #108 from matburt/scan_services_implementation
...
Scan services implementation
2015-03-27 13:29:38 -04:00
Matthew Jones
f4d960b127
Fix an issue where going from having 1 or more hosts to having 0 hosts
...
could trigger an inventory sync failure
2015-03-27 13:25:16 -04:00
Matthew Jones
dd44c0a0f2
Initial implementation of the service scanner module
2015-03-19 13:21:45 -04:00
Matthew Jones
bed6f6db5e
Fix flake8 warnings
2015-03-13 13:30:45 -04:00
Matthew Jones
446e15314c
Use transaction atomic for the entire request, just bail on transaction
...
problems to prevent a deadlock scenario
2015-03-13 12:39:26 -04:00
Matthew Jones
0f5beca9ae
Major fixes for job callback receiver processing
...
* Add logic to ansible callback plugin to prevent it from waiting
forever to submit events to Tower
* Lower process recycle threshold for tower callback receiver
* Make recycle threshold configurable
* Properly exit the main callback receiver management process if
the event receiver process is dead so we don't leave dead worker
processes
* Set a configurable maximum number of messages that can be waiting
in a worker process queue before it is skipped instead of filling
up memory on a dead worker process
* Skip over a dead worker process if it's queue is full
* Force restart callback receiver if all queues are dead
* Roll back transaction.atomic with the thought that it is causing
deadlocks in the worker process. Use the old commit_on_success
mechanism with retry logic
* Seperate queue nonblocking expected exception from any other type
of exception that could be encountered on the queue fetch operation
2015-03-13 11:18:18 -04:00
Matthew Jones
323226aefd
Merge pull request #85 from matburt/fact_scans_and_caching
...
Fact scans and caching
2015-02-25 13:50:48 -05:00
Chris Meyers
8ded389600
forgot to call super
2015-02-24 13:34:57 -05:00
Matthew Jones
70f2e5ea1d
Handle unifying the datetime value as a key that we can update on the
...
tower side
2015-02-20 17:19:19 -05:00
Matthew Jones
fd1668dfd8
Implement fact caching service and mongo reference handler
2015-02-20 16:56:35 -05:00