Commit Graph

20 Commits

Author SHA1 Message Date
Chris Meyers
5759db1229 flake8 fix 2016-03-04 14:14:10 -05:00
Chris Meyers
7494b13704 find correct fact to update
* The fact cache receiver needs to look for an exact match, rather than
* a relative, most recent fact.
2016-03-04 11:41:08 -05:00
Chris Meyers
7ffe46fc74 add postgres Fact model, update views, tests
* awx.main.models Fact added
* view host fact and timeline updated to use new Postgres Fact model instead of Mongo
* Removed license set start Mongo logic
* added View tests
* added Model tests
* Removed mongo fact unit tests
* point at modified jsonbfield that supports sqlite storage driver
* postgresify fact cache receiver
* test OPTIONS endpoint
* Note: single fact view not implemented yet.
2016-02-24 14:38:54 -05:00
Matthew Jones
2f39393cf3 Implement fact receiver thread worker
Optionally allow processing of fact receiver messages in a worker
thread.  This works around an issue where data could take a while to
page into Mongo and cross the zmq socket timeout.
2015-08-28 10:59:52 -04:00
Chris Meyers
713f18438c added more logging for fact cache receiver 2015-06-24 14:07:18 -04:00
Chris Meyers
d5b7be3f4f Merge pull request #276 from chrismeyersfsu/fix-fact_inventory_relationship
associate scan runs with a particular inventory host
2015-06-11 20:55:13 -04:00
John Mitchell
32d1c0e4db fixed copyright date 2015-06-11 16:10:23 -04:00
Chris Meyers
0c7638bdd7 associate scan runs with a particular inventory host 2015-06-11 15:14:00 -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
Matthew Jones
e392add46f Catch exceptions if there are issues communicating with mongo 2015-06-01 16:00:11 -04:00
Matthew Jones
31d0342d41 More copyright headers for api side stuff 2015-05-29 12:10:40 -04:00
Chris Meyers
c2a87bbb53 allow user provided fact scan modules 2015-05-12 09:39:37 -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
Matthew Jones
dd44c0a0f2 Initial implementation of the service scanner module 2015-03-19 13:21:45 -04: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
Matthew Jones
fed4262ee2 Some light implimentation details for basic fact caching and collection 2015-02-19 11:27:40 -05:00