Alan Rominger
70c11879a4
Merge pull request #6698 from AlanCoding/6690
...
Do not show related link if null
2017-06-27 16:03:33 -04:00
Alan Rominger
7699e26336
Merge pull request #6722 from AlanCoding/atomic_inv_del
...
use atomic transaction to delete inventory in task
2017-06-26 11:07:21 -04:00
AlanCoding
cf751568b5
use atomic transaction to delete inventory in task
2017-06-26 10:46:58 -04:00
AlanCoding
17c431c0be
do not show related link if null
2017-06-23 08:27:58 -04:00
Alan Rominger
30ec070357
Merge pull request #6692 from AlanCoding/manual_locations
...
Tag jobs started via special cases with node & group
2017-06-22 16:42:17 -04:00
AlanCoding
9e07b3f777
Tag jobs started via special cases with node & group
2017-06-22 16:24:12 -04:00
Alan Rominger
04ca47ffab
Merge pull request #6681 from AlanCoding/cluster_instances
...
New Alpha, Bravo, and Charlie instance groups for `make docker-compose-cluster`
2017-06-22 15:00:45 -04:00
Alan Rominger
8f254dbd82
Merge pull request #6675 from AlanCoding/controller_id_sf
...
add isolated job controller_id to summary fields
2017-06-22 10:44:53 -04:00
AlanCoding
3cedcf22a9
add instance groups and queues to cluster tooling
2017-06-22 10:40:58 -04:00
Alan Rominger
20f0a83bec
Merge pull request #6682 from AlanCoding/isolated_execution
...
Have execution_node reflect isolated instance
2017-06-22 10:12:21 -04:00
AlanCoding
ea51c03c83
have execution_node reflect isolated instance
2017-06-22 08:57:07 -04:00
AlanCoding
f62f0ca1e6
add isolated job controller_id to summary fields
2017-06-21 16:29:06 -04:00
Alan Rominger
2beb4e8885
Merge pull request #6673 from AlanCoding/iso_cap_select
...
Select isolated node inside of queue based on capacity
2017-06-21 16:03:06 -04:00
AlanCoding
d69b4e00ff
select isolated node inside of queue based on capacity
2017-06-21 15:48:23 -04:00
Alan Rominger
72cf434c2e
Merge pull request #6669 from AlanCoding/tower_controller_fix
...
fix bug that blocks tower controller groups
2017-06-21 14:35:59 -04:00
Alan Rominger
8bec16c1b0
Merge pull request #6649 from ansible/AlanCoding-patch-2
...
Update developer documentation for isolated jobs
2017-06-20 17:28:15 -04:00
Alan Rominger
2c92f623d8
Merge pull request #6617 from ansible/isolated_setup
...
setup playbook and heartbeat for isolated deployments
2017-06-20 17:20:53 -04:00
Alan Rominger
b9ecc775dc
Update developer documentation for isolated jobs
2017-06-20 15:09:45 -04:00
AlanCoding
40287d8e78
multi-host isolated heartbeat w tower-isolated check
...
* use tower-expect command to determine job status when running
the isolated heartbeat playbook
* grok JSON output of playbook to obtain result information
* run playbook against multiple isolated hosts at the same time
(addresses scalability concerns)
2017-06-20 14:36:18 -04:00
AlanCoding
f371dd71b2
Run isolated heartbeat against all hosts at once
...
Previously we were running the playbook on a host-by-host
basis, but this changes it to pass in the list of all
isolated isntances the machine is responsible for.
Using the `json` Ansible stdout module, we are able to
parse the output for information on each host.
2017-06-19 12:13:36 -04:00
AlanCoding
7eb8fdd0f1
Change use of subprocess lib for calculating system capacity
...
Suggested by Ryan Petrello as a part of the PR feedback
for the isolated instance setup work.
2017-06-19 12:13:36 -04:00
AlanCoding
1d9f2be0e4
add task in isolated heartbeat to delete rogue files
2017-06-19 12:13:36 -04:00
AlanCoding
dd1a261bc3
setup playbook and heartbeat for isolated deployments
...
* Allow isolated_group_ use in setup playbook
* Tweaks to host/queue registration commands complementing setup
* Create isolated heartbeat task and check capacity
* Add content about isolated instances to acceptance docs
2017-06-19 12:13:36 -04:00
Alan Rominger
c0923729e2
Merge pull request #6386 from ansible/AlanCoding-patch-1
...
root folder re-creation on project sync
2017-06-13 12:10:35 -04:00
Alan Rominger
f0ca47b4fd
root folder re-creation on project sync
2017-06-12 09:51:08 -04:00
Alan Rominger
a1963024c6
Merge pull request #6378 from AlanCoding/queue_cmd_help
...
Gracefully handle certain instance group tower-manage scenarios
2017-05-30 16:30:11 -04:00
AlanCoding
198b3f0a94
handle user corner cases related to instance group commands
2017-05-30 15:49:48 -04:00
Alan Rominger
430852b73d
Merge pull request #6271 from AlanCoding/wfj_no_node
...
Remove `execution_node` from WFJ serializer
2017-05-16 14:44:50 -04:00
AlanCoding
2cbb2c6d53
remove execution_node from WFJ serializer
2017-05-16 12:31:29 -04:00
Alan Rominger
22249b2625
Merge pull request #6266 from AlanCoding/ig_ordering
...
Instance group preference order consistent with docs
2017-05-15 16:34:18 -04:00
Alan Rominger
422ff33f5a
Merge pull request #6260 from AlanCoding/IG_meeting_words
...
Add docs from Instance Groups acceptance meeting
2017-05-15 16:33:22 -04:00
AlanCoding
fbf24492d8
Instance group preference order consistent with docs
2017-05-15 15:45:10 -04:00
Alan Rominger
537e046815
Merge pull request #6265 from AlanCoding/IU_dep_type
...
dependent IU launch_type reduced to 'dependency'
2017-05-15 14:37:15 -04:00
Alan Rominger
4d33197598
Merge pull request #6263 from AlanCoding/ret_TG
...
Return template_groups when set on UJT
2017-05-15 14:36:57 -04:00
AlanCoding
901c77bcfb
dependent IU launch_type reduced to 'dependency'
2017-05-15 14:24:41 -04:00
AlanCoding
05cecbf0e6
Return template_groups when set on UJT
2017-05-15 13:12:21 -04:00
AlanCoding
b41f4de4e5
Add docs from Instance Groups acceptance meeting
2017-05-15 10:16:47 -04:00
Alan Rominger
5f3aad4972
Merge pull request #6256 from AlanCoding/relaunch_extra_creds
...
Job relaunch refactor to accommodate new credential system
2017-05-12 17:24:16 -04:00
Alan Rominger
d22618aa09
Merge pull request #6247 from AlanCoding/extra_credit
...
JT RBAC edits for extra_credentials and vault_credential
2017-05-12 17:23:26 -04:00
AlanCoding
048804f48e
Job relaunch refactor to accomidate new credential system
...
* make user_capability for 'start' more simple
* provide error messages if relaunch not possible
* check for prompted extra_credentials
* add extra_credentials permission checks in orphan mode
2017-05-12 17:16:06 -04:00
AlanCoding
c6a3a7cc34
JT RBAC edits for extra_credentials and vault_credential
2017-05-12 17:13:58 -04:00
Alan Rominger
f7f27e94d1
Merge pull request #6249 from AlanCoding/job_action_serializer
...
Avoid re-building fields for cancel and relaunch endpoints
2017-05-12 09:37:25 -04:00
AlanCoding
244ebecd16
avoid re-building fields for cancel and relaunch endpoints
2017-05-11 17:11:57 -04:00
Alan Rominger
7a1c6c6794
Merge pull request #6241 from AlanCoding/scm_inv_feedback
...
SCM inventory acceptance and bug updates
2017-05-11 16:30:26 -04:00
Alan Rominger
bdde87f7f5
Merge pull request #6245 from AlanCoding/alan_rockin_ramparts
...
Introduce view to allow associations but no creations
2017-05-11 14:10:21 -04:00
AlanCoding
14b5ab984b
new view to allow associations but no creations
2017-05-11 13:11:11 -04:00
AlanCoding
97ca6bc897
SCM inventory acceptance and bug updates
...
* fixed a problem where the SCM last revision was not getting reset
* change the 400 editing error to just reset the last revision
* handle `source_vars` in the same way as custom scripts
* block unallowed `source_vars` in the validator
* hide POST in OPTIONS for inventory source sublist if not allowed
2017-05-11 12:04:48 -04:00
Alan Rominger
2b15d04096
Merge pull request #6218 from AlanCoding/scm_inv_cancel
...
SCM inventory cancel propagation
2017-05-10 15:52:31 -04:00
AlanCoding
fc590535be
update inventory file list on every project update
2017-05-10 15:34:31 -04:00
AlanCoding
04d6fb1f95
SCM inventory cancel propagation
...
For manually initiated inventory updates, also cancel the source
project of "sync" type, like jobs do
For automatic inventory updates spawned from source project update,
of launch type "scm", handle contigency cases
2017-05-10 10:28:49 -04:00
Alan Rominger
f954507a8c
Merge pull request #6186 from AlanCoding/scm_inv_stability
...
SCM Inventory task system and variables stability edits
2017-05-08 14:31:58 -04:00
AlanCoding
890b5bba58
SCM Inventory task system and variables stability edits
...
* Ensure "fresh bits" in dependent jobs
- run IUs in same context and dependent PU
- review docs for update-on-launch expectations
* Avoid customer variable precedence upgrade issues
- only allow SCM types to have overwrite_vars=true
- do not run other cloud sources through the backported script
* Make extra sure to echo stdout and stderr in event of error
2017-05-08 09:43:11 -04:00
Alan Rominger
257dc459cf
Merge pull request #6179 from AlanCoding/name_changes
...
SCM Inventory field name changes
2017-05-04 11:17:21 -04:00
AlanCoding
35ae13f498
fully link up source_project_update to inventory update
2017-05-04 11:08:05 -04:00
AlanCoding
d826c45ac6
SCM Inventory field name changes
...
on InventorySource model
* scm_project -> source_project
on InventorySourceSerializer
* scm_inventories -> scm_inventory_sources
on InventoryUpdate model
* scm_project_update -> source_project_update
2017-05-04 09:15:29 -04:00
Alan Rominger
a9c7822a4d
Merge pull request #6176 from AlanCoding/inv_src_as
...
link inventory source activity stream to right place
2017-05-03 17:00:26 -04:00
AlanCoding
4735358857
link inventory source activity stream to right place
2017-05-03 16:31:21 -04:00
Alan Rominger
24a04d56f1
Merge pull request #6135 from AlanCoding/scm_bifurcation
...
Allow management of 2 types of SCM inventory sources
2017-05-03 16:03:11 -04:00
AlanCoding
3243110496
connect CredentialType to activity stream
2017-05-03 13:53:11 -04:00
AlanCoding
12ab3a0ae9
managed_by_tower restriction now in validation, not access
2017-05-03 13:53:06 -04:00
AlanCoding
8d2598beee
allow management of 2 types of SCM inventory sources
2017-05-03 12:18:08 -04:00
Alan Rominger
84b8dcece0
Merge pull request #6120 from AlanCoding/ansible-inventory
...
Inventory updates through `ansible-inventory`
2017-05-02 16:19:58 -04:00
AlanCoding
2f62182940
refactor inventory Loaders for ansible-inventory
...
* remove support for loading from executable and static files
* instead use ansible-inventory with fallback to backport
* provide private file dir in task manager for cred injection
* durable management of tmp dirs for user scripts
* new 'scm' source choice for scm-type
* update SCM inventory docs to new reality
2017-05-01 14:37:43 -04:00
AlanCoding
a92c7cec7d
remove code to parse inventory files
2017-05-01 14:37:42 -04:00
AlanCoding
8e6020436c
modularization of inventory_import command
...
This separates file parsing logic that was mixed
in with other important code inside of the
inventory import command.
The logic around MemObject data structures was
moved to utils, and the file parsing was moved
to a legacy module. As of this commit, that
module can operate within the Tower environment
but it will be removed.
Also refactor the loggers to fix old bug and
work inside of the different contexts - the
Loader classes, mem objects, and hopefully
the inventory modules eventually.
2017-05-01 14:37:42 -04:00
AlanCoding
ef01fea89c
purge of inventory file syntax testing
...
* remove use of temporary files in inventory import
* remove old inventory import tests
* remove supporting example inventory files
This type of testing has been migrated to the backport
repository because it will be handled by the inventory module.
From here on out, no inventory syntax testing will be
maintained inside of the Ansible Tower repo.
2017-05-01 14:37:42 -04:00
AlanCoding
2488dabca6
add ansible-inventory backport from upstream
...
This is a separately maintained repo
https://github.com/ansible/ansible-inventory-backport
tests and compatibility is managed in that location
2017-05-01 14:37:42 -04:00
Alan Rominger
dd8f8c169c
Merge pull request #6139 from AlanCoding/mock_message_313
...
mock message obect in callback receiver test
2017-05-01 10:38:28 -04:00
AlanCoding
481df1fcf8
mock message obect in callback receiver test
2017-05-01 10:17:49 -04:00
AlanCoding
0246b6bdcd
bump migration versions after 313 merge
2017-04-28 14:40:08 -04:00
Alan Rominger
0e2bf3486a
Merge pull request #6123 from AlanCoding/allow_templated_ct
...
Make Credential Type validator aware of `tower` var
2017-04-28 09:23:51 -04:00
AlanCoding
1169d19f8c
Make Credential Type validator aware of "tower" var
2017-04-28 07:56:49 -04:00
Alan Rominger
e1a96092fc
Merge pull request #6094 from ansible/AlanCoding-patch-2-1
...
Fix 500 error in ProjectScmInventorySources
2017-04-25 10:10:48 -04:00
Alan Rominger
34b697ce17
Fix 500 error in ProjectScmInventorySources
2017-04-24 16:54:17 -04:00
Alan Rominger
4931bec1be
Merge pull request #6056 from AlanCoding/another_v1
...
Add back group summary_field for v1 InvSrc
2017-04-20 15:49:52 -04:00
AlanCoding
d1698ece34
Add back group summary_field for v1 InvSrc
2017-04-20 08:43:56 -04:00
Alan Rominger
498abd6764
Merge pull request #6061 from AlanCoding/new_inv_src_fix
...
Fix bug that is blocking creating new custom (script-based) inventory sources
2017-04-19 14:20:58 -04:00
AlanCoding
a066905997
fix InvSrc validation Organization requirement for new sources
2017-04-19 14:00:19 -04:00
Alan Rominger
31c18f2e16
Merge pull request #6039 from AlanCoding/log_certs
...
Setting for external logging cert verification
2017-04-17 16:59:33 -04:00
Alan Rominger
1011e54689
Merge pull request #5985 from AlanCoding/scm_inv5
...
SCM file-based inventory sources
2017-04-17 16:22:24 -04:00
Alan Rominger
6ff6948688
Merge pull request #6043 from AlanCoding/v1_group_fixes
...
Group V1 serializer fixes from QE feedback
2017-04-17 15:44:35 -04:00
AlanCoding
6d92c56da5
SCM Inventory model, view, and task system changes
...
Inventory source file-type combined with a linked project
will allow the inventory source to be updated when the
project is updated. The inventory update runs in the
post-run hook of the project update.
2017-04-17 15:01:19 -04:00
AlanCoding
3af0f505d8
Setting for external log emissions cert verification
...
Stopgap solution for issue for 3.1.3 where Splunk servers with a
self-signed certificate could not receive logs from Tower.
Users should set `LOG_AGGREGATOR_VERIFY_CERT = False` in settings
to use this.
2017-04-17 14:50:01 -04:00
AlanCoding
29de1056e7
Group V1 serializer fixes from QE feedback
...
Straightforward bug fixes and edits to be more consistent with
the 3.1 v1 API structure
- remove `inventory_source` as a field from group
- add inventory source as a group summary field
- fix user_capabilities bug for group start permission
- fix 500 error on /inventory_sources/N/update/
2017-04-17 14:43:17 -04:00
Alan Rominger
14a03d2cb5
Merge pull request #6029 from AlanCoding/group_v1
...
Group serializer special v1 functionality
2017-04-17 11:37:26 -04:00
Alan Rominger
6d17158b34
Merge pull request #5973 from AlanCoding/survey_choices_string
...
When survey choices are strings, don't just check "X in choices"
2017-04-17 11:05:50 -04:00
AlanCoding
7223177684
Group serializer special v1 functionality
...
Returns a related `inventory_source` and related link for groups
if accessed from /api/v1/, but not for API v2.
Also inserts corresponding fields to inventory source serializer.
Keep migrated manual sources and auto-create in API v1.
2017-04-17 10:30:07 -04:00
Alan Rominger
7dd69a36d8
Merge pull request #6017 from AlanCoding/supervisor_verbosity
...
Add supervisorctl logs
2017-04-13 11:07:41 -04:00
Alan Rominger
4c5222b16b
Merge pull request #6007 from AlanCoding/inv_src_changelog
...
Add removal of inventory_source link to CHANGELOG
2017-04-13 10:58:11 -04:00
AlanCoding
6f0a8949a6
Add supervisorctl logs
...
In some systems, the tower service process may not have sufficient
permissions to communicate with the supervisorctl socket, in which
case an automated restart will not be possible.
2017-04-12 16:46:58 -04:00
Alan Rominger
047672a5b7
Merge pull request #5914 from AlanCoding/ii_tests
...
Port inventory_import tests to new system
2017-04-12 15:07:56 -04:00
AlanCoding
d77c8ec88e
add removal of inventory_source link to CHANGELOG
2017-04-12 11:43:50 -04:00
AlanCoding
0aab8b6713
Port basic inventory_import command tests over to new system
2017-04-12 11:16:35 -04:00
Alan Rominger
3c79e5cfe2
Merge pull request #6003 from AlanCoding/inventory_update_update
...
Update inventory_update to group-less inventory sources
2017-04-12 10:22:40 -04:00
AlanCoding
a2ffbafea8
Update inventory_update to group-less inventory sources
2017-04-12 10:10:16 -04:00
Alan Rominger
b6eac59aa5
Merge pull request #6004 from ansible/AlanCoding-patch-1
...
Remove async from logging test kwargs
2017-04-12 09:31:37 -04:00
Alan Rominger
f3dd7f7987
Remove async from logging test kwargs
2017-04-12 09:22:50 -04:00
AlanCoding
933bc81dc2
Add bzip2 to Dockerfile yum install line
2017-04-10 08:11:06 -04:00
Alan Rominger
e0d6298460
Merge pull request #5977 from AlanCoding/bzip2
...
Install bzip2 so makefile targets to build frontend work
2017-04-07 15:36:23 -04:00
Alan Rominger
f0102ef0ff
Merge pull request #5978 from AlanCoding/hide_ev_notification
...
Hide extra_vars in job notifications
2017-04-07 15:33:34 -04:00