Commit Graph

1768 Commits

Author SHA1 Message Date
AlanCoding
41940687f1 Pass existing object references within access methods
This avoids re-loading objects from the database in our
chain of permission checking, wherever possible.
access.py is equiped to handle object references instead
of pk ints, and permissions.py is changed to pass those refs.
2017-09-06 16:34:00 -07:00
Aaron Tan
15f57eb911 Merge pull request #333 from jangsutsr/7505_disallow_changing_credential_type_of_credential
Disallow changing credential_type of an existing credential
2017-08-31 11:37:43 -04:00
Aaron Tan
276bed2d0b Disallow changing credential_type of an existing credential 2017-08-31 11:25:01 -04:00
Ryan Petrello
5f416cce74 Merge pull request #365 from ryanpetrello/fix-7521
include extra_credentials data in summary fields for JT/Job detail view
2017-08-31 09:53:21 -04:00
Ryan Petrello
7192d5c4bb include extra_credentials data in summary fields for JT/Job detail view
see: https://github.com/ansible/ansible-tower/issues/7521
2017-08-30 11:56:24 -04:00
Alan Rominger
7a1f674abc Merge pull request #363 from AlanCoding/org_smart_inv
backend of org-scoped smart inventories
2017-08-29 20:51:03 -04:00
AlanCoding
ff96a750e1 backend of org-scoped smart inventories 2017-08-29 16:43:56 -04:00
Matthew Jones
d7fd3a467a Ensure that only the super user can dis/associate IGs from Orgs 2017-08-29 09:36:42 -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
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
ce3c969c08 correct capacity algorithm for task manager 2017-08-26 11:59:25 -04:00
Wayne Witzel III
ca9a1a0ca1 remove tests that execute distinct logic, sqlite3 does not support 2017-08-21 06:16:44 -04:00
Ryan Petrello
54d6c4ebfd Merge pull request #304 from ryanpetrello/required-cred-fields
mark a variety of credential fields as required
2017-08-18 17:02:24 -04:00
Ryan Petrello
90b5d98e5c add required fields for network credentials
see: https://github.com/ansible/ansible-tower/issues/7466
2017-08-18 16:18:04 -04:00
Ryan Petrello
438d41c986 make vault_password required for Vault credentials
see: https://github.com/ansible/ansible-tower/issues/7468
2017-08-18 14:10:19 -04:00
Chris Meyers
1df47a2ddd account for waiting tasks not having execution_nodes yet
* Reap running tasks on non-netsplit nodes
* Reap running tasks on known to be offline nodes
* Reap waiting tasks with no celery id anywhere if waiting >= 60 seconds
2017-08-16 13:18:25 -04:00
Chris Meyers
d615e2e9ff do not include workflow jobs for reaping
* Workflow jobs are virtual jobs that don't actually run. Thus they
won't have a celery id and aren't candidates for the generic reaping.
* Better error logging when Instance not found in reaping code.
2017-08-16 08:51:27 -04:00
Chris Meyers
c0cff5e0d2 Merge pull request #256 from chrismeyersfsu/fix-7399
fix reaper for netsplit and offline nodes
2017-08-15 16:18:46 -04:00
Chris Meyers
de82707581 fail all jobs on an offline node 2017-08-15 14:46:28 -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
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
Chris Meyers
9314db646b only reap non-netsplit nodes 2017-08-15 08:30:14 -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
AlanCoding
eed5a5c924 fix adhoc IG bug and prevent related inventory deletion 2017-08-14 11:14:42 -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
42ccd870d9 Automatically cancel job if cancel callback fails and log 2017-08-11 16:43:08 -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
AlanCoding
33df1d8c8b introduce log format for jobs inside of scheduler 2017-08-11 10:56:15 -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
c3f24d878d reap waiting processes if crash 2017-08-09 14:01:33 -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
Ryan Petrello
6dedcb60be Merge pull request #205 from ryanpetrello/remove-pycrypto
replace PyCrypto usage w/ crytography; ansible no longer bundles it
2017-08-08 10:51:07 -04:00
AlanCoding
59249d013b use standard type string algorithm in scheduler 2017-08-08 10:40:10 -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
Ryan Petrello
4bc5858ab4 replace PyCrypto usage w/ crytography; ansible no longer bundles it
see: https://github.com/ansible/ansible-tower/issues/7395
2017-08-07 12:19:51 -04:00
Aaron Tan
1e77f909a5 Force providing TACACSPLUS_SECRET when TACACSPLUS_HOST is set 2017-08-07 12:12:05 -04:00
Chris Meyers
8574c6ef4a Merge pull request #180 from chrismeyersfsu/fix-7383
fix single update_on_project_update per-inventory
2017-08-07 10:57:01 -04:00
Chris Meyers
95c12ac1ab enforce muutally exclusivity on update_on_project_update and update_on_launch for scm inventory 2017-08-07 10:50:36 -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
Aaron Tan
53d1efe30a Merge pull request #191 from jangsutsr/7387_prevent_passing_all_to_gce_zone
Prevent passing "all" to GCE_ZONE
2017-08-04 14:41:17 -04:00
Aaron Tan
148af54af7 Prevent passing "all" to GCE_ZONE 2017-08-04 14:30:37 -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
Aaron Tan
4fd637a06b Merge pull request #184 from jangsutsr/7382_move_inv_delete_activity_stream_into_view
Move inventory delete activity stream into view
2017-08-04 12:22:38 -04:00