Commit Graph

924 Commits

Author SHA1 Message Date
Wayne Witzel III
96904968d8 Fix migration issues, tests, and templates 2017-11-09 17:29:48 -05:00
AlanCoding
0ae9283fba Feature: retry on subset of jobs hosts 2017-11-01 10:22:52 -04:00
AlanCoding
8b39b3b41a fix admin edit of WFJT survey spec 2017-10-29 16:27:16 -04:00
AlanCoding
90f63774f4 flake8: comply with new E722 rule 2017-10-23 14:36:48 -04:00
AlanCoding
098a407e25 fix bug where JT admins could not edit spec 2017-10-19 16:05:44 -04:00
Matthew Jones
5635f5fb49 Merge branch 'release_3.2.1' into devel
* release_3.2.1:
  fallback to empty dict when processing extra_data
  fix migration problem from 3.1.1
  move 0005a migration to 0005b
  feedback on ad hoc prohibited vars error msg
  Fix the way we include i18n files in sdist
  Fix migrations to support 3.1.2 -> 3.2.1+ upgrade path
  fix missing parameter to update_capacity method
  fix WARNING log when launching ad hoc command
  Validate against ansible variables on ad hoc launch
  do not allow ansible connection type of local for ad_hoc
  work around an ansible 2.4 inventory caching bug
  fix scan job migration unicode issue
  Assert isolated nodes have capacity set to 0 and restored based on version
  Set capacity to zero if the isolated node has an old version
2017-10-19 13:30:26 -04:00
Ryan Petrello
ea683344f5 remove support for job-scoped auth tokens
When Jobs and Adhoc Commands are launched, awx uses a job-scoped auth
token to dynamically fetch inventory via the awx REST API; this process
is complicated, hard to debug, and likely won't work going forward with
oauth2-based tokens in awx

see: https://github.com/ansible/awx/issues/21
2017-10-18 17:11:47 -04:00
Jim Ladd
5924571904 Merge pull request #384 from jladdjr/awx365_post_response_discrepancy
Address discrepancy in POST response between jobs launches and project / inventory source updates
2017-10-13 09:59:29 -04:00
Jim Ladd
6f1c7ee733 Update several endpoints to match JT launch POST response
Signed-off-by: Jim Ladd <jladd@redhat.com>
2017-10-12 17:35:34 -04:00
AlanCoding
f03b40aa50 enforce max line length of 160 characters 2017-10-11 12:38:39 -04:00
Matthew Jones
6fa283fc98 Merge branch 'release_3.2.0' into devel
* release_3.2.0: (66 commits)
  fix workflow maker lookup issues
  adding extra logic check for ansible_facts in smart search
  adding "admin_role" as a default query param for insights cred lookup
  changing insights cred lookup to not use hard coded cred type
  fix rounding of capacity percentage
  Catch potential unicode errors when looking up addrinfo
  fixing typo with adding query params for instance groups modal
  move percentage capacitty to variable
  Add unit test for inventory_sources_already_updated
  Check for inventory sources already updated from start args
  Fixed inventory completed jobs pagination bug by setting default page size
  Remove the logic blocking dependent inventory updates on callbacks
  fix instance group percentage
  Remove host-filter-modal import
  Fix partial hover highlight of host filter modal row
  Removed leading slash on basePath
  Fixed host nested groups pagination
  Added trailing slash to basePath
  Fixed nested groups pagination
  Fixed host_filter searching related fields
  ...
