Commit Graph

586 Commits

Author SHA1 Message Date
Matthew Jones
8d423cf82e Fix a corner case where a job failure could kill the task manager
because the job failure couldn't grab some extra info for the socketio
service

Fixes: https://trello.com/c/XdjJEhJ0/68-socketio-trackebac
2014-06-30 15:13:45 -05:00
Matthew Jones
e627ee0711 Implement a recycling process for consuming job events to keep from
dealing with a constantly growing heap deep in python land
2014-06-30 10:04:13 -05:00
Chris Church
0622dd101c Support caching for ec2 inventory sync to avoid unit test failures. 2014-06-28 18:16:37 -04:00
Matthew Jones
1e00529fac Fix an issue where we weren't creating job events for hosts that didn't
exist in our inventory
2014-06-27 13:47:48 -04:00
Matthew Jones
92117ae460 Copy socket list in place to prevent a runtimeerror when the socket list
gets updated in the middle of notifications

Fixes https://trello.com/c/Q0bwCU9R/61-traceback-from-run-socketio-service
2014-06-27 13:21:52 -04:00
Chris Church
fcf41d74cf Add test license for ec2 import to make jerkins happy. 2014-06-26 18:02:08 -04:00
Chris Church
7229f9cc8f AC-1302 Update EC2 inventory script to create hierarchical groups.
Conflicts:
	awx/main/tests/inventory.py
2014-06-26 14:54:51 -04:00
Matthew Jones
d4ef57bab6 Add absolute end value for limited json stdout view 2014-06-26 11:21:03 -04:00
Chris Church
3b9fe8b954 Fix failing rax unit test, nly check that enabled flag is set on hosts that were previously enabled insead of all hosts. 2014-06-25 12:35:50 -04:00
Matthew Jones
41e1d809b5 Refactor job event collection to build and manage an internal cache of
potential parent values to reduce the number of queries to the database
2014-06-24 10:37:06 -04:00
Matthew Jones
8d78755ef4 Fix some invalid assumptions about hosts and jobs where we assume a job
template will always be available
2014-06-23 13:39:09 -04:00
Matthew Jones
788cf2e24e Report range information with json format endpoint on job stdout 2014-06-23 12:24:43 -04:00
Luke Sneeringer
4eddd692fb Merge branch 'vagrant-unstable' 2014-06-19 14:54:16 -05:00
Matthew Jones
7530a6e35f Allow limiting the stdout view given start_line and end_line parameters 2014-06-19 15:45:10 -04:00
Luke Sneeringer
2f1d667e64 Don't run the large inventory timing test locally.
This commit turns off local execution of the timing test for a large
inventory.

This test is pointless on local development, where (1) memory varies
widely and (2) we're using an entirely different database (SQLite) for
testing.

Pulling it out makes local testing considerably quicker and avoids
specious failures.
2014-06-18 15:41:08 -05:00
Luke Sneeringer
25abbc1c16 Add a space to an error message. Fixes AC-1156. 2014-06-12 16:46:48 -05:00
Matthew Jones
e72728b38c Add schedule based socket.io events for AC-1333 2014-06-10 15:58:57 -04:00
Matthew Jones
718e9916f0 Fix a bug in the mainline inventory test 2014-06-06 15:52:28 -04:00
Matthew Jones
6773fd19d7 Implement passive copying as a new host to a group
requires that the variables isn't special on the new host
implements AC-1265
2014-06-06 15:22:56 -04:00
Chris Church
24df1a88ee AC-1295 Allow host names to contain brackets when importing from JSON sources. 2014-06-06 14:17:12 -04:00
Chris Church
3a5db149e9 Generate large test license for cloud inventory import unit tests. 2014-06-05 16:20:17 -04:00
Chris Church
d2d7ac3d1c Save/restore current directory for each test. 2014-06-05 16:02:58 -04:00
James Laska
c45926411c Disable DEBUG for unittests 2014-06-05 12:14:09 -04:00
Matthew Jones
859cc651e8 Force handle playbook_on_play_start messages early
Fixes issue AC-1277 where event parents were getting associated incorrectly
2014-06-05 11:37:25 -04:00
Matthew Jones
4ab2207dd2 Fix issue #1253... mention the tower product and version in the 404 data string 2014-06-04 14:05:57 -04:00
Matthew Jones
fe925f1925 Heavily refactor group recursive delete provides closure for AC 2014-05-28 00:44:13 -04:00
Matthew Jones
7160bff363 Use through table reference to slightly improve host-group association removal 2014-05-23 15:57:03 -04:00
Matthew Jones
e2fb427789 Vastly improve overall group delete performance
Conflicts:
	awx/main/models/inventory.py
	awx/main/tasks.py
