Commit Graph

707 Commits

Author SHA1 Message Date
Matthew Jones
56f5c0f402 Use assertEqual in the inventory test 2014-09-30 16:21:39 -04:00
Matthew Jones
7b6c5f68a9 Don't remove script at this point 2014-09-30 11:54:28 -04:00
Matthew Jones
06c75aeecf Implement API side for custom inventory script support with endpoints
and unit tests
2014-09-30 11:50:50 -04:00
Matthew Jones
c35f892e9e Check extra data to make sure it's not just an empty string 2014-09-29 15:17:08 -04:00
Matthew Jones
cc6d673e4f Attempt to fix a mysterious zmq crash related to sockets lingering after
a fork
2014-09-29 14:31:14 -04:00
Matthew Jones
eabfbd572f Support populating extra vars with post data when launching and
relaunching jobs
2014-09-26 15:47:02 -04:00
Chris Church
1d9a0e0a1c Skip proot test if proot is not installed. 2014-09-25 15:02:49 -04:00
Chris Church
2d1580bccb Implements https://trello.com/c/1NJKBOex - Add support for using proot to run jobs in isolated environment. 2014-09-25 14:54:43 -04:00
Matthew Jones
9064bb3107 Fix a bug where we could potentially not see a hostname that we need to
update instead of create when syncing inventory because its instance id
had changed
2014-09-24 13:35:04 -04:00
Matthew Jones
6f2a33d2b7 title to name for survey metadata 2014-09-22 11:54:28 -04:00
Matthew Jones
259e48df3e Add survey bits to summary fields on job templates.... change "title" to
"name" on survey metadata.
2014-09-22 11:11:18 -04:00
Chris Church
a0fdf62e70 Fix for running unit tests on Python 2.6. 2014-09-12 12:38:34 -04:00
Chris Church
5fe3ee3bf4 Fixes https://trello.com/c/ZBHrkuLb - Add support for IPv6 addresses in inventory import. 2014-09-12 02:34:07 -04:00
Chris Church
e427234aec Implements https://trello.com/c/bEMQtVjz - API/UI changes to support su username/password. Adds force_handlers, skip_tasks and start_at_task options to jobs, only exposed via API. 2014-09-11 17:34:38 -04:00
Matthew Jones
71ffb71b87 Fix a bug where I wasn't checking for the right element in a survey when
launching a job
2014-09-11 16:32:04 -04:00
Luke Sneeringer
c6993ae44a Explicit import of django. 2014-09-11 12:52:37 -05:00
Luke Sneeringer
debd9b8850 Re-activated SQLite restriction. Test passes in pg. 2014-09-11 12:45:46 -05:00
Chris Church
2fdf55ec1b Fix check for skipping splunk inventory test when using sqlite. 2014-09-11 10:57:57 -04:00
Luke Sneeringer
c6d374d12a Add autocommit to migration 36 if it's off. 2014-09-10 15:07:30 -05:00
Matthew Jones
9119b40966 Take survey title and description into account 2014-09-10 15:20:06 -04:00
Matthew Jones
55b48204ea More validation and unit tests for api survey mode 2014-09-10 13:25:22 -04:00
Luke Sneeringer
3267a988f8 Shift Django to 1.6.x (>= 1.6.7). 2014-09-10 12:17:35 -05:00
Matthew Jones
b1463f056d Adding survey_enabled to the expected list of template fields 2014-09-10 10:27:50 -04:00
Matthew Jones
fc89ff76b5 Adding some unit tests for api survey mode 2014-09-09 17:08:29 -04:00
Matthew Jones
75cca21525 Survey mode validation when launching job templates 2014-09-09 15:08:49 -04:00
Matthew Jones
514cd4a1db Initial api side implementation of the survey spec 2014-09-09 11:08:40 -04:00
Matthew Jones
bdd4290fe7 Create some useful indexes based on UI consideration and overall tower
usage and performance needs
2014-09-08 15:17:03 -04:00
Chris Church
ee030a89b7 Fixes https://trello.com/c/rHOgeb2W - Remove temp cache dir created for EC2 inventory sync. 2014-09-08 14:28:31 -04:00
Matthew Jones
0c40ca36f6 Fix up some unit tests where we have slightly changed the meaning of cancel 2014-09-08 11:23:39 -04:00
Matthew Jones
4f0cd9d160 Make sure cancel can cancel jobs that are in the pending or waiting
state also
2014-09-05 15:13:16 -04:00
Matthew Jones
2da1189a7c Change access to only allow super users to post to the jobs list without
a job template
2014-09-05 14:54:33 -04:00
Matthew Jones
85762c3470 Add tests for job relaunch 2014-09-05 14:27:39 -04:00
Matthew Jones
b5763f078d Add relaunch capability to a job. fill in related links for various serializers 2014-09-05 14:02:55 -04:00
Matthew Jones
5548cfd6a8 Silence noisy supervisor tasks, adjust log rotation frequency for all
supervisor tasks
2014-09-04 13:26:32 -04:00
Matthew Jones
58b71ca9f9 Implement /launch endpoint on job template
Partial implementation of:

https://trello.com/c/7uXHs7ze/14-require-admin-to-be-able-to-run-a-job-without-a-job-template
2014-09-04 13:26:00 -04:00
Matthew Jones
efab451632 Fix an issue where I wasn't reattaching the signal handlers to the child
worker processes when they were restarted
2014-09-04 09:58:10 -04:00
Matthew Jones
5aebf5508e Roll back part of the change that attempted to correct some of the
memory usage
2014-09-03 17:00:43 -04:00
Matthew Jones
b2c77a650b Replace zeromq with multiprocessing queue for worker ipc in the callback
receiever module
2014-09-02 16:07:23 -04:00
Matthew Jones
fd97aa85b6 Attempt to work around a bug from old versions of pyzmq where closing
the socket before immediately exiting could cause a crash
2014-08-27 15:23:20 -04:00
Matthew Jones
6bccca2a9e Fix an issue where canceling jobs could leave orphaned and dead
ansible-playbook processes
2014-08-26 10:20:10 -04:00
Luke Sneeringer
3b45252039 Theoretical move from /etc/awx/ to /etc/tower/. 2014-08-22 10:12:12 -04:00
Matthew Jones
3f54778111 Add index on counter 2014-08-19 16:03:48 -04:00
Matthew Jones
046561ecaa add counter to jobevent object sourced from callback ansible plugin 2014-08-19 15:50:41 -04:00
Matthew Jones
6b8acae8b7 Incorrect identifier for 'res' in the callback receiver 2014-08-19 12:48:16 -04:00
Luke Sneeringer
ef04f453e7 Accept and convert SSH creds ending in \u003d.
This commit fixes an issue where copying an SSH credential ending in a
literal "\u003d", which is easy to do in GCE-land, doesn't work.

https://trello.com/c/L7Eowjrn/331-traceback-on-gce-inventory-import
2014-08-19 12:11:58 -04:00
Matthew Jones
b9c515ac2b Emit an event 'summary_complete' when jobhostsummary is finished calculating 2014-08-19 12:07:41 -04:00
Matthew Jones
03114be505 Hide module args at low/default verbosity setting 2014-08-19 10:37:01 -04:00
Matthew Jones
7badbca045 Fix license exceeded message 2014-08-18 13:38:22 -04:00
Matthew Jones
5e0917cd92 Prevent creating a job if the license is expired 2014-08-18 12:47:27 -04:00
Matthew Jones
fc0ca8cd22 Include vCenter when mentioning vmware in long form 2014-08-15 16:19:02 -04:00