Commit Graph
100 Commits
Author SHA1 Message Date
Matthew Jones f85e28bafa Got a bit too aggressive with pyflakes for the schedules test 2015-02-11 17:57:27 -05:00
Matthew Jones 6a18a50d99 Fixing flake8 errors, this should be almost all of them! 2015-02-11 16:42:55 -05:00
Matthew Jones 59d824a643 Fix an issue where regular users couldn't relaunch jobs that they should
have permission to relaunch
2015-02-11 14:40:44 -05:00
Matthew Jones bb3732b2c1 Cleaning up some flake8 errors, pyflakes in this case 2015-02-10 17:00:23 -05:00
Matthew Jones 60ade410c1 Add tmux CC make target for using with the development service (make
servercc instead of make server)
2015-02-10 12:35:21 -05:00
Matthew Jones f51e248c8b Fix a Project query rbac performance issue 2015-02-10 12:35:21 -05:00
Matthew Jones da5f518a65 Remove some unnecessary print statements 2015-02-09 14:24:36 -05:00
Matthew Jones e9e4c6856d Implement job template job history statuses, configurable 2015-02-09 14:19:18 -05:00
Matthew Jones 753b5f41b4 Fix up flake8 for serializers 2015-02-06 14:14:47 -05:00
Matthew Jones 10389e09e8 Fix up flake8 warnings for views 2015-02-06 14:14:47 -05:00
Matthew Jones 888ae53027 Fix up flake8 runtime configuration, do a bit of flake8 work as it
relates to pyflakes)
2015-02-05 10:40:47 -05:00
Matthew Jones 9e97783b13 Fixing up more pep8 issues 2015-02-04 16:32:14 -05:00
Matthew Jones 1d76c1cd06 More pep8 goodness 2015-02-04 14:44:38 -05:00
Matthew Jones 9b0fe1b015 Ignore E265 in pep8, it's super noisy 2015-02-04 11:47:17 -05:00
Matthew Jones ffec2a19ae Some slight improvements in ansible version detection in tower where
that's used
2015-02-04 10:55:45 -05:00
Matthew Jones ac7eeb7bd3 Merge pull request #60 from ansible/timing-issue
Address IOError 500
2015-02-03 14:13:21 -05:00
Matthew Jones 6e6a709165 Fixing up some pep8 issues 2015-02-03 13:46:58 -05:00
Matthew Jones d9a2acb252 Revert "Upgrade Markdown to 2.5.2" due to issues with logging in python
2.6.

