Commit Graph

2650 Commits

Author SHA1 Message Date
Jared Tabor
3d979bb661 draft 1 of socket refactoring 2016-10-04 14:16:59 -07:00
Wayne Witzel III
6d4a2a8f8e converting from socketio to channels websocket 2016-10-04 14:13:16 -07:00
Wayne Witzel III
530a5c0c88 merging devel 2016-10-03 10:35:50 -04:00
Chris Meyers
b4c852cf53 change migration name to align with version semantic 2016-10-03 10:06:50 -04:00
Chris Meyers
203df91a5d more robust test mode checking 2016-10-03 09:28:44 -04:00
Chris Meyers
9cafebd8db remove job to jt allow_simultaneous dependency
* Foreshadowing of what's to come with the task manager. When deciding
on what job to run in our task manager, we can't depend on job template
fields. Otherwise, this would cost us a query.
2016-09-29 16:19:19 -04:00
Chris Meyers
1a60dd89bd add back in removed method 2016-09-29 16:01:51 -04:00
Chris Meyers
dd3c3c9f29 Merge branch 'feature-ha_task_manager' into devel 2016-09-29 10:27:17 -04:00
Chris Meyers
fbc1dff4de flake8 fixes 2016-09-29 10:23:00 -04:00
Chris Meyers
bdd444fb44 removed print 2016-09-29 09:53:36 -04:00
Aaron Tan
cf39f28d62 Merge pull request #3238 from jangsutsr/3088_make_admin_visible_to_oprhaned_users
Make system admin and system auditor visible to oprhaned users.
2016-09-29 09:42:05 -04:00
Aaron Tan
3acaca376a Merge pull request #3615 from jangsutsr/3486_notification_failure_wrt_unicode_jt_name
Convert notification_subject from byte string to unicode.
2016-09-28 16:26:21 -04:00
Aaron Tan
e3d27bf593 Merge pull request #3613 from jangsutsr/3534_job_host_summary_missing
Set up post_process flag for JobEvent save in callback receiver.
2016-09-28 16:25:55 -04:00
Alan Rominger
29308b08f0 Merge pull request #3571 from AlanCoding/3570_user_self_access_list
Fix user access_list bug
2016-09-28 16:20:04 -04:00
Aaron Tan
eaa6567cf3 Convert notification_subject from byte string to unicode. 2016-09-28 15:51:34 -04:00
Aaron Tan
38f5ae21f8 Set up post_process flag for JobEvent save in callback receiver. 2016-09-28 14:14:29 -04:00
Chris Meyers
0d538f8b0f Revert "removed wait_task look restriction"
This reverts commit f159fd45406c6af2aacc48a44e2a3993bfa19ce8.
2016-09-28 10:23:45 -04:00
Wayne Witzel III
5faa21b72d add group_name to channel data 2016-09-27 18:39:14 -04:00
Wayne Witzel III
ee09d881a4 only discard if groups have been created previously 2016-09-27 18:39:12 -04:00
Wayne Witzel III
850934c89d remove reply_channel from groups 2016-09-27 18:39:09 -04:00
Wayne Witzel III
4c8aaf1aed converting from socketio to channels websocket 2016-09-27 18:39:07 -04:00
Wayne Witzel III
42aab8ab83 removing websocket notification and service 2016-09-27 18:39:05 -04:00
Wayne Witzel III
62beb24d62 adding initial testing consumers/routes for channels 2016-09-27 18:38:59 -04:00
Chris Meyers
89250dcf36 removed wait_task look restriction 2016-09-27 16:04:00 -04:00
Chris Meyers
3a8033dec4 cheesy global lock 2016-09-27 14:16:18 -04:00
Chris Meyers
04f69727f2 fully message driven job execution
TODO:
* Need a distributed lock (leverage postgres)
* Less memory-intensive graph representation
* Maybe serializer/deserializer graph to database
  * Iterative graph building instead of full rebuild.
2016-09-27 14:16:18 -04:00
Chris Meyers
cdb65ccac9 replace task manager with event driven scheduler 2016-09-27 14:16:18 -04:00
Chris Meyers
cc90204b0f task manager using messages
* First pass, adapt singleton task manager to process messages and run
jobs based on events instead of a busy loop.
* Still need to make message handing run in celery, not in a consumption
loop
2016-09-27 14:05:29 -04:00
Chris Church
6ebe45b1bd Configure Tower in Tower:
* Add separate Django app for configuration: awx.conf.
* Migrate from existing main.TowerSettings model to conf.Setting.
* Add settings wrapper to allow get/set/del via django.conf.settings.
* Update existing references to tower_settings to use django.conf.settings.
* Add a settings registry to allow for each Django app to register configurable settings.
* Support setting validation and conversion using Django REST Framework fields.
* Add /api/v1/settings/ to display a list of setting categories.
* Add /api/v1/settings/<slug>/ to display all settings in a category as a single object.
* Allow PUT/PATCH to update setting singleton, DELETE to reset to defaults.
* Add "all" category to display all settings across categories.
* Add "changed" category to display only settings configured in the database.
* Support per-user settings via "user" category (/api/v1/settings/user/).
* Support defaults for user settings via "user-defaults" category (/api/v1/settings/user-defaults/).
* Update serializer metadata to support category, category_slug and placeholder on OPTIONS responses.
* Update serializer metadata to handle child fields of a list/dict.
* Hide raw data form in browsable API for OPTIONS and DELETE.
* Combine existing licensing code into single "TaskEnhancer" class.
* Move license helper functions from awx.api.license into awx.conf.license.
* Update /api/v1/config/ to read/verify/update license using TaskEnhancer and settings wrapper.
* Add support for caching settings accessed via settings wrapper.
* Invalidate cached settings when Setting model changes or is deleted.
* Preload all database settings into cache on first access via settings wrapper.
* Add support for read-only settings than can update their value depending on other settings.
* Use setting_changed signal whenever a setting changes.
* Register configurable authentication, jobs, system and ui settings.
* Register configurable LDAP, RADIUS and social auth settings.
* Add custom fields and validators for URL, LDAP, RADIUS and social auth settings.
* Rewrite existing validator for Credential ssh_private_key to support validating private keys, certs or combinations of both.
* Get all unit/functional tests working with above changes.
* Add "migrate_to_database_settings" command to determine settings to be migrated into the database and comment them out when set in Python settings files.
* Add support for migrating license key from file to database.
* Remove database-configuable settings from local_settings.py example files.
* Update setup role to no longer install files for database-configurable settings.

