Commit Graph

623 Commits

Author SHA1 Message Date
Matthew Jones
90a0c6c8ed Raise time allowed for large inventory import 2014-07-29 13:17:42 -05:00
Luke Sneeringer
cc2e45b44e Fix job templates credential checks. 2014-07-29 13:09:56 -05:00
Luke Sneeringer
cf96240556 Azure inventory sync! 2014-07-29 13:06:27 -05:00
Luke Sneeringer
e837bbd2d0 [in progress] Azure 2014-07-28 14:04:47 -05:00
Luke Sneeringer
95567ff004 [in progress] Azure support. 2014-07-28 13:22:58 -05:00
Matthew Jones
e19984d6db Fix some busted job stdout end-line calculation under certain
conditions.  Make it to where the ui re-uses the endpoint from the last
stdout request cycle instead of adding one to it since we are not
left-inclusive on list slicing.
2014-07-25 14:54:45 -04:00
Luke Sneeringer
de953ec3ed Fixed bug caught by unit tests. 2014-07-25 11:12:13 -05:00
Luke Sneeringer
a1059dabae Working GCE inventory sync. 2014-07-25 11:12:12 -05:00
Luke Sneeringer
37295a9c47 Adding GCE iteration to an if/elif/elif 2014-07-25 11:12:12 -05:00
Luke Sneeringer
c6f7c1d2da In progress: Adding GCE to inventory source. 2014-07-25 11:12:12 -05:00
Luke Sneeringer
4c887c5614 Credential passaround. 2014-07-25 11:12:12 -05:00
Luke Sneeringer
dd35df7255 Adding project to credentials. 2014-07-25 11:12:11 -05:00
Luke Sneeringer
0257451bf7 Adding GCE RSA keys. 2014-07-25 11:12:11 -05:00
Luke Sneeringer
4d0abd4cca Removed PEM file things. 2014-07-25 11:12:11 -05:00
Luke Sneeringer
dd79ba8de7 Beginning PEM file support for GCE. 2014-07-25 11:12:11 -05:00
Luke Sneeringer
ca19ddb3d5 Beginning work on GCE. 2014-07-25 11:12:11 -05:00
Luke Sneeringer
7548ffc6dd Added vmware support to tasks. 2014-07-25 11:12:11 -05:00
Luke Sneeringer
627c6f029e Adding sensible ordering to common models.
https://trello.com/c/tTwRM2VV/102-tower-api-teams-endpoint-does-not-sort-consistently
2014-07-24 15:01:16 -05:00
Matthew Jones
ef89737845 Clear password fields on mark inactive 2014-07-24 15:21:19 -04:00
Matthew Jones
695df551e7 Handle cascading mark inactive in better ways as per rbac spec
specifically around Teams and Credentials
2014-07-24 15:21:19 -04:00
Chris Church
20d76bfc91 Fix UnicodeDecodeError from pexpect when ansible-playbook output contains unicode. 2014-07-23 20:03:55 -04:00
Chris Church
48afe188b2 Fix to return hosts without a group in the 'all' group from inventory script view. 2014-07-18 13:28:23 -04:00
Matthew Jones
e35a530dbb Rename from schedule_change to schedule_changed to fit our socketio motif. 2014-07-18 13:24:38 -04:00
Luke Sneeringer
7789ccd3eb Ability to add VMWare host. 2014-07-16 16:43:17 -04:00
Matthew Jones
fe764c2114 Fix an issue with the callback receiver that prevents preserving
database connections across multiprocessing processes during process
recycling
2014-07-16 10:56:41 -04:00
Luke Sneeringer
61dea4de4d Change human credential types.
This commit updates the human credential types from SCM/AWS to "Source
Control" and "Amazon Web Services".
2014-07-16 08:23:47 -05:00
Chris Church
4f33a01b02 Removed print statement that was just printing 'JHS: Host: Host object' for every object when running migration. 2014-07-14 18:33:21 -04:00
Chris Church
32822f43d3 Include ec2 inventory changes from https://github.com/ansible/ansible/pull/8010 and https://github.com/ansible/ansible/pull/8119 2014-07-14 18:12:07 -04:00
Matthew Jones
f56a8c16b0 Give a distinct hostname to satisfy the new unique constraint for job
host summary, show that it is derived from a removed host
2014-07-14 16:08:10 -04:00
Matthew Jones
6ee61d6c72 Make it to where we can track JobHostSummary objects for hosts that don't necessarily exist in inventory 2014-07-14 15:34:46 -04:00
Matthew Jones
1cd3caa986 Reimplement parallel job event processing to increase the speed of
playbook runs within tower
2014-07-14 11:48:22 -04:00
Matthew Jones
4b34401ca9 Set the host_name on JobHostSummary when the job host summary is saved 2014-07-11 16:39:59 -04:00
Matthew Jones
f93e60979f Add a host_name field to JobHostSummary and migrate to it, so we have at
least that information in job data if the host has been removed
2014-07-11 16:03:14 -04:00
Matthew Jones
3f53fc97b2 Make sure we don't unnecessarily update hosts and groups when invoking
the inventory computed fields update upon saving the inventory source
2014-07-10 12:35:31 -04:00
Matthew Jones
62ecffad0e Invoke update_computed_fields on inventory when an inventory source is
changed in order to pick up on failed/success status on inventory updates
2014-07-09 14:03:07 -04:00
Chris Church
6813a082f0 Add refresh_inventory flag for job_template callback to refresh inventory before trying to find a matching host. 2014-07-03 15:59:56 -04:00
Chris Church
1d1137a8d8 Use correct variable name ininventory import. 2014-07-03 12:23:17 -04:00
Matthew Jones
8d423cf82e Fix a corner case where a job failure could kill the task manager
because the job failure couldn't grab some extra info for the socketio
service

