Commit Graph
100 Commits
Author SHA1 Message Date
AlanCoding 9d91875832 set flag to fail imports on errors 2017-08-29 14:36:53 -04:00
Alan Rominger ba8326285e Merge pull request #337 from AlanCoding/capacity_fix
correct capacity algorithm for task manager
2017-08-28 16:49:19 -04:00
AlanCoding d54eb93f26 Handle capacity algorithm corner cases
Instance has gone lost, and jobs are still either running
or waiting inside of its instance group
RBAC - user does not have permission to see some of the
groups that would be used in the capacity calculation

For some cases, a naive capacity dictionary is returned,
main goal is to not throw errors and avoid unpredicted behavior

Detailed capacity tests are moved into new unit test file.
2017-08-28 16:12:12 -04:00
Alan Rominger c2d59e4815 Merge pull request #347 from AlanCoding/no_start
remove job start endpoint in v2
2017-08-28 12:11:32 -04:00
AlanCoding 5327a4c622 Use global capacity algorithm in serializer
The task manager was doing work to compute currently consumed
capacity, this is moved into the manager and applied in the
same form to the instance group list.
2017-08-28 12:07:47 -04:00
AlanCoding 495d6e9887 remove job start endpoint in v2 2017-08-28 11:12:13 -04:00
Alan Rominger c904ed62fe Merge pull request #348 from AlanCoding/jobs_opt
optimizations for unified job subtypes
2017-08-28 11:06:26 -04:00
AlanCoding ce3c969c08 correct capacity algorithm for task manager 2017-08-26 11:59:25 -04:00
Alan Rominger 34a375542e Merge pull request #339 from AlanCoding/encrypted_fix2
allow cache storing of non-DB settings
2017-08-26 11:57:29 -04:00
Alan Rominger d97cf263c1 Merge pull request #308 from AlanCoding/calm_your_signals2
avoid every-request user signals
2017-08-26 11:56:41 -04:00
AlanCoding 5cc5d4deff allow cache storing of non-DB settings 2017-08-25 13:59:31 -04:00
AlanCoding 50ff18ba25 avoid every-request user signals 2017-08-24 11:20:39 -04:00
Alan Rominger 223a198bc4 Merge pull request #317 from AlanCoding/token_on_commit
[WIP] delay token expiration update to on_commit
2017-08-22 10:56:15 -04:00
AlanCoding 4d41e31639 delay token expiration update to on_commit 2017-08-21 16:56:07 -04:00
AlanCoding a1083d45c5 optimizations for unified job subtypes 2017-08-19 07:05:37 -04:00
Alan Rominger 66a3680134 Merge pull request #295 from ansible/labels_load
basic API optimization of labels list
2017-08-18 17:23:55 -04:00
Alan Rominger caf15abc4f Merge pull request #297 from AlanCoding/cache_ids
Make cache compatible with encrypted settings
2017-08-18 17:20:57 -04:00
AlanCoding 9254bcaf16 Make cache compatible with encrypted settings
This saves the id value of the setting into the cache
if the setting is encrypted. That can then be combined
with the secret_key in order to decrypt the setting,
without having to make an additional query to the database.
2017-08-17 17:18:41 -04:00
AlanCoding 66a8170bbc basic API optimization of labels list 2017-08-17 10:33:10 -04:00
Alan Rominger 738fff65a1 Merge pull request #277 from AlanCoding/script_name
rename isolated->expect in script tooling
2017-08-15 13:35:46 -04:00
AlanCoding 86be5cf2cf rename isolated->expect in script tooling 2017-08-15 13:25:23 -04:00
Alan Rominger 5f71dba616 Merge pull request #262 from AlanCoding/graceful
Graceful killing of receiver workers
2017-08-15 13:11:07 -04:00
Alan Rominger 848e174fb1 Merge pull request #273 from AlanCoding/mooovin
Rename isolated folder to "expect"
2017-08-15 13:10:43 -04:00
AlanCoding 9ad34edc38 graceful killing of receiver worker processes 2017-08-15 12:13:47 -04:00
AlanCoding 6944ffa010 change imports to reflect isolated->expect move 2017-08-15 12:08:58 -04:00
AlanCoding e79ca131a6 initial commit to move folder isolated->expect 2017-08-15 11:32:44 -04:00
AlanCoding 8be1bea33a import os, fixing bug that forced SIGKILL 2017-08-15 06:32:21 -04:00
Alan Rominger 4ee95259f3 Merge pull request #255 from AlanCoding/ws_ig
provide instance group name over websocket
2017-08-14 15:13:03 -04:00
AlanCoding a6def691b7 provide instance group name over websocket 2017-08-14 13:56:12 -04:00
Alan Rominger 42ef2f265b Merge pull request #250 from AlanCoding/keep_on_truckin
pass over job-run exceptions & log ID
2017-08-14 12:14:37 -04:00
Alan Rominger bfa33dea56 Merge pull request #254 from AlanCoding/fix_adhoc_del
fix adhoc IG bug and prevent related inventory deletion
2017-08-14 11:37:21 -04:00
Alan Rominger dcfcfb6c7b Merge pull request #245 from AlanCoding/fix_supervisor
specify all group queues, get supervisor working
2017-08-14 11:31:00 -04:00
AlanCoding eed5a5c924 fix adhoc IG bug and prevent related inventory deletion 2017-08-14 11:14:42 -04:00
AlanCoding 5dfe0b205f pass over job-run exceptions & log ID 2017-08-14 09:57:32 -04:00
Alan Rominger e2db4b9001 Merge pull request #241 from AlanCoding/mutable
hack around mutability problem for v1 launch
2017-08-14 09:19:52 -04:00
Alan Rominger f2dc3e1b6f Merge pull request #253 from AlanCoding/another_log_fix
force log test to be DEBUG level
2017-08-14 08:49:21 -04:00
Alan Rominger 4145f2f3f3 Merge pull request #242 from AlanCoding/cancel_fallback
Automatically cancel job if cancel callback fails and log
2017-08-14 08:45:33 -04:00
AlanCoding f114c01a6a force log test to be DEBUG level 2017-08-13 08:46:31 -04:00
AlanCoding 3d65dc48dc hack around mutability problem for v1 launch 2017-08-11 16:46:27 -04:00
AlanCoding 42ccd870d9 Automatically cancel job if cancel callback fails and log 2017-08-11 16:43:08 -04:00
Alan Rominger 34f8b6c868 Merge pull request #222 from AlanCoding/better_task_logs
introduce log format for jobs inside of scheduler
2017-08-11 11:07:01 -04:00
AlanCoding fd31dc9c63 use logger args for task log format 2017-08-11 10:56:45 -04:00
AlanCoding 33df1d8c8b introduce log format for jobs inside of scheduler 2017-08-11 10:56:15 -04:00
AlanCoding 2385f62311 specify all group queues, get supervisor working 2017-08-10 14:57:25 -04:00
Alan Rominger 616b47db1b Merge pull request #225 from AlanCoding/more_provisioning
update awx-manage command to new name
2017-08-09 10:13:22 -04:00
Alan Rominger 6092d65069 Merge pull request #224 from AlanCoding/multi_judgement_race
log specific errors for problems managing lost instance
2017-08-09 10:11:22 -04:00
Alan Rominger 531ffa1f92 Merge pull request #220 from AlanCoding/py_inv
show executable python files in inventory list
2017-08-09 08:43:27 -04:00
AlanCoding afb267cee9 update awx-manage command to new name 2017-08-08 15:18:07 -04:00
AlanCoding 93aed04389 log specific errors for problems managing lost instance 2017-08-08 14:48:21 -04:00
AlanCoding ca807f9c69 show executable python files in inventory list 2017-08-08 14:12:02 -04:00
Alan Rominger cddd9dfbef Merge pull request #223 from AlanCoding/test_wording
Fix 3.2 API tests in Jenkins
2017-08-08 14:06:10 -04:00
AlanCoding 5f4d033836 change test to match with recent error message change 2017-08-08 13:57:51 -04:00
Alan Rominger 3ef63daf2b Merge pull request #221 from AlanCoding/names_names_32
use standard type string algorithm in scheduler
2017-08-08 11:18:01 -04:00
AlanCoding 59249d013b use standard type string algorithm in scheduler 2017-08-08 10:40:10 -04:00
Alan Rominger e13cd823aa Merge pull request #206 from AlanCoding/new_names2
Change awx-manage command names (try #2)
2017-08-08 09:26:59 -04:00
Alan Rominger 8e22c7e668 Merge pull request #168 from AlanCoding/silence_computed_fields
silence benign errors from inventory computed fields task
2017-08-08 09:24:30 -04:00
Alan Rominger d7f869f566 Merge pull request #155 from AlanCoding/dev_ig_supervisor
functionality for dev + IG + supervisor configuration
2017-08-08 09:22:39 -04:00
Alan Rominger c009173722 Merge pull request #189 from AlanCoding/no_proj_update
manually update SCM inv src on bulk update
2017-08-08 09:18:12 -04:00
Alan Rominger 40c01d9ba7 Merge pull request #190 from AlanCoding/no_inv_src_ig
do not use inventory source instance groups
2017-08-08 09:14:15 -04:00
Alan Rominger 9f63624292 Merge pull request #192 from AlanCoding/alan_bug
fix logger bug introduced in task except
2017-08-08 09:12:53 -04:00
AlanCoding d41d9a957e stubs and docs for management cmd renames 2017-08-07 15:27:23 -04:00
AlanCoding 79e2b995d2 initial git mv for management command renaming 2017-08-07 15:23:26 -04:00
Alan Rominger 795a470603 Merge pull request #209 from AlanCoding/non_atomic
do not use transaction.atomic where locks are also used
2017-08-07 14:45:11 -04:00
AlanCoding 3cb986b2b0 do not use transaction.atomic where locks are also used 2017-08-07 14:29:44 -04:00
Alan Rominger fe66d161b2 Merge pull request #140 from AlanCoding/poly_why
hack to work around Django-polymorphic prefetch_related bug
2017-08-07 14:24:17 -04:00
Alan Rominger 41d50d366c Merge pull request #196 from AlanCoding/insights_field
allow insights_system_id to self-enforce its read_only property
2017-08-07 09:58:41 -04:00
AlanCoding 45a58b24a6 allow insights_system_id to self-enforce its read_only property 2017-08-04 15:54:56 -04:00
Alan Rominger 1487a68aca Merge pull request #188 from AlanCoding/can_RBAC
remove can_update from RBAC checks
2017-08-04 14:45:50 -04:00
AlanCoding e28e74b466 fix logger bug introduced in task except 2017-08-04 13:22:16 -04:00
AlanCoding aca1efa552 do not use inventory source instance groups 2017-08-04 13:11:59 -04:00
AlanCoding 300b392d5a manually update SCM inv src on bulk update 2017-08-04 12:43:24 -04:00
AlanCoding dfda406090 remove can_update from RBAC checks 2017-08-04 12:39:05 -04:00
Alan Rominger 8fd7a94c62 Merge pull request #185 from AlanCoding/display_keys
include read_only settings in list for special case
2017-08-04 09:24:05 -04:00
AlanCoding 59be2796be include read_only settings in list for special case 2017-08-04 08:29:57 -04:00
Alan Rominger a87f6bfe62 Merge pull request #174 from AlanCoding/task_callback_logs
Improve logging for errors in job success/fail hooks
2017-08-03 12:17:29 -04:00
AlanCoding 1eddd29098 Improve logging for errors in job success/fail hooks
This sets the instance=None and continues with dependent
subtask processing in handle_work_error, whereas execution had
been getting halted by a DNE error.
2017-08-03 11:37:59 -04:00
Alan Rominger d9fa600182 Merge pull request #169 from AlanCoding/isolated_verbose
provide the job id in isolated management logs
2017-08-03 10:46:39 -04:00
AlanCoding 5d254d781a provide the job id in isolated management logs 2017-08-03 10:29:48 -04:00
Alan Rominger 22d538702a Merge pull request #147 from AlanCoding/underscores
add underscores to Role serializer resource_type
2017-08-03 09:01:18 -04:00
AlanCoding 06eabc4410 silence benign errors from inventory computed fields task 2017-08-03 08:45:28 -04:00
Alan Rominger e3f0246f4c Merge pull request #132 from AlanCoding/fix_restarts
fix restarts in dev, allow shutdown traceback
2017-08-02 14:37:24 -04:00
AlanCoding 4d5bedce74 functionality for dev + IG + supervisor configuration 2017-08-02 14:32:35 -04:00
AlanCoding b01732bcb3 fix restarts in dev, allow shutdown traceback 2017-08-02 14:25:20 -04:00
Alan Rominger c6a790bd24 Merge pull request #145 from AlanCoding/vault_perm
treat vault_credential same as credential for JT launch
2017-08-02 09:46:40 -04:00
AlanCoding 321591515c hack to work around Django-polymorphic select_related bug 2017-08-02 09:32:13 -04:00
AlanCoding 4d8faa7265 add underscores to Role serializer resource_type 2017-08-02 08:27:25 -04:00
AlanCoding 0b617d7538 treat vault_credential same as credential for JT launch 2017-08-02 08:24:24 -04:00
Alan Rominger a27e500edd Merge pull request #130 from AlanCoding/one_and_only_hostname
remove --hostnames option for registering nodes
2017-08-01 14:52:52 -04:00
Alan Rominger 4c8e4e1d01 Merge pull request #136 from ansible/revert-117-add_job_type
Revert "add job_type to job summary fields"
2017-08-01 13:57:21 -04:00
Alan Rominger 24d173c74f Revert "add job_type to job summary fields" 2017-08-01 12:36:36 -04:00
Alan Rominger 9a414c5c60 Merge pull request #133 from AlanCoding/anon_user_act_str
fix bug introduced with anon user activity stream entries
2017-08-01 10:55:08 -04:00
AlanCoding f794472b3d fix bug introduced with anon user activity stream entries 2017-08-01 10:43:49 -04:00
Alan Rominger d42aac5fa4 Merge pull request #48 from AlanCoding/user_name_deletion
impersonate requesting user in inventory deletion task
2017-07-31 16:51:20 -04:00
AlanCoding 2f8a7de6bd remove --hostnames option for registering nodes 2017-07-31 16:44:57 -04:00
AlanCoding 55cc23a712 impersonate requesting user in inventory deletion task 2017-07-31 16:06:36 -04:00
Alan Rominger faa40b23e2 Merge pull request #118 from AlanCoding/no_active_task_list
remove support for celery_active_tasks
2017-07-31 15:25:53 -04:00
Alan Rominger e686e07ca7 Merge pull request #120 from AlanCoding/retry_delete2
retry to delete inventory in deadlocks
2017-07-31 15:10:55 -04:00
AlanCoding 9572b429ad remove support for celery_active_tasks 2017-07-31 15:02:22 -04:00
Alan Rominger 60eba9fbe2 Merge pull request #104 from AlanCoding/extra_cred_restart
Fix RBAC bugs in job relaunch with prompted extra_credentials
2017-07-31 14:59:06 -04:00
AlanCoding 9d4fd44127 retry to delete inventory in deadlocks 2017-07-31 13:43:33 -04:00