2014-05-23 14:30:13 -04:00
Matthew Jones
12ecc46398 Fix a bug where we allowed adding a group as a child of a
deleted/inactive group
2014-05-23 14:27:08 -04:00
Matthew Jones
3d90c6db76 Deref deleted group immediately and then pass off the children and hosts
to be processed in the background.

Get rid of the child relative delete mechanism and merge the old concept
of delete on the /group/n endpoint with our new concept
2014-05-21 16:12:42 -04:00
Chris Church
ad3b1143bf AC-1235 Fix bug when importing large number of groups into existing inventory, sort group/host names on import to make output a little easier to follow. 2014-05-20 15:49:36 -04:00
Matthew Jones
56f9912edb Fix up recursive safe delete rbac and add unit test 2014-05-19 15:02:17 -04:00
Matthew Jones
fe29db1a46 Fix small plurality issue when recalculating host fields 2014-05-19 11:15:56 -04:00
Matthew Jones
71d256583d Remove cache control actions from inventory models 2014-05-19 11:10:02 -04:00
Matthew Jones
989aa180ce Remove memcached support, alter host fields to not show some expensive
summary elements

Conflicts:
	CONTRIBUTING.md
	setup/roles/packages_el/vars/default.yml
	setup/roles/packages_ubuntu/tasks/main.yml
2014-05-19 11:09:44 -04:00
Chris Church
6be2e07cbc AC-1235 Fix large inventory import tests by querying in batches. 2014-05-19 00:45:21 -04:00
Chris Church
3086ec4930 AC-1235 Fix for RunJobTest failures. 2014-05-18 22:56:59 -04:00
Chris Church
b14aa0b55d AC-1235 Improvements to inventory import and computed field performance. 2014-05-18 22:10:12 -04:00
Matthew Jones
4e1b9760c9 Put the job event websocket emitter back in as a database signal from
the JobEvent model.  Was erroneously removed during the 1.4.11 merge
2014-05-16 12:30:38 -04:00
Chris Church
79dcadf155 Capture play name and host pattern separately in job event data. 2014-05-15 18:53:02 -04:00
Matthew Jones
70e42aff36 Don't include immediate children in the list for delete consideration when recursively deleting groups and their children 2014-05-15 13:22:45 -04:00
Chris Church
6d0da4672d AC-1278 Reduced the level of pickiness expressed by inventory_import regarding filenames. 2014-05-15 13:08:48 -04:00
Matthew Jones
c7ed154149 Implement AC-1279, rename vars_prompt_on_launch to ask_variables_on_launch
Conflicts:
	awx/main/models/jobs.py
2014-05-15 10:26:11 -04:00
Matthew Jones
69aa991499 Check for null attributes related to an inventory update when performing
the name migration
2014-05-14 23:03:46 -04:00
Matthew Jones
d27d8845ea Fix merge conflict from 1.4.11 release branch related to signal normalization 2014-05-14 22:21:26 -04:00
Matthew Jones
f49805db0b Make sure we recognize when a model changes state from active to inactive and back
Conflicts:
	awx/main/signals.py
2014-05-14 16:04:32 -04:00
Matthew Jones
93c2a5e31c Improve update computed field signaling so that we only emit signals when a host is added or deleted, or if it is associated or disassociated, or if a job runs
Conflicts:
	awx/main/signals.py
2014-05-14 14:19:31 -04:00
Chris Church
db3151a9dd Fix for KeyError when cache is empty, change cache key prefix for dev vs. prod.
Conflicts:
	awx/settings/production.py
2014-05-14 14:16:19 -04:00
Matthew Jones
a4f5b0ae71 Use local memory cache for unit tests 2014-05-14 14:14:52 -04:00
Matthew Jones
d614cc8472 Integrate memcached support for some host fields
Conflicts:
	setup/roles/packages_el/vars/default.yml
	setup/roles/packages_ubuntu/tasks/main.yml
2014-05-14 13:47:12 -04:00