Fixes: https://trello.com/c/XdjJEhJ0/68-socketio-trackebac
2014-06-30 15:13:45 -05:00
Matthew Jones
e627ee0711 Implement a recycling process for consuming job events to keep from
dealing with a constantly growing heap deep in python land
2014-06-30 10:04:13 -05:00
Chris Church
0622dd101c Support caching for ec2 inventory sync to avoid unit test failures. 2014-06-28 18:16:37 -04:00
Matthew Jones
1e00529fac Fix an issue where we weren't creating job events for hosts that didn't
exist in our inventory
2014-06-27 13:47:48 -04:00
Matthew Jones
92117ae460 Copy socket list in place to prevent a runtimeerror when the socket list
gets updated in the middle of notifications

Fixes https://trello.com/c/Q0bwCU9R/61-traceback-from-run-socketio-service
2014-06-27 13:21:52 -04:00
Chris Church
fcf41d74cf Add test license for ec2 import to make jerkins happy. 2014-06-26 18:02:08 -04:00
Chris Church
7229f9cc8f AC-1302 Update EC2 inventory script to create hierarchical groups.
Conflicts:
	awx/main/tests/inventory.py
2014-06-26 14:54:51 -04:00
Matthew Jones
d4ef57bab6 Add absolute end value for limited json stdout view 2014-06-26 11:21:03 -04:00
Chris Church
3b9fe8b954 Fix failing rax unit test, nly check that enabled flag is set on hosts that were previously enabled insead of all hosts. 2014-06-25 12:35:50 -04:00
Matthew Jones
41e1d809b5 Refactor job event collection to build and manage an internal cache of
potential parent values to reduce the number of queries to the database
2014-06-24 10:37:06 -04:00
Matthew Jones
8d78755ef4 Fix some invalid assumptions about hosts and jobs where we assume a job
template will always be available
2014-06-23 13:39:09 -04:00
Matthew Jones
788cf2e24e Report range information with json format endpoint on job stdout 2014-06-23 12:24:43 -04:00
Luke Sneeringer
4eddd692fb Merge branch 'vagrant-unstable' 2014-06-19 14:54:16 -05:00