Commit Graph

120 Commits

Author SHA1 Message Date
Chris Church
1d1137a8d8 Use correct variable name ininventory import. 2014-07-03 12:23:17 -04: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
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
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
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
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
Chris Church
24df1a88ee AC-1295 Allow host names to contain brackets when importing from JSON sources. 2014-06-06 14:17:12 -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
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
Chris Church
6be2e07cbc AC-1235 Fix large inventory import tests by querying in batches. 2014-05-19 00:45:21 -04:00
Chris Church
b14aa0b55d AC-1235 Improvements to inventory import and computed field performance. 2014-05-18 22:10:12 -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
e2d33522d2 Fix issue #AC-1269
- Only enable graphviz task graph generation in debug mode
- Define an appropriate place for the tower cycle file

Conflicts:
	awx/settings/production.py
2014-05-12 14:50:58 -04:00
Chris Church
5e484b2503 Update where host_name field is set on job events. 2014-05-11 23:43:40 -04:00
Matthew Jones
bc7567a341 Include hostname in the event data at the top level if it's available 2014-05-02 10:34:51 -04:00
Matthew Jones
ac94c11fd7 Adjust inventory computed field calculations to happen in the celery context 2014-04-30 14:38:08 -04:00
Matthew Jones
4810b9532d Generalize socketio sender from task and emit more data specific to the type of unified job sending the update 2014-04-22 15:52:45 -04:00
Matthew Jones
c0f821cdbf Make sure we actually emit the status during status change websocket events 2014-04-21 14:56:41 -04:00
Matthew Jones
444430ed5b Use singular keyfile 2014-04-21 12:16:22 -04:00
Matthew Jones
92739bc86c Emit just one message type for status change events: 2014-04-18 10:54:20 -04:00
Matthew Jones
6ede456715 Send signals when jobs/tasks change states 2014-04-18 09:58:36 -04:00
Matthew Jones
c793ff0d95 Small updates to the event triggers and javascript to show individual endpoints 2014-04-17 14:55:44 -04:00
Matthew Jones
647001546a Support ssl listener for socketio service, add such service to setup playbook, add handler for external notifications, implement basic namespaces for other supported events 2014-04-17 12:36:34 -04:00
Matthew Jones
69583a1b07 Import socketio service work and updates to documentation and setup procedures 2014-04-16 15:27:04 -04:00
Chris Church
e753260087 AC-588 Match cloud hosts by unique instance_id instead of name when running cloud inventory sync. 2014-04-16 03:00:33 -04:00
Chris Church
1283a78e09 AC-1134 Updated rax/ec2 inventory scripts from ansible. Added ability to filter groups/hosts by regular expression and exclude empty groups, so that Tower can exclude RAX/EC2 instance ID groups and EC2 RDS hosts/groups. 2014-04-08 23:50:57 -04:00
Matthew Jones
1e50f0cc24 Don't add other jobs to the dependency task chain such that if we are
running a job (as opposed to an inventory update or project update) they
may proceed even if the job failed.
2014-04-06 02:29:06 -04:00
Matthew Jones
b51a867b5f More fixes for the license obfuscation 2014-04-03 17:16:03 -04:00
Chris Church
d7f31f9777 Fix edge case in inventory import that would cause a group to become its own parent. 2014-03-31 17:37:41 -04:00
Chris Church
e1d3da731e AC-1040 Model cleanup/refactor, add and use job_explanation field. 2014-03-30 22:57:45 -04:00
Chris Church
35e4bd477c AC-1040 Cleanup old code in tasks, combine methods from unified job subclasses into base classes. 2014-03-28 22:07:24 -04:00
Chris Church
21c8126838 AC-1040 Use new method in inventory import to create inventory update from inventory source. 2014-03-26 00:12:13 -04:00
Matthew Jones
03249e59f3 Fix up job run types so that we aren't auto-starting new jobs. Fix up
job dependency generator to call the right new methods for generating
inventory and project updates
2014-03-25 15:21:30 -04:00
Matthew Jones
bb630fddbc Fix up error handler callback to include the task that actually failed 2014-03-25 15:01:54 -04:00
Matthew Jones
7196262987 Update graph generator to look right 2014-03-25 15:01:54 -04:00
Matthew Jones
af231cc8b7 Resolve can_start from the client side and the signaler side 2014-03-24 09:47:36 -04:00
Matthew Jones
bec301c2a8 Shift task start signal into an asynchronous task so we don't deadlock trying to update the same record from the task runner while waiting for the signal to be received from the signaler 2014-03-22 11:18:25 -04:00
Matthew Jones
6f11502528 Emit log messages by default on the task runner 2014-03-20 11:46:58 -04:00
Matthew Jones
f1ac2ff899 Bug fixes for CentOS 2014-03-20 11:22:19 -04:00
Matthew Jones
bf19b76d5a Merge remote-tracking branch 'origin/task-system-rework'
* origin/task-system-rework: (36 commits)
  Need to grab just the first item for the scm test project update
  Revert a project unit test
  Make sure we are calling signal_start in unit tests
  Make sure we are calling signal_start in unit tests
  Bypass task runner system in normal job start tests... we'll test it another way so assume we want to just start the job right away
  Fixing up unit tests
  Missing line-end comma
  Prevent deadlocks on unit tests in a very specific scenario
  Ignore checking celery task list during some unit tests, triggered by UNIT_TEST_IGNORE_TASK_WAIT
  Missing semicolon
  Remove update on launch, we'll test this another way
  Make sure we ignore the wait update for tasks under dependency situations in the unit tests
  Fix up run task manager script to handle signals, fix up task cancel job, add restart handler for ubuntu
  Fix some bugs found from unit tests
  More unit test rework
  Some job tests can't run in their current state
  Make sure we check arguments passed to signal start before allowing it to proceed.
  No need to replace original build_args
  Unit test updates for task system... remove old monkeypatch procedure for getting job args in favor of using the job info from the database. Can't do this anymore anyway since the job is running in another process
  Changes to tasks unit tests
  ...
2014-03-19 13:14:21 -04:00
Matthew Jones
1093b00e2a Fixing up unit tests 2014-03-18 14:58:45 -04:00
Matthew Jones
7fe474aec5 Prevent deadlocks on unit tests in a very specific scenario 2014-03-18 12:02:14 -04:00
Matthew Jones
fe625785c7 Ignore checking celery task list during some unit tests, triggered by UNIT_TEST_IGNORE_TASK_WAIT 2014-03-17 14:53:38 -04:00
Matthew Jones
f6ac7fb6d0 Fix up run task manager script to handle signals, fix up task cancel job, add restart handler for ubuntu 2014-03-17 11:05:53 -04:00
Matthew Jones
382e1e96c7 More unit test rework 2014-03-14 15:25:06 -04:00
Chris Church
0587583f19 Allow inventory import to work with demo license. 2014-03-14 12:32:51 -04:00
Matthew Jones
c2950fdbdf Unit test updates for task system... remove old monkeypatch procedure
for getting job args in favor of using the job info from the database.
Can't do this anymore anyway since the job is running in another process
2014-03-13 13:25:45 -04:00
Matthew Jones
3fe31828a8 Cleanup for unit tests, working command unit test 2014-03-13 10:48:01 -04:00