Commit Graph
100 Commits
Author SHA1 Message Date
Matthew Jones 7530a6e35f Allow limiting the stdout view given start_line and end_line parameters 2014-06-19 15:45:10 -04:00
Matthew Jones a2a46d22bc Add play and tasks linkage to job related fields 2014-06-19 13:23:40 -05:00
Matthew Jones 041513ef61 Add play and tasks linkage to job related fields 2014-06-19 13:53:49 -04:00
Matthew Jones 8dc14a73c2 Merge pull request #12 from ansible/job-events-refactor-unstable
Refactor job_tasks.
2014-06-19 09:04:51 -04:00
Matthew Jones 05e17e66fc Add unreachable event counts to play stats 2014-06-13 12:47:49 -04:00
Matthew Jones 94e843dc71 Make sure we include the state flags for the plays as well as the counts 2014-06-12 16:11:07 -04:00
Matthew Jones 64dbb0b4b2 Give more stats on the plays aggregate summary 2014-06-12 15:15:11 -04:00
Matthew Jones e72728b38c Add schedule based socket.io events for AC-1333 2014-06-10 15:58:57 -04:00
Matthew Jones 9879aad78b Add some shortcuts for summarizing job event data to support the UI in AC-1330 2014-06-10 13:25: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
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 8cbf60e3b7 Integrate a new overall disassociate to /groups/n/children 2014-05-23 14:30:39 -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 35521cbdc8 Fix merge badness 2014-05-21 16:31:26 -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
Matthew Jones e03a7792ca Missing call to all when querying the relation manager 2014-05-20 14:04:46 -04:00
Matthew Jones e57d8718ff Support smart subgroup disassociation 2014-05-20 13:52:00 -04:00
Matthew Jones 6d53c231db Remove default cache setting from production 2014-05-20 10:07:08 -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 98ad089f7d Remove memcached reference from settings 2014-05-19 12:04:52 -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
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
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
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
Matthew Jones a4f5b0ae71 Use local memory cache for unit tests 2014-05-14 14:14:52 -04:00
Matthew Jones 2e0ad0edbf Documentation for memcached
Conflicts:
	CONTRIBUTING.md
