Matthew Jones
69a3f68832
Add some munin tower monitoring tasks
2014-07-29 11:44:54 -04:00
Matthew Jones
9780e805db
Raise time allowed for large inventory import
2014-07-28 12:59:31 -04:00
Matthew Jones
e19984d6db
Fix some busted job stdout end-line calculation under certain
...
conditions. Make it to where the ui re-uses the endpoint from the last
stdout request cycle instead of adding one to it since we are not
left-inclusive on list slicing.
2014-07-25 14:54:45 -04:00
Matthew Jones
ef89737845
Clear password fields on mark inactive
2014-07-24 15:21:19 -04:00
Matthew Jones
695df551e7
Handle cascading mark inactive in better ways as per rbac spec
...
specifically around Teams and Credentials
2014-07-24 15:21:19 -04:00
Matthew Jones
d6bfdc8560
Add a little more info to the documentation for the job_tasks endpoint
...
to clarify what the id being filtered is
2014-07-23 11:52:40 -04:00
Matthew Jones
52e7d34d38
Full packaging and playbook setup for munin apache directory and
...
htpassword configuration
2014-07-23 11:42:40 -04:00
Matthew Jones
1620494584
Adding munin install and configuration to the playbook and package builds
2014-07-21 13:45:50 -04:00
Matthew Jones
e35a530dbb
Rename from schedule_change to schedule_changed to fit our socketio motif.
2014-07-18 13:24:38 -04:00
Matthew Jones
3924c0d867
Update endpoint documentation names for job plays and tasks
2014-07-16 15:25:54 -04:00
Matthew Jones
9621a9699f
Add some related data to job event aggregates
2014-07-16 15:23:47 -04:00
Matthew Jones
985cba94ef
Update documentation for job_plays and job_tasks endpoints
2014-07-16 15:15:29 -04:00
Matthew Jones
a7a092f30a
Count the actual events instead of the records returned from the queryset
2014-07-16 14:24:47 -04:00
Matthew Jones
ba44491bf0
Fix up pagination tests by updating return assumptions from decorated function
2014-07-16 13:34:37 -04:00
Matthew Jones
364e185412
Fix up how the pager view works and how we return errors from some views
...
so that we can propogate non 200 statuses
2014-07-16 12:29:36 -04:00
Matthew Jones
fe764c2114
Fix an issue with the callback receiver that prevents preserving
...
database connections across multiprocessing processes during process
recycling
2014-07-16 10:56:41 -04:00
Matthew Jones
9f7763ee9f
Add options information and linkage for dashboard views
2014-07-15 16:20:28 -04:00
Matthew Jones
91f26c294a
Use utcnow() when filtering jobs for dashboard display
2014-07-15 10:56:32 -04:00
Matthew Jones
f56a8c16b0
Give a distinct hostname to satisfy the new unique constraint for job
...
host summary, show that it is derived from a removed host
2014-07-14 16:08:10 -04:00
Matthew Jones
6ee61d6c72
Make it to where we can track JobHostSummary objects for hosts that don't necessarily exist in inventory
2014-07-14 15:34:46 -04:00
Matthew Jones
1cd3caa986
Reimplement parallel job event processing to increase the speed of
...
playbook runs within tower
2014-07-14 11:48:22 -04:00
Matthew Jones
4b34401ca9
Set the host_name on JobHostSummary when the job host summary is saved
2014-07-11 16:39:59 -04:00
Matthew Jones
f93e60979f
Add a host_name field to JobHostSummary and migrate to it, so we have at
...
least that information in job data if the host has been removed
2014-07-11 16:03:14 -04:00
Matthew Jones
3cd5c40dd5
Move default task management system port to 6559 from 6556 to keep from
...
conflicting with Nagios plugins
2014-07-11 15:24:14 -04:00
Matthew Jones
6e9becb4b8
Implement icontains filter on job_plays and job_tasks
2014-07-11 15:10:30 -04:00
Matthew Jones
3f53fc97b2
Make sure we don't unnecessarily update hosts and groups when invoking
...
the inventory computed fields update upon saving the inventory source
2014-07-10 12:35:31 -04:00
Matthew Jones
62ecffad0e
Invoke update_computed_fields on inventory when an inventory source is
...
changed in order to pick up on failed/success status on inventory updates
2014-07-09 14:03:07 -04:00
Matthew Jones
0e7fcb239e
Fix an issue where we wouldn't attempt to color job output in production environments
2014-07-08 14:36:01 -04:00
Matthew Jones
54799c57e6
Fix an issue filtering job_type for dashboard graphs
2014-07-08 11:38:52 -04:00
Matthew Jones
a36c43bd90
Split out dashboard graphs onto two endpoints, support actual query
...
parameters related to job type and implement per-inventory source
success/failed breakdowns
2014-07-08 11:07:40 -04:00
Matthew Jones
c2473f9b12
Mention qsstats lib delta in the vendored README
2014-07-08 11:07:40 -04:00
Matthew Jones
1590ce1762
Work around a bug in django 1.4 and 1.5 for qsstats that would not allow
...
it to work with USE_TZ = True
2014-07-08 10:24:55 -04:00
Matthew Jones
854e31e218
Adding some graph data, will be splitting this out in the near future
2014-07-07 14:02:02 -04:00
Matthew Jones
a9b0faf979
Fix a bug where we would clear the use timezone directive for the rest of the life of the apache process
2014-07-07 13:09:26 -04:00
Matthew Jones
f39939b152
Adding some dashboard time-series graphs and new qsstats vendored dependency
2014-07-02 09:26:33 -05:00
Matthew Jones
9da4b8f336
Add unreachable counts to job tasks endpoint
2014-06-30 16:01:52 -05:00
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
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
Matthew Jones
6dbff4e012
Restructure pep8 configuration and document it for what we exclude
2014-06-26 12:18:54 -04:00
Matthew Jones
d4ef57bab6
Add absolute end value for limited json stdout view
2014-06-26 11:21:03 -04:00
Matthew Jones
7ecbe727ca
More fix up for job event aggregation filtering
2014-06-26 10:51:44 -04:00
Matthew Jones
ed9bb6c572
More filtering fix ups
2014-06-25 17:14:31 -04:00
Matthew Jones
29e698eb41
Support lt filtering on job_tasks and job_plays also
2014-06-25 17:04:56 -04:00
Matthew Jones
d9e9a88d3c
changed and failed are elements on the jobevent model and we should use those
2014-06-25 17:01:39 -04:00
Matthew Jones
7a9c1a5916
Fix an inconsistent variable usage in the job tasks view
2014-06-25 16:30:58 -04:00
Matthew Jones
8c502478a0
Allow taking the ordering parameter in the unit tests for the decorator
2014-06-25 14:54:32 -04:00
Matthew Jones
053bb4eeb0
Add ordering and various filtering for job events as requested by AC-1349
2014-06-25 14:27:06 -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
95ba711fc1
Fix up a bug in the unit test from fixing the job template assumption
2014-06-23 14:13:50 -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
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