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
Matthew Jones
f4e67f789f
More making sure we are using smart_str
2014-12-17 12:59:52 -05:00
Matthew Jones
1f723e9404
More work on unicode for project dirs
2014-12-17 12:52:29 -05:00
Matthew Jones
edb646fdf9
Use smart_str more widely with project paths... hopefully this takes
...
care of the remaining issues
2014-12-17 11:06:56 -05:00
Matthew Jones
b2e1f04ecf
Include all cleanup tasks when the cleanup management job is run
2014-12-16 15:38:07 -05:00
Matthew Jones
c014399d6e
Try smart_str for this particular encoding
2014-12-16 13:59:06 -05:00
Matthew Jones
cf5cd3fcdc
Make sure we are decoding the project path
2014-12-16 13:16:07 -05:00
Matthew Jones
76a7d25131
Force custom inventory script organization to match the organization of
...
an inventory source's inventory when creating/updating the inventory source
2014-12-16 13:01:11 -05:00
Matthew Jones
b0d6628d46
Add some stdout to the activity stream cleanup command
2014-12-16 10:06:07 -05:00
Matthew Jones
8f4cd58a5e
Bulk make_projects seems to have path concat issues when forcing unicode
2014-12-15 16:22:41 -05:00
Matthew Jones
d03fe93927
Try to clean up how we invoke make_project in the unit tests
2014-12-15 15:24:45 -05:00
Matthew Jones
cc7edc770e
Small fix for inventory source unit tests if the source is custom during check_inventory_source
2014-12-15 15:13:27 -05:00
Matthew Jones
901af011a1
Verify that we are passed a source script if a 'custom' source is provided
2014-12-15 14:56:09 -05:00
Matthew Jones
9e962d4d5b
Fix up unicode project directory issue, with unit tests
2014-12-15 14:17:21 -05:00
Matthew Jones
d2a4f2a190
Limit the graph builder to processing just the first few hundred jobs
...
when building the dependency graph
2014-12-15 12:46:35 -05:00
Matthew Jones
a487257789
Cascade remove inventory source links when a custom script is removed
2014-12-15 11:10:39 -05:00
Matthew Jones
eaee8d76c4
Fix a bug launching a custom inventory script under proot where we would
...
never actually launch the job under proot
2014-12-15 10:42:22 -05:00
Matthew Jones
1e1ea4e9ee
Some fixes for passing arguments to system/management jobs
2014-12-12 13:40:34 -05:00
Matthew Jones
f52cf37200
All job template launches now require a credential, so we'll pass this along
2014-12-11 16:30:23 -05:00
Matthew Jones
1bfab5ad5c
Make credential required when launching job template if it isn't
...
provided on the job template
2014-12-11 15:31:12 -05:00
Matthew Jones
96433b07d4
Incorrect object reference in Custom Inventory Script read acl for non-super-users
2014-12-11 13:47:33 -05:00
Matthew Jones
2ef4ee0987
Change up older custom inventory script migration to not set unique on
...
the name field
2014-12-11 13:26:41 -05:00
Matthew Jones
6f2a354b6e
Wrong base class for Custom Inventory Scripts
2014-12-11 13:25:31 -05:00
Matthew Jones
60d8505fd3
Disallow creating callback jobs for the same host under the same job
...
template while another one is pending/waiting. Update unit tests to
check for this scenario
2014-12-11 11:50:49 -05:00
Matthew Jones
c719149b86
Make sure we can DELETE system jobs if we have the right permissions
2014-12-10 15:51:27 -05:00
Matthew Jones
bc78587c60
Remove an unneeded acl processor for job events in the socketio daemon
2014-12-10 15:00:15 -05:00
Matthew Jones
6a162c2a3b
Ansible folks say SIGINT works.... doesn't seem to stop the playbook to
...
me, but whatever
2014-12-10 13:44:30 -05:00
Matthew Jones
ff2c82ce72
Include the migration for the custom inventory script change to support
...
activity stream
2014-12-10 11:34:08 -05:00
Matthew Jones
017d42364b
Add Custom Inventory Script to the activity stream from the api side
2014-12-10 11:33:22 -05:00
Matthew Jones
7df9ca8ae1
Force custom inventory scripts to start with a hashbang
2014-12-10 10:59:20 -05:00
Matthew Jones
b1b9fdede5
Fix a bug where, when launching a job without a credential and
...
subsequently supplying the credential we weren't able to pick up any ASK
fields that we needed credentials for
2014-12-10 10:42:20 -05:00
Matthew Jones
f62b9ff2c0
Switch to using SIGTERM for canceling a job
2014-12-10 10:34:18 -05:00
Matthew Jones
8afe8517fd
Rename System Task to Management Job for UI consistency
2014-12-09 11:46:03 -05:00
Matthew Jones
d0498de00c
Update job template deployment permission help text
2014-12-09 11:17:34 -05:00
Matthew Jones
3af2c181b8
Add can_edit field on job templates
2014-12-09 11:08:25 -05:00
Matthew Jones
572c1765cd
Different strategy on the inventory script serializer, this should work
...
much better
2014-12-08 16:45:59 -05:00
Matthew Jones
c04ac45296
Add a unique constraint on 'name' and 'organization' for the custom scripts
2014-12-08 15:49:45 -05:00
Matthew Jones
9b61956c9e
Hide script contents if the user is not a super user
2014-12-08 15:10:16 -05:00
Matthew Jones
9a44f8eca8
Further tighten down socketio service
2014-12-08 14:41:48 -05:00
Matthew Jones
3d3cf2bb9e
Make sure we include schedules as things that can be included when
...
creatinga concrete job(any) from a job template, project update, or
inventory update
2014-12-08 14:03:16 -05:00
Matthew Jones
e8a837ea11
Add a default maximum of 10 jobs waiting from a job template if launched
...
by a schedule
2014-12-08 10:51:43 -05:00
Matthew Jones
91527228db
Demote settings imports in main utils
2014-12-05 15:47:25 -05:00
Matthew Jones
ec887f877f
Support running custom inventory scripts (only) from within proot if enabled
2014-12-05 15:25:06 -05:00
Matthew Jones
680e382a40
Comment out an old vars test representation
2014-12-04 14:58:16 -05:00
Matthew Jones
d8c619554e
Fix up some more issues with extra vars and unit tests
2014-12-04 14:25:36 -05:00
Matthew Jones
3164c6d356
Fix an issue where we weren't properly dealing with extra data passed as
...
survey answers when launching a job template
2014-12-04 11:17:24 -05:00
Matthew Jones
e05f9e081c
Throw an error when running an inventory update against an inventory
...
script that has been deleted
2014-12-03 16:09:55 -05:00
Matthew Jones
706b770814
Fix up unit test referencing the custom inventory script
2014-12-03 15:35:08 -05:00
Matthew Jones
19c0d04885
Adding organization reference to the custom inventory script
2014-12-03 15:05:44 -05:00
Matthew Jones
fcc7d3d7b1
Rework the callback emitter a little more, purge tower internals from
...
the module and fallback to the older codebase's mechanism. Make sure
we are passing the callback port as a string otherwise it seems to
corrupt the shell
2014-12-03 11:27:37 -05:00
Matthew Jones
13ee4e6048
Fix up an issue passing the callback port, which isn't strictly
...
necessary... if provided it causes a crash that corrupts the shell
2014-12-02 15:46:18 -05:00
Matthew Jones
fc5eb09e2a
Fix up some rbac issues that were blocking survey taker incidentally and
...
otherwise preventing normal users with the right permissions from
starting jobs
2014-12-01 14:01:03 -05:00
Matthew Jones
bab3bfb70a
Remove a vestige of the old zeromq implementation where we specified a
...
callback port as a decorated parameter to the overall test case
2014-12-01 11:35:20 -05:00
Matthew Jones
683e44f30e
Check for attributes on the job template before attempting to use that
2014-12-01 10:50:49 -05:00
Matthew Jones
6578c4ed26
Merge branch 'reintroduce-zeromq-unstable'
...
* reintroduce-zeromq-unstable:
Fix up some zeromq dependencies per platform
Fix a bug where a socket would re-emit its message 3 extra times
Make CALLBACK_CONSUMER_PORT falsy values be dummified.
Fix ZeroMQ port mismatch.
ZeroMQ changes.
Put files in the right place!
Error message correction.
Put socket.py in the wrong folder.
Theoretically working Socket implementation.
Beginning work on reintroducing ZeroMQ.
2014-12-01 10:24:51 -05:00
Matthew Jones
decd9da058
Merge branch 'master' into reintroduce-zeromq-unstable
...
* master:
Fix a bug where listing the unified job fields did not include the 'launch_type' parameter, causing failing unit tests
Inventory Scripts
Extra var parsing
Clean up jobs
Cleanup jobs redirect to jobs page
Custom inventory : Edit
Portal credential modal needed
Fix a bug in how I'm handling ids when creating a unified job as part of the launch process
Survey Maker
JS Hint errors
2014-12-01 10:24:18 -05:00
Matthew Jones
91a1d8f761
Fix a bug where listing the unified job fields did not include the
...
'launch_type' parameter, causing failing unit tests
2014-12-01 10:23:08 -05:00
Matthew Jones
bf04a56b68
Fix a bug where a socket would re-emit its message 3 extra times
2014-11-26 15:51:46 -05:00
Matthew Jones
875cef12e3
Fix a bug in how I'm handling ids when creating a unified job as part of
...
the launch process
2014-11-26 15:20:39 -05:00
Matthew Jones
8c4aee35d1
Merge remote-tracking branch 'origin/master' into reintroduce-zeromq-unstable
...
* origin/master:
Add tests for inventory_filters and group_by, fix to convert None to empty string.
Job submission
Fix up unified job creation parameter passing
Roll this back, it doesn't do what I expect
Make sure we propogate source_script into the related fields it needs to be in
Update job template launch docs with credential_needed_to_start documentation
Custom Inventory Scripts
forms/Sources.js
Add instance filters and group by options for EC2 inventory sources. Implements https://trello.com/c/QOVhP0mH
Make sure when we call create_unified_job we can pass important fields as _id or without
Make sure we pass extra parameters down to the unified job create method so we can pick up credential if given
Add system job template launch documentation
Track source_script in summary and related fields for relevant inventory sources
Host events
Simplify include_vars based on mpd feedback
Update the apt-cache when installing python-pip
Only the primary should syncdb and migrate
Update package changelogs
Update release history and process docs
Update ansible-tower service config in playbook
2014-11-26 13:40:37 -05:00
Matthew Jones
e1f25a0949
Fix up unified job creation parameter passing
2014-11-26 11:54:49 -05:00
Matthew Jones
f8c6aa6fca
Roll this back, it doesn't do what I expect
2014-11-26 11:37:36 -05:00
Matthew Jones
15e6aa29a7
Make sure we propogate source_script into the related fields it needs to
...
be in
2014-11-26 11:14:26 -05:00
Matthew Jones
fb8c33b973
Update job template launch docs with credential_needed_to_start documentation
2014-11-26 10:17:40 -05:00
Matthew Jones
9756487edf
Make sure when we call create_unified_job we can pass important fields
...
as _id or without
2014-11-25 16:57:17 -05:00
Matthew Jones
8718688cf8
Make sure we pass extra parameters down to the unified job create method
...
so we can pick up credential if given
2014-11-25 16:47:53 -05:00
Matthew Jones
08ea3bef25
Add system job template launch documentation
2014-11-25 16:22:48 -05:00
Matthew Jones
7e109cb95d
Track source_script in summary and related fields for relevant inventory sources
2014-11-25 15:28:52 -05:00
Matthew Jones
cfb4361eb4
Temporarily remove ask_variables for job relaunch
2014-11-24 15:24:43 -05:00
Matthew Jones
2916ebf0c0
Improve query time by removing a check from the order by filter handler
2014-11-21 15:57:01 -05:00
Matthew Jones
ca5689c8ad
Fix a bug where checking cache timeout blackout could fail on projects
2014-11-20 11:28:09 -05:00
Matthew Jones
e2a56f2d65
add cache_timeout_blocked to systemjobtemplate
2014-11-19 12:09:18 -05:00
Matthew Jones
ece3bc5e64
Move cache_timeout_blocked to the job template where it belong from the
...
job model
2014-11-19 11:48:51 -05:00
Matthew Jones
3764bd2303
Reword errors when version metadata does not match or is absent
2014-11-18 12:06:43 -05:00
Matthew Jones
8b46bc3829
Fix up OPTIONS requests relative to system jobs on some endpoints
2014-11-18 12:02:48 -05:00
Matthew Jones
fb8d7e5d9c
Fix up direct launching of system jobs
2014-11-18 11:38:24 -05:00
Matthew Jones
c85f4fbac0
Import rax module from ansible core
2014-11-17 15:20:46 -05:00
Matthew Jones
8ba4d4c091
More on system uuid
2014-11-17 15:15:42 -05:00
Matthew Jones
c48dde9753
More unit test fixups for system uuid
2014-11-17 14:50:57 -05:00
Matthew Jones
eae8c48faa
Fix up unit tests for tracking system_uuid in the settings and database
2014-11-17 14:14:07 -05:00
Matthew Jones
e99466efc2
Fix a bug in the callback receiver where we weren't properly
...
initializing the parent signal handler
2014-11-17 13:28:09 -05:00
Matthew Jones
2d4efc1aa9
Don't strictly require a max or min when the other is included and
...
parsing surveys
2014-11-13 14:05:05 -05:00
Matthew Jones
300396c7ce
Extend cache timeout to schedule runner also, block running a schedule
...
of an inventory update or a project update if its schedule places
it within that time also
2014-11-13 13:47:23 -05:00
Matthew Jones
04ec19023f
Only consider active schedules for excluding multiple system job schedules
2014-11-13 13:03:47 -05:00
Matthew Jones
fa702a7a59
Remove registration of instance from develop makefile target... on new
...
installations the database isn't available at this point
2014-11-11 15:51:13 -05:00
Matthew Jones
8bf66f01c4
Add System Job to OPTIONS get for job types under unified jobs
2014-11-11 15:51:13 -05:00
Matthew Jones
ba1b9b9136
Add timestamp to logs for prints in management commands so we pick them
...
up the supervisor logs
2014-11-11 11:47:12 -05:00
Matthew Jones
c4e2463db1
Sanity check for tower version metadata file in wsgi bootstrap
2014-11-10 15:12:14 -05:00
Matthew Jones
0de53886da
Disallow multiple schedules for System Job Templates
2014-11-10 14:44:34 -05:00
Matthew Jones
309dba9693
Wording changes for the system job descriptions as proposed by @mpdehaan
2014-11-10 13:58:29 -05:00
Matthew Jones
4e494469c9
Use the normal version checker from tower manage
2014-11-10 12:22:20 -05:00
Matthew Jones
ce9434314f
Add a metadata file to the tower home directory that lists the version
...
of Tower
2014-11-10 12:17:11 -05:00
Matthew Jones
8916863cd3
Tweaks for Job Template based permissions covering delete and read
...
operations when the license has expired. Fix an issue where users
without the appropriate permissions could still delete job templates
2014-11-10 10:58:08 -05:00