This reverts commit 6787490e6d854eecea70b511673290277ea3bccc.
2015-02-02 10:26:44 -05:00
Matthew Jones 90c8f18f76 Make error messages less alarming and include ip address in them 2015-01-30 15:55:32 -05:00
Matthew Jones 2887855c15 Changes to be more strict on connection authentication for the socketio service 2015-01-30 12:14:39 -05:00
Matthew Jones b73c7ce41b Merge pull request #48 from matburt/upgrade_vendored_packages
Upgrade vendored packages
2015-01-30 11:12:32 -05:00
Matthew Jones bd542bc336 Update some of the dev requirements stuff 2015-01-30 10:52:35 -05:00
Matthew Jones a8516c4ede Upgrade keyring to 4.1 2015-01-29 13:09:26 -05:00
Matthew Jones 692dcc1317 Upgrade Markdown to 2.5.2 2015-01-29 13:04:30 -05:00
Matthew Jones 6c65ba826d Upgrade python dateutil to 2.4.0 2015-01-29 12:55:37 -05:00
Matthew Jones 48a7b5f80e Upgrade six to 1.9.0 2015-01-29 12:41:26 -05:00
Matthew Jones 32b614fcc4 Upgrade requests to 2.5.1 2015-01-29 12:37:56 -05:00
Matthew Jones 9f5f795097 Update README indicating pytz version number 2015-01-29 12:33:43 -05:00
Matthew Jones 6712388b23 Upgrade pytz to 2014.10 2015-01-29 12:32:31 -05:00
Matthew Jones 6abca24c12 Upgrading setuptools (and related modules) to 12.0.5 2015-01-29 12:28:44 -05:00
Matthew Jones d2c46d015b Update azure package to 0.9.0 2015-01-29 12:13:53 -05:00
Matthew Jones 18e7541f3b More sanity checking on eula_accepted POST property 2015-01-29 11:55:42 -05:00
Matthew Jones 457555265a Check data type on post for license 2015-01-28 16:38:52 -05:00
Matthew Jones ffe0d4a5d0 Handle some more boolean types in our custom boolean converter 2015-01-28 10:21:14 -05:00
Matthew Jones 12697ad982 Remove a pointless print statement 2015-01-27 16:15:14 -05:00
Matthew Jones 02b31674c2 Fix up some serious issues posting new surveys and deleting them by
non-super users.   Also fix up some issues checking can_change for job
templates for operations like PATCH where not all of the data points
will be submitted
2015-01-27 16:15:13 -05:00
Matthew Jones 93de3f9a73 Fix up an issue posting eula with the license to the config endpoint 2015-01-27 16:14:15 -05:00
Matthew Jones 20910e0e95 Fix up some serious issues posting new surveys and deleting them by
non-super users.   Also fix up some issues checking can_change for job
templates for operations like PATCH where not all of the data points
will be submitted
2015-01-27 15:12:58 -05:00
Matthew Jones 41d294c101 Merge pull request #40 from chrismeyersfsu/fix-inventory_update_license_expired
fixed inventory source update # license hosts check
2015-01-27 10:50:04 -05:00
Matthew Jones 89b1ef62e6 Merge pull request #38 from chrismeyersfsu/fix-project_status
Fix child job->parent job status update.
2015-01-26 17:46:29 -05:00
Matthew Jones 89eeadacdb Merge pull request #39 from chrismeyersfsu/fix-task_retry_spelling
fixed variable name error
2015-01-26 16:09:57 -05:00
Matthew Jones de429ac683 Fix an issue where extra data wasn't being passed down to system jobs
from the schedules
2015-01-26 15:31:57 -05:00
Matthew Jones 698b58e19f filter utility method got caught up in the python boolean dragnet 2015-01-26 15:00:49 -05:00
Matthew Jones 19c6e474cd Missing boolen utility function export 2015-01-26 14:33:20 -05:00
Matthew Jones e807507203 Missing one boolean converter from filters after conversion 2015-01-26 12:50:23 -05:00
Matthew Jones b5db74a7d9 Generalize the python boolean converter so we can use it in RBAC methods 2015-01-26 11:57:21 -05:00
Matthew Jones 9447c092ac Fix a 500 error when posting empty json to the config endpoint, this
code was just wrong
2015-01-26 10:12:26 -05:00
Matthew Jones 1c19924b9a Merge pull request #35 from chrismeyersfsu/housekeeping-system_job_template_launch
removed system job specific code that handles extra_vars
2015-01-23 14:52:28 -05:00
Matthew Jones 2bb4629fe3 Merge pull request #36 from chrismeyersfsu/fix-extra_vars_comments
extra_vars_dict: handle the case where an entire yaml file is commented
2015-01-23 11:37:57 -05:00
Matthew Jones 6a7e887369 Fix an issue where non super users would not be able to update a job
template survey spec
2015-01-23 10:34:41 -05:00
Matthew Jones ea8537ac71 Adjust the behavior of the cancel action
For pending and waiting jobs this should set the cancel status
immediately. For running jobs it should just set the cancel flag and let
the running job set the cancelled status itself during its cancelation
procedure.  This also prevents a race condition where the task manager
will start dependent jobs before realizing the status is cancelled.
2015-01-23 10:20:57 -05:00
Matthew Jones f676d1eeeb Add EULA and EULA acceptance on the config endpoint 2015-01-22 15:43:44 -05:00
Matthew Jones 12855e6c44 Make some assumptions on 'check' unit tests after talking with jimi-c.
Unit tests will now only all pass on ansible 1.8+.  We'll probably need
to revisit this, definitely for v2 if for no other reason
2015-01-22 11:16:17 -05:00
Matthew Jones 16a9af0803 Fix an issue where non-org-admin users with appropriate job template
permissions were not able to view or edit schedule details
2015-01-21 13:49:24 -05:00
Matthew Jones 556d7a8ac6 Merge pull request #33 from chrismeyersfsu/improvement-cleanup_jobs_error_handling
output number of deleted items when running cleanup_deleted
2015-01-21 12:12:30 -05:00
Matthew Jones 97f59a0b04 Filter TERM from variables pushed into the launch shell environment 2015-01-21 11:42:38 -05:00
Matthew Jones 76bcb12d9f Merge pull request #32 from matburt/fix_jtlaunch_without_proj
Make Inventory and Project required when initially launching.
2015-01-21 11:26:22 -05:00
Matthew Jones 873afd64d2 Make Inventory and Project required when initially launching.
This prevents the scenario where an inactive-but-present project or
inventory on a job template would carry on even when we wouldn't want
it to
2015-01-21 11:05:14 -05:00
Matthew Jones bb5f3243e3 Merge pull request #31 from chrismeyersfsu/improvement-cleanup_jobs_error_handling
added graceful fail and meaningful error message when --days specified is too large
2015-01-21 09:53:53 -05:00
Matthew Jones 34aafb2db9 Fix an issue where we couldn't schedule custom inventory sources 2015-01-20 14:55:05 -05:00
Matthew Jones 92f4bef948 Merge pull request #28 from matburt/master
Revert "Make credential required when using a cloud inventory source"
2015-01-20 11:05:27 -05:00
Matthew Jones 9b80d25a24 Revert "Make credential required when using a cloud inventory source"
This reverts commit 9dab26eb0a66a910e41452e40e74480ed4639588.
2015-01-20 10:46:53 -05:00
Matthew Jones 73890a0eee Merge pull request #26 from matburt/atomic_computed_fields
Wrap computed fields in transaction atomic to prevent deadlocks and weird rollbacks
2015-01-20 09:58:56 -05:00
Matthew Jones be2a0614cf Merge pull request #25 from matburt/remove_crazy_decorators
Purge old super user check decorator in favor of using RBAC.  Update unit tests
2015-01-20 09:58:48 -05:00
Matthew Jones 3beab0a22e Merge pull request #24 from matburt/make_credential_required
Make credential required when using a cloud inventory source
2015-01-20 09:58:39 -05:00
Matthew Jones dba5a66fbc Merge pull request #22 from matburt/master
Modify the windows azure inventory script to import all of the instances
2015-01-20 09:58:23 -05:00
Matthew Jones 70d6e38f57 Wrap computed fields in transaction atomic to prevent deadlocks and
weird rollbacks
2015-01-19 15:37:29 -05:00
Matthew Jones 4ce0fc4eb4 Purge old super user check decorator in favor of using RBAC. Update
unit tests
2015-01-19 13:54:49 -05:00
Matthew Jones a8c7b0dc41 Emit an error message if the host doesn't exist in azure 2015-01-19 12:04:58 -05:00
Matthew Jones 43d26d9993 Make credential required when using a cloud inventory source 2015-01-19 11:52:10 -05:00
Matthew Jones a7e6d62e2c Rename 'primaries' in windows azure to 'Cloud_services' per recommendation 2015-01-19 11:48:34 -05:00
Matthew Jones df68e45e16 Merge pull request #23 from wenottingham/rest-branch
Fix assorted UI error messages to reference the correct REST requests.
2015-01-19 11:21:46 -05:00
Matthew Jones 73954b7c7d Merge pull request #16 from wenottingham/firewalld-branch
This adds support for firewalld on RHEL 7/CentOS 7.
2015-01-19 11:21:20 -05:00
Matthew Jones a80c5196ad Modify the windows azure inventory script to import all of the instances
and create a new group to identify primary hosts
2015-01-19 10:27:56 -05:00
Matthew Jones 6cb7f911b7 Merge pull request #21 from chrismeyersfsu/improvement-inventory_script_organization_relationship
added 'organization' to list of related fields for inventory_scripts
2015-01-19 10:24:51 -05:00
Matthew Jones 4b14fa9e6b Merge pull request #19 from chrismeyersfsu/documentation-register_instance
added documentation to command: tower-manage register_instance --help
2015-01-16 11:47:56 -05:00
Matthew Jones ad84fb4259 Merge pull request #18 from chrismeyersfsu/improvement-tagless
added ec2 tags_none grouping for hosts without tags
2015-01-16 10:17:21 -05:00
Matthew Jones bb2d82cdd9 Merge pull request #17 from chrismeyersfsu/fix-schedule-user-input
Misspelling in save field
2015-01-15 10:05:25 -05:00
Matthew Jones a5bc796518 Fix an issue where host could be None during an instance bootup process
thus causing an error in the inventory import
2015-01-12 13:56:31 -05:00
Matthew Jones f01289642c Fix an issue where azure inventory plugin would throw an error if there
were no instances available
2015-01-12 13:54:20 -05:00
Matthew Jones d70d5a5c99 Update Dockerfile to properly set shell encoding 2015-01-09 10:58:44 -05:00
Matthew Jones 2db98a9461 Add an HA list_instances management command 2015-01-08 15:03:53 -05:00
Matthew Jones 0eaf2dc00c Protect the system from when one attempts to start a job without an inventory 2015-01-08 14:55:58 -05:00
Matthew Jones 80b2b36bf3 Reapply fix for can_edit and can_copy when an inventory or project
associated with the job template have been deleted
2015-01-08 13:30:27 -05:00
Matthew Jones 9900b13953 Revert "Handle the situation where a Job Template's inventory has been removed"
This reverts commit 12201de3cb344b6caafeb112f7db7135b049821d.
2015-01-07 20:03:04 -05:00
Matthew Jones 932c276829 Handle the situation where a Job Template's inventory has been removed
and we are trying to determine if a user has the ability to edit or copy it.
2015-01-07 15:13:14 -05:00
Matthew Jones ba06fc0f69 Allow recv_connect on the base socket namespace 2015-01-06 11:14:28 -05:00
Matthew Jones a53071ff07 Only consider 50 tasks when managing the task graph 2015-01-06 10:12:24 -05:00
Matthew Jones 21d45b828f Fix up an issue where we wouldn't properly show can_edit or can_copy 2015-01-05 16:28:31 -05:00
Matthew Jones 526e488e78 Incorrect assumption that we needed to merge extra vars manually... now
passing extra vars to the job template launchc will override what is
coming from the job template
2014-12-19 10:51:55 -05:00
Matthew Jones da658ee524 Fix an issue with relaunching jobs 2014-12-18 16:39:04 -05:00
Matthew Jones 58ef1df906 Remove foob :embarassed: 2014-12-18 14:23:09 -05:00
Matthew Jones 9ce6101cd4 Do not display inventory scripts for which the organization is inactive 2014-12-18 10:04:40 -05:00
Matthew Jones 45a7c1647f Fix error message returned based on variables_needed_to_start 2014-12-18 08:07:51 -05:00
Matthew Jones a130ac88dd Fix an bug where I wouldn't properly error out when survey validation
would fail
2014-12-17 22:39:11 -05:00
Matthew Jones 6f5d450e8d Fix an issue that would not allow credential to be posted when launching
a job
2014-12-17 21:09:51 -05:00
Matthew Jones 41cabb0899 Add the ability to cleanup management jobs in the cleanup_jobs
management command
2014-12-17 16:54:13 -05:00
Matthew Jones d4879506c2 Switch to using extra_vars for survey variables, fix up some unit tests
related to that and some issues with system jobs
2014-12-17 16:04:55 -05:00
Matthew Jones 7d9f4aac47 Working smart_str in projects unit tests 2014-12-17 14:13:59 -05:00
Matthew Jones 0ffa7588e1 Fix up a unit test for project paths 2014-12-17 13:04:33 -05:00