f 94ff6ee More settings work.
f af4c4e0 Even more db settings stuff.
f 96ea9c0 More settings, attempt at singleton serializer for settings.
f 937c760 More work on singleton/category views in API, add code to comment out settings in Python files, work on command to migrate settings to database.
f 425b0d3 Minor fixes for sprint demo.
f ea402a4 Add support for read-only settings, cleanup license engine, get license support working with DB settings.
f ec289e4 Rename migration, minor fixmes, update setup role.
f 603640b Rewrite key/cert validator, finish adding social auth fields, hook up signals for setting_changed, use None to imply a setting is not set.
f 67d1b5a Get functional/unit tests passing.
f 2919b62 Flake8 fixes.
f e62f421 Add redbaron to requirements, get file to database migration working (except for license).
f c564508 Add support for migrating license file.
f 982f767 Add support for regex in social map fields.
2016-09-26 22:14:47 -04:00
Aaron Tan
609a3e6f2f Merge pull request #3390 from jangsutsr/2719_update_task_failure_traceback_text
update task failure traceback text
2016-09-26 11:47:22 -04:00
AlanCoding
2f24d28638 fix bug where user content_object has no name attribute in access_list 2016-09-26 10:35:29 -04:00
Jim Ladd
684ab6c263 Merge pull request #3537 from jladdjr/no_issue_update_tower-manage_create_preload_data_output
Update output for tower-manage create_preload_data
2016-09-23 15:25:22 -04:00
Aaron Tan
a2247b0070 Merge pull request #3557 from jangsutsr/3344_add_extra_vars_type_verification
Refactor and patch extra vars verification.
2016-09-23 09:42:58 -04:00
Aaron Tan
33e3263310 Flake8 fixes. 2016-09-23 09:27:18 -04:00
Aaron Tan
535f979fd7 Unit test added. 2016-09-22 22:34:40 -04:00
Alan Rominger
64944393d3 Merge pull request #3505 from AlanCoding/can_CRUD
Copy/edit rework
2016-09-22 11:30:10 -04:00
AlanCoding
57abd438c8 make user_capabilities validation front-loaded, try to run tests 2016-09-22 10:36:30 -04:00
Aaron Tan
51cd9e99e6 Refactor and patch extra vars verification. 2016-09-21 20:44:52 -04:00
Wayne Witzel III
6f69163fad Merge pull request #3524 from wwitzel3/devel
update network cred ssh agent unit test with post_run_hook mock
2016-09-21 14:13:10 -04:00
Aaron Tan
f68baadc39 Add can_start to notification template access 2016-09-20 23:38:05 -04:00
Jim Ladd
ecf8dd0d6d Update output for tower-manage create_preload_data 2016-09-20 11:47:13 -04:00
Aaron Tan
89cbceeab8 Functional test added. 2016-09-20 11:39:44 -04:00
jangsutsr
b719b7276f Refactor for better performance. 2016-09-20 11:28:19 -04:00
Aaron Tan
300020df07 Make system admin and system auditor visible to oprhaned users. 2016-09-20 11:26:20 -04:00
Wayne Witzel III
23d7e70204 update network cred ssh agent unit test with post_run_hook mock 2016-09-19 14:24:01 -04:00
Chris Church
b7a6aa01a3 Fixes to get flake8 and unit/functional tests passing. 2016-09-18 19:11:29 -04:00
Matthew Jones
f3a8eb9daf Merge pull request #3509 from ansible/ha_installer
Improvements to the setup/installer to support new HA workflows
2016-09-16 15:53:38 -04:00
Matthew Jones
a4ec0739ea Temporarily disable instance id gathering
During requests
2016-09-16 15:21:42 -04:00
AlanCoding
766dac9663 flake8 fix and re-delete test_serializers 2016-09-15 17:23:24 -04:00
AlanCoding
7ff5c40564 Merge branch 'devel' of https://github.com/ansible/ansible-tower into can_CRUD 2016-09-15 17:19:38 -04:00