2014-05-14 13:48:15 -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
Matthew Jones 89b034b5b8 Data migration for AC-1164, make names make more sense 2014-05-14 13:43:22 -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
Matthew Jones a19f388e2d In case job_template is null handle that case for vars prompt 2014-05-12 14:50:58 -04:00
Matthew Jones 22984f91cc Make sure we notify vars_update_on_launch from job details 2014-05-12 14:50:58 -04:00
Matthew Jones 3a5544801a Make sure we disassociate inventory source from the host as part of the dereferencing operation 2014-05-09 10:17:38 -04:00
Matthew Jones 79ef9e5ed5 Implement smart recursive deleting on certain inventory resources 2014-05-08 16:56:55 -04:00
Matthew Jones d6a238d6e0 Check for null group in inventory source before attempting to emit
inventory status change event
2014-05-05 11:46:39 -04:00
Matthew Jones 808b82bd33 Break out the data migration from the schema migration for the job event hostname 2014-05-05 10:38:26 -04:00
Matthew Jones 21d0b6301e Update server makefile behavior with two mechanisms one of which will
start the development services in tmux but not attach to the session
2014-05-02 15:26:05 -04:00
Matthew Jones 44bb12c5c3 Include host name in the job event serializer 2014-05-02 13:23:45 -04:00
Matthew Jones e4afaeb2a6 Add migration for including host name with the top level job event
detail if it's available
2014-05-02 13:19:03 -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 0a18816cf5 Include job event detail emitter 2014-04-30 14:48:24 -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 74463f8945 Make sure we include the instance id when emitting the event 2014-04-28 14:29:00 -04:00
Matthew Jones f788adfbca Implement AC-1224, include the id of the new inventory or project update
when launching
2014-04-25 12:57:52 -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 5904d2e1ee Switch back to serializer for event emissions and convert datetimes prior to json serialization 2014-04-22 15:08:43 -04:00
Matthew Jones be3996b9be Add the job event id to the socket emitter payload 2014-04-21 23:35:44 -04:00
Matthew Jones 1d52f7cc9d Fix up more status emissions 2014-04-21 15:02:12 -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 2177d6feab Fix up event emission to send the right thigns 2014-04-18 14:42:23 -04:00
Matthew Jones 007df8c5a6 Fix up some minor issues so we can display job events 2014-04-18 13:58:06 -04:00
Matthew Jones 210b1dce2e Be more specific on the model 2014-04-18 13:51:36 -04:00
Matthew Jones 003104cbdb Add a post-save hook for emitting job event notifications over the websocket channel 2014-04-18 13:38:43 -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 09f9b18d3f Mention 1.4.9 release in readme 2014-04-17 16:31:11 -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 f06dde4fa3 Fix AC-1202... when marking a schedule as inactive also mark it as disabled. When filtering schedules for what should run make sure we exclude inactive schedules also 2014-04-17 10:14:53 -04:00
Matthew Jones 7c43dced0f a bit better pane selection when splitting 2014-04-16 15:30:49 -04:00
Matthew Jones 69583a1b07 Import socketio service work and updates to documentation and setup procedures 2014-04-16 15:27:04 -04:00
Matthew Jones 9901658f02 Update some setup things for the new callback script 2014-04-16 11:17:16 -04:00
Matthew Jones 8ffdc6de29 Rename tower retry script and reframe documentation 2014-04-16 11:17:04 -04:00
Matthew Jones 1d28f73687 Include the actuall callback retry script 2014-04-15 16:02:59 -04:00
Matthew Jones 6b3d857e49 Add an example script that will retry a tower callback request if it does not receive a 202. will retry 5 times with a 5 second interval between each run 2014-04-15 16:02:45 -04:00
Matthew Jones fd1e35c6d9 Show new vendored packages in the site packages readme 2014-04-15 11:54:41 -04:00
Matthew Jones 99f2f65be2 Fix issue AC-1047, don't use pk when verifying that the user exists and isn't anonymous 2014-04-15 11:46:16 -04:00
Matthew Jones 507d2e158d Vendor gevent's socketio and websocket modules 2014-04-15 11:18:48 -04:00
Matthew Jones 78e208dcdb Use id instead of pk or checking for anonymous user 2014-04-07 17:11:11 -04:00
Matthew Jones 3876e06a8d Fix AC-1155, make sure we check for anonymous user because that's what will come back through the rest api 2014-04-07 14:49:45 -04:00
Matthew Jones 064dd6dc08 Fix up unit tests where we no longer allow posting a schedule to an
inventory source that is not a cloud source
2014-04-07 14:18:59 -04:00
Matthew Jones 2fe1ae189a Fix issue AC-1152... disallow creating a schedule for non-cloud
inventory sources
2014-04-07 13:35:40 -04:00
Matthew Jones 3481366fcf Include more detail about schedules in activity streams by linking to
their parent object in summary_fields and related
2014-04-06 11:58:56 -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 221db9b296 Fix up tower warning log to work with unit tests, local testing, and production 2014-04-04 23:10:48 -04:00
Matthew Jones c60f89f884 Update tower warning log for current production and production updates 2014-04-04 22:53:50 -04:00
Matthew Jones b222fc02ee Add finished datetime detail to last_job and recent_jobs summary
fields.  Closes AC-1135
2014-04-04 17:04:32 -04:00
Matthew Jones e197bfeb01 Add a specific tower warnings file in the tower home directory.
Configure the api viewer to emit warnings for 4XX and 5XX status codes
into that file.  Configure it for use on a production system.  Closes AC-685
2014-04-04 16:48:56 -04:00
Matthew Jones f56b716b8f Switch to using the celery persistent beat scheduler to guard against
the database not being available yet or restarting and taking the celery
scheduler with it
2014-04-04 15:47:45 -04:00
Matthew Jones b51a867b5f More fixes for the license obfuscation 2014-04-03 17:16:03 -04:00
Matthew Jones 05613c1bea Make sure we are pulling in the right license class after obfuscation 2014-04-03 17:04:48 -04:00
Matthew Jones 7202905d0e Fix an issue I created with the config view trying to import the old
license reader
2014-04-03 16:30:05 -04:00
Matthew Jones 2587fe9f18 Obfuscate the license engine... implements AC-1069 2014-04-03 15:49:14 -04:00
Matthew Jones 641c8d8e05 Check the result of signal_start when adding a schedule and mark the
task as failed if it failed to signal the starting
2014-04-03 13:56:00 -04:00
Matthew Jones 711c1824a3 Fix issue AC-1112... disallow multiple dtstart and rrule segments 2014-04-03 13:14:53 -04:00
Matthew Jones 2e4f62d0a6 Reimplement last_run detection in the periodic Tower scheduler task to
not rely on celery's last run information
2014-04-02 21:51:45 -04:00
Matthew Jones feb1bb6e8a Wrap up schedule rrule documentation 2014-04-02 14:54:53 -04:00
Matthew Jones 8659eab1d3 Include dependent file in schedules list docs 2014-04-02 14:34:08 -04:00
Matthew Jones 5f7ea664f2 Adding some Schedule documentation 2014-04-02 14:30:13 -04:00