2017-10-10 16:09:43 -04:00
AlanCoding
eacbeef660 Validate against ansible variables on ad hoc launch
Share code between this check for ad hoc and JT callback
2017-10-05 12:14:05 -04:00
Matthew Jones
9219f0f682 Catch potential unicode errors when looking up addrinfo 2017-09-27 20:14:47 -04:00
Matthew Jones
64415872a0 Merge branch 'release_3.2.0' into devel 2017-09-18 10:55:45 -04:00
AlanCoding
1b48b99ba7 do not use parent_model with GenericAPIView 2017-09-15 14:41:12 -04:00
Ryan Petrello
ff385ddf17 Merge pull request #416 from ryanpetrello/stdout_defer
Add 3.1.5 result_stdout_text optimizations into 3.2 so we don't regress
2017-09-15 14:24:47 -04:00
Ryan Petrello
7a958a1af1 more result_stdout_text defer optimization for inventory updates
see: https://github.com/ansible/ansible-tower/issues/7568
2017-09-15 09:51:53 -04:00
Matthew Jones
39994186df Improve script endpoint performance by removing forced ordering 2017-09-14 13:05:31 -04:00
Aaron Tan
42bbd7d47a Merge pull request #18 from jangsutsr/wrap_up_ctint_unit_tests
Wrap up Tower configuration unit tests
2017-09-07 09:49:14 -04:00
Aaron Tan
64b6b18a81 Wrap up Tower configuration unit tests 2017-09-05 15:16:51 -04:00
AlanCoding
495d6e9887 remove job start endpoint in v2 2017-08-28 11:12:13 -04:00
Aaron Tan
bd7cd9281b Allow lower-licensed user to delete workflow resources 2017-08-24 15:59:08 -04:00
Matthew Jones
f3f10df361 IFF v2 api disallow direct job launches 2017-08-22 09:53:58 -04:00
Chris Meyers
90ea9b8bde presume 401 from insights means invalid credential
* Tell the user about the invalid credentials
2017-08-15 08:31:52 -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
AlanCoding
3d65dc48dc hack around mutability problem for v1 launch 2017-08-11 16:46:27 -04:00
Christian Adams
944e0bb304 Merge pull request #230 from rooftopcellist/si_no_match
Fix for no_match on grouped hosts in smart inventories
2017-08-11 15:33:10 -04:00
adamscmRH
079c8fe9c1 Separates normal & smart inventory logic for script endpoint 2017-08-11 15:15:08 -04:00
Matthew Jones
dd44f7a640 Merge pull request #236 from matburt/contributing_and_other_docs
CONTRIBUTING.md and other docs
2017-08-11 10:30:55 -04:00
Aaron Tan
0c652f2a3a Merge pull request #237 from jangsutsr/7412_update_unified_job_deletion_behavior
Prevent deleting unified jobs with active status
2017-08-10 12:11:27 -04:00
Aaron Tan
497aa13562 Prevent deleting unified jobs with active status 2017-08-10 12:01:25 -04:00
Chris Meyers
7e86ef9a46 remove scan job choice from launch endpoint 2017-08-10 08:52:54 -04:00
Matthew Jones
67474c8de1 Updating development tooling to be more generic
* Not assuming GCR is being used for image hosting
* Breaking out the dev environment bootstrapping from service starting
2017-08-09 15:53:25 -04:00
AlanCoding
300b392d5a manually update SCM inv src on bulk update 2017-08-04 12:43:24 -04:00
Chris Meyers
729d86c485 standardize on 502 for insights errors 2017-08-03 16:12:09 -04:00
Wayne Witzel III
3ce0529846 Merge pull request #152 from wwitzel3/issue-7355
Ensure hosts list properly when given read access to a smart inventory
2017-08-02 15:41:13 -04:00
Wayne Witzel III
eb73248d37 Refactor InventoryHostsList get_queryset to use getattrd 2017-08-02 15:13:27 -04:00
Wayne Witzel III
fe36ed94b8 Ensure hosts list properly when given read access to a smart inventory 2017-08-02 13:10:55 -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
0b617d7538 treat vault_credential same as credential for JT launch 2017-08-02 08:24:24 -04:00
Ryan Petrello
53581b1c5b Merge pull request #131 from ryanpetrello/fix-7337
fix a bug which breaks inventory update stdout downloads
2017-08-01 11:03:01 -04:00
Ryan Petrello
d09872d13a fix a bug which breaks inventory update stdout downloads
see: https://github.com/ansible/ansible-tower/issues/7363
see: https://github.com/ansible/ansible-tower/issues/7337
2017-08-01 10:48:40 -04:00
AlanCoding
55cc23a712 impersonate requesting user in inventory deletion task 2017-07-31 16:06:36 -04:00
AlanCoding
9572b429ad remove support for celery_active_tasks 2017-07-31 15:02:22 -04:00
adamscmRH
6cb0cbd4f7 Inventory update endpoint now returns empty list 2017-07-31 13:25:04 -04:00
Christian Adams
fb850d9644 Merge pull request #113 from rooftopcellist/smart_inventory_edit
Changes Smart Inventory Error Message
2017-07-31 11:57:53 -04:00
Wayne Witzel III
7fe9c7b913 Disable caching for /authtoken endpoint 2017-07-31 09:19:54 -04:00
adamscmRH
e3525fdbc3 Changes Smart Inventory Error Message 2017-07-31 09:10:10 -04:00
Christian Adams
9816ac418a Merge pull request #82 from rooftopcellist/smart_inventory
Blocks creation of Hosts, Groups, and IS for Smart Inventories
2017-07-28 16:33:50 -04:00
adamscmRH
3dcd6ef2c2 Blocks creation of Hosts, Groups, and IS for Smart Inventories
* Updated View unit tests

* Refactored Validators

* Validator Fix for Blocking
2017-07-28 16:24:09 -04:00