Matthew Jones
fe4b4043db
Changes to tasks unit tests
2014-03-13 10:56:15 -04:00
Matthew Jones
16f0373766
Properly hand arguments on the base task
2014-03-13 10:53:38 -04:00
Matthew Jones
3fe31828a8
Cleanup for unit tests, working command unit test
2014-03-13 10:48:01 -04:00
Matthew Jones
c8534055ef
Do not return from the graph building routine if we are in celery debug mode.
2014-03-12 17:54:34 -04:00
Matthew Jones
fc4f256723
Signal finished tasks to the task management system
2014-03-12 17:52:55 -04:00
Matthew Jones
99d42dc3fa
Cleaning up unit tests to call signal_start
2014-03-12 17:01:23 -04:00
Matthew Jones
c0382f78bb
Include a newline on the debug generated graph visualization
...
fix some import bugs and clear some whitespace from the command test
2014-03-12 16:32:21 -04:00
Matthew Jones
fbafa22a5a
Make sure we are passing arguments down for inventory and project update
...
actions. Fix up some unit tests.
2014-03-12 16:24:13 -04:00
Matthew Jones
3c82085b93
Handle the situation where we could not communiate with celery
2014-03-12 16:11:56 -04:00
Matthew Jones
93e68009a7
Modifications to launch the task manager during unit tests
2014-03-12 15:06:28 -04:00
Matthew Jones
5ae324960e
Add migration for including encrypted start args in the task tables
2014-03-12 14:29:27 -04:00
Matthew Jones
2224382caa
More docs and fix a bug where we could crash attempting to mark a job as
...
failed when it wasn't running in celery
2014-03-12 14:26:15 -04:00
Matthew Jones
06cc5ffb4a
Docs and setup details for the task manager
2014-03-12 14:09:00 -04:00
Matthew Jones
d176466ccc
Fix a customer issue in HEAD. We should catch OSError here instead of IOError
2014-03-04 15:43:49 -05:00
Matthew Jones
78bba13bbb
Merge pull request #8 from jlaska/rhel7_support
...
Add rhel7 support to setup playbook
2014-02-26 11:37:15 -05:00
Matthew Jones
e4d860e3dc
Fix issue AC-977 by including job_template in summary fields for job
...
activity stream events
2014-02-14 09:48:34 -05:00
Matthew Jones
770947d18d
Pull results off zeromq and distribute to workers
2014-02-12 16:09:57 -05:00
Matthew Jones
063380304a
Manage the zeromq connection per-pid
2014-02-11 05:56:51 -05:00
Matthew Jones
66e9e2310c
Initial 0mq implementation
2014-02-11 05:40:31 -05:00
Matthew Jones
2a88d3cb07
Close issue AC-905... refactor RBAC to handle inactive and deleted items
2014-02-07 09:37:59 -05:00
Matthew Jones
fb1bff54ca
Fix an issue where we were checking object existence
...
In the new to_native methods on serializers
2014-02-07 05:56:26 -05:00
Matthew Jones
57030390c0
Fix AC-975... filter inactive permissions in some of the access code.
2014-02-06 08:47:00 -05:00
Matthew Jones
00156a5518
Updating AC-984... only conditionally recompute inventory fields in group delete if it isn't a part of an inventory delete
2014-02-04 09:55:55 -05:00
Matthew Jones
e911bdc3da
Updating AC-984... delay field computation until after the group has been removed
2014-02-04 09:29:28 -05:00
Matthew Jones
9b67b575f1
Fix issue AC-1002, make sure we return a count of the number of inventories with active failed jobs
2014-02-03 06:11:51 -05:00
Matthew Jones
a21332a2d4
Fix AC-969, Convert variables element in changes dictionary from json representation
2014-01-31 10:59:06 -05:00
Matthew Jones
77e77d905a
Fix AC-1004, Instead of using serializers.Field() which will force a repr() of the object... use serializers.PrimaryKeyField() which will use the expected field type for the response
2014-01-31 10:34:02 -05:00
Matthew Jones
867c22c36c
Fix AC-981, mark last_job* fields as read only on the host serializer so activity stream will ignore them when processing events
2014-01-31 09:04:07 -05:00
Matthew Jones
bb0a2887d5
Fix AC-998, Don't set created_by on the object when updating the object (only when creating). activity stream will save modifications and who made them
2014-01-31 07:00:21 -05:00
Matthew Jones
380f6c6d6f
Fix AC-1001, hide BROKER_URL from the job_env section of task api data
2014-01-31 05:17:26 -05:00
Matthew Jones
bc6ec06d8f
Rollback and retry the task update status. Disable default idle timeouts on certain tasks
2014-01-30 15:09:49 -05:00
Matthew Jones
b226737ec5
Handle database errors and retry
2014-01-30 14:00:49 -05:00
Matthew Jones
a85e109da7
Merge remote-tracking branch 'origin/celery-refactor'
...
* origin/celery-refactor: (33 commits)
Fix spelling mistake
Jobs begin in the waiting state
Don't raise an exception at the end of a task if we are running unit tests
Enable canceling on certain levels.... fix up some unit tests
Check for invalid tasks and mark created tasks as failed when constructing task chains
Fix merge spacing from conflicted merge
Fix some bugs and show more error detail on a current task when a previous task fails
Leave another TODO on the job runner, fix a misspelling on the project update hook
Initial work towards the celery refactor... adjusting logic to allow building a worker chain... temporarily relax requirements on status checks
Remove 'awx-' prefix when reporting version
Explicitly include the egg-info in rpm packaging
Fixing store references to point to http://www.ansible.com/ansible-pricing
Update make develop command, version check after package rename.
AC-992 Fix inventory import tests.
AC-967 Fixed job name in the host status fly-out. Text now wraps rather than extending beyond boundaries of pop-over. Removed status label- just show red/green dot. Clicking on ID or red/green dot shows the status dialog. When dialog closes the window.resize() watcher is restored.
AC-976 now using custom javascript to apply ellipsis to long group and host names. Fixed indes.html title.
Fix ansible-tower deb build
Rename package awx to ansible-tower
AC-976 add job template name to activity stream
AC-979 using activity stream object arrays correctly. AC-980 fixed Action label on detail dialog.
...
2014-01-30 11:59:17 -05:00
Matthew Jones
28359e16a1
Fix spelling mistake
2014-01-30 11:41:06 -05:00
Matthew Jones
32220405de
Jobs begin in the waiting state
2014-01-30 11:40:20 -05:00
Matthew Jones
bf8c4b289a
Don't raise an exception at the end of a task if we are running unit tests
2014-01-30 11:36:54 -05:00
Matthew Jones
280527f993
Enable canceling on certain levels.... fix up some unit tests
2014-01-30 10:54:54 -05:00
Matthew Jones
6afc584a4f
Check for invalid tasks and mark created tasks as failed when constructing task chains
2014-01-30 01:19:49 -05:00
Matthew Jones
6ff98d87e9
Fix merge spacing from conflicted merge
2014-01-30 01:04:17 -05:00
Matthew Jones
82b692be9c
Merge remote-tracking branch 'origin/master' into celery-refactor
...
* origin/master: (28 commits)
AC-995 fixed typo and added extra error handling in case we actually cannot parse inventory variables. If that does happen, we now alert the user and keep the application stable and running.
Use supervisorctl when restarting celeryd on Ubuntu
Revert custom supervisor initscript
fix for the small viewport issue (https://www.dropbox.com/s/dmf4aixfv7k67cm/Screenshot%202014-01-29%2015.19.52.png ) where group name div gets pushed to a new line.
Fixed AS widget breadcrumb links
AC-977 Fixed raw html showing up in Action field on detail dialog. Added a subtitle on the AS widget. On inventory groups/host page the subtitle explains what activities are being displayed, and only activities realted to the selected group (on the inventory page) are displayed. If All Hosts selected, then all activities for all groups related to the current inventory are displayed. Also, brought back activity stream button for inventory hosts.
During AMI boot, use custom initscript name
Update tower-setup filename used in AMI build
AC-578 - Add custom supervisor initscript on ubuntu
Remove 'awx-' prefix when reporting version
Explicitly include the egg-info in rpm packaging
Fixing store references to point to http://www.ansible.com/ansible-pricing
Update make develop command, version check after package rename.
AC-992 Fix inventory import tests.
AC-967 Fixed job name in the host status fly-out. Text now wraps rather than extending beyond boundaries of pop-over. Removed status label- just show red/green dot. Clicking on ID or red/green dot shows the status dialog. When dialog closes the window.resize() watcher is restored.
AC-976 now using custom javascript to apply ellipsis to long group and host names. Fixed indes.html title.
Fix ansible-tower deb build
Rename package awx to ansible-tower
AC-976 add job template name to activity stream
AC-979 using activity stream object arrays correctly. AC-980 fixed Action label on detail dialog.
...
Conflicts:
awx/ui/static/js/controllers/Inventories.js
awx/ui/static/js/lists/InventoryHosts.js
awx/ui/static/js/widgets/Stream.js
2014-01-30 01:00:00 -05:00
Matthew Jones
6c81d497de
Fix some bugs and show more error detail on a current task when a previous task fails
2014-01-29 15:11:55 -05:00
Matthew Jones
db14daf5e5
Leave another TODO on the job runner, fix a misspelling on the project update hook
2014-01-29 14:23:57 -05:00
Matthew Jones
5c076529c0
Initial work towards the celery refactor... adjusting logic to allow building a worker chain... temporarily relax requirements on status checks
2014-01-29 14:23:57 -05:00
Matthew Jones
47950f28a7
Complete the new task job dependency system and add post-run error handler
2014-01-29 14:04:07 -05:00
Matthew Jones
2514a3dd9a
Merge branch 'celery-refactor' of github.com:ansible/ansible-commander into celery-refactor
...
* 'celery-refactor' of github.com:ansible/ansible-commander:
Leave another TODO on the job runner, fix a misspelling on the project update hook
Initial work towards the celery refactor... adjusting logic to allow building a worker chain... temporarily relax requirements on status checks
2014-01-27 12:21:26 -05:00
Matthew Jones
654a7e6d07
Leave another TODO on the job runner, fix a misspelling on the project update hook
2014-01-27 12:20:40 -05:00
Matthew Jones
4a598d7c0a
Initial work towards the celery refactor... adjusting logic to allow building a worker chain... temporarily relax requirements on status checks
2014-01-27 12:20:40 -05:00
Matthew Jones
6f069f6ff0
Leave another TODO on the job runner, fix a misspelling on the project update hook
2014-01-27 12:20:21 -05:00
Matthew Jones
d4426d88c4
Initial work towards the celery refactor... adjusting logic to allow building a worker chain... temporarily relax requirements on status checks
2014-01-27 11:37:18 -05:00
Matthew Jones
3d228b2955
Fix a bug where we would treat the new model value like the old one when comparing activity stream changes
2014-01-23 20:49:50 -05:00
Matthew Jones
bb6c34f4a4
Implement AC-911, use the proper type relative to json serialization for the stored changes dict on an activity stream object
2014-01-23 16:19:14 -05:00
Matthew Jones
2712643c62
Implement AC-667... user serializer to determine read-only fields and use those to decide what to populate in activity stream create instances AND when to create active stream update instances
2014-01-23 15:44:36 -05:00
Matthew Jones
9bbeeb90a8
Fix AC-955, disable task prefetching by celery.
2014-01-22 16:05:26 -05:00
Matthew Jones
b9cde9cc42
Fix issue AC-935... make sure we exclude certain regions by default. cn-north-1 was added to our dependency 'boto' here: https://github.com/boto/boto/pull/1939/files but is inaccessible from outside of China
2014-01-17 16:11:50 -05:00
Matthew Jones
a0affa90d4
Change label on recent jobs for host to use 'status'
2014-01-16 12:24:09 -05:00
Matthew Jones
79f9953e56
Add ids to summary fields and actor for AC-673
2014-01-16 10:17:56 -05:00
Matthew Jones
6840626c24
Implement AC-929... add recent jobs to host detail
2014-01-15 11:14:37 -05:00
Matthew Jones
57c0145f4f
Update all release url references to point to releases.ansible.com/awx
2014-01-07 15:42:40 -05:00
Matthew Jones
2935824b7a
Add ami packaging support and update Makefile
2014-01-07 11:53:30 -05:00
Matthew Jones
a098ef4381
Fix AC-758 where we weren't considering whether the license was expired when deciding to allow creating more hosts
2014-01-05 16:56:41 -05:00
Matthew Jones
e16e5a0dfa
Put the utf8 encoding in the right place for the cipher
2013-12-20 07:32:19 -05:00
Matthew Jones
4eb323caa4
Apply patch from jlaska. Adds support for .yaml file extensions on playbooks. Implements AC-890
2013-12-20 07:12:03 -05:00
Matthew Jones
ca35419dee
Fix AC-699 by using the spawnu interface on pexpect3 and making sure we use the right encoding on passwords passed to the cipher
2013-12-20 07:01:01 -05:00
Matthew Jones
447043eae5
Add more of the expected details to activity stream related component lists
2013-12-16 06:32:37 -05:00
Matthew Jones
70fe75603e
Improve rbac query performance for activity stream
2013-12-16 05:05:25 -05:00
Matthew Jones
0b159e0ab4
Fix the project related activity_stream which was mistakenly called activity_list
2013-12-11 12:12:52 -05:00
Matthew Jones
61059fa1a4
Work to complete AC-673, mass refactoring of the activity stream. Some work towards AC-664/662 but will complete on those issues. This also fixes issue AC-743 (Adding help text for OPTIONS requests) and AC-675 (updates where active changes to False will now be treated as deletes)
2013-12-10 16:08:35 -05:00
Matthew Jones
ca87fa714f
Fix issue AC-761, issue with the activity stream middleware could throw exception during authentication
2013-12-10 10:55:12 -05:00
Matthew Jones
3ceb9d84cb
Mention the 1.4.0 release in the README
2013-12-04 10:54:08 -05:00
Matthew Jones
485b113ae6
Fix AC-660, race condition was frequently causing us to not be able to populate the user. This removes some unnecessary checks that were vestigal from an old implementation. Also adds a unit test for verifying user association with an activity stream object
2013-12-03 13:34:58 -05:00
Matthew Jones
3d7385bd18
Pluralize teams... fixes AC-738
2013-12-02 16:48:02 -05:00
Matthew Jones
dc4b7d0960
Remove spurious job output files before the gitignore was in place
2013-11-25 13:47:33 -05:00
Matthew Jones
e299a67b91
Make sure we ignore job_status files via gitignore
2013-11-25 13:44:52 -05:00
Matthew Jones
9038784bb6
Fix issue AC=731, make sure we initialize some of the Activity Stream information in the middleware __init__ since process_request may not be called during the request phase
2013-11-25 09:36:47 -05:00
Matthew Jones
8df402d21e
Add external source inventory count to inventories dashboard
2013-11-22 14:02:46 -05:00
Matthew Jones
27eb4f48b3
Make sure we cleanup task output files when delete() is called on CommonTask models
2013-11-22 11:51:38 -05:00
Matthew Jones
2f0615d8c1
JOBOUTPUT_ROOT is still needed in defaults
2013-11-21 17:36:23 -05:00
Matthew Jones
b77ec07581
Include a sane default location for the job root in the production config
2013-11-21 17:08:16 -05:00
Matthew Jones
a0fd9c5f18
Make sure we set up the JOBOUTPUT_ROOT directory for running unit tests
2013-11-21 15:47:19 -05:00
Matthew Jones
aafa020c47
Merge branch 'job_stdout_filesystem'
...
* job_stdout_filesystem:
Adding the migration and other smaller fixes so the serializer can read the right stdout property
Switch from using a interstitial serializer to defining a read property on the CommonTask model
Initial task status to file implementation
2013-11-21 14:59:46 -05:00
Matthew Jones
5c077e4370
Adding the migration and other smaller fixes so the serializer can read the right stdout property
2013-11-21 14:59:14 -05:00
Matthew Jones
9444c1185b
Switch from using a interstitial serializer to defining a read property on the CommonTask model
2013-11-21 14:21:00 -05:00
Matthew Jones
bf07c55273
Initial task status to file implementation
2013-11-21 13:53:59 -05:00
Matthew Jones
9a46426957
Fix issue AC-708, rework the 'group' structure to report the correct fail counts
2013-11-20 23:56:18 -05:00
Matthew Jones
c039fc4a1f
Remove JobHostSummary and JobEvent actions from the activity stream registry
2013-11-20 21:19:26 -05:00
Matthew Jones
98cb95b510
Add organizations counts to the api dashboard view
2013-11-20 15:56:31 -05:00
Matthew Jones
7929cfedd8
Remove SortedDict, add user, team, credential, and job_template counts as top level dictionaries. Refinement for AC-649
2013-11-20 15:19:53 -05:00
Matthew Jones
83950be7ea
Don't try to preserve an instance between pre- and post- middleware processing and fail sanely if we lose the activity stream instance
2013-11-20 14:02:03 -05:00
Matthew Jones
7fa9e3289b
Fix RelatedManager exception issue on the dashboard
2013-11-20 13:35:03 -05:00
Matthew Jones
d6cbcde0b4
Wrap up AC-649, provide an api for the dashboard view
2013-11-20 11:37:38 -05:00
Matthew Jones
5a9bf7054c
Add the dashboard api view, with a few fields still needing to be filled
2013-11-20 10:54:31 -05:00
Matthew Jones
6f652d801a
We need to check for AnonymousUser here sine that's what Django Request Framework will return when no authentication is provided
2013-11-20 01:29:52 -05:00
Matthew Jones
4bc15a4392
More for AC-694, use the new rest framework materialized user
2013-11-20 00:43:27 -05:00
Matthew Jones
d564d73622
Fix for AC-694, we weren't saving the instance if using the cached user
2013-11-20 00:27:05 -05:00
Matthew Jones
059047ab77
Fix AC-660, resolve auth token authentication properly. Implement user instance caching so we don't constantly attempt to look up the user for multiple model operations yielding activity stream events
2013-11-19 21:39:10 -05:00
Matthew Jones
1388ad4cc0
Fix issue AC-677, field is referenced incorrectly causing exception
2013-11-19 19:50:11 -05:00
Matthew Jones
66d6e2fe43
Add more verification when deserializing json changes field on activity stream
2013-11-19 10:48:05 -05:00
Matthew Jones
7fda453720
Fix AC-648... make sure the changes field is not represented using nested json
2013-11-19 10:45:13 -05:00
Matthew Jones
ccbef21c42
Close AC-671... cleanup/purge activity stream tables
2013-11-19 09:37:58 -05:00
Matthew Jones
14ac51861e
Prevent non-superusers from querying the activity stream
2013-11-19 09:10:14 -05:00