Commit Graph
100 Commits
Author SHA1 Message Date
Aaron Tan f18b7f2f19 Merge pull request #6211 from jangsutsr/6188_handle_500_error_with_toggling_log_aggregator_enable
Handle 500 error with toggling log aggregator enable
2017-05-10 15:38:47 -04:00
Aaron Tan ecd87e07c6 Merge pull request #6224 from jangsutsr/6169_create_tacacs_n_radius_users_with_password_disabled
Create tacacs and radius users with password disabled
2017-05-10 15:26:36 -04:00
Aaron Tan 3099fd7a01 Merge pull request #6117 from jangsutsr/dynamic_inv_src_dependency_update
Dependency updates
2017-05-10 09:57:58 -04:00
Aaron Tan f5e58922ab Create tacacs and radius users with password disabled. 2017-05-09 16:36:50 -04:00
Aaron Tan 95b09795a8 Handle 500 error with toggling log aggregator enable. 2017-05-08 15:47:58 -04:00
Aaron Tan 6728bb2315 Merge pull request #6187 from jangsutsr/6169_prevent_third_party_based_user_to_impose_tower_user
Prevent third-party-based user from imposing tower user
2017-05-08 14:43:32 -04:00
Aaron Tan 3110a9b4b0 Merge pull request #6185 from jangsutsr/6023_add_prompt_for_verbosity
Add prompt for verbosity
2017-05-08 14:42:04 -04:00
Aaron Tan cfb633e8a6 Dependency Updates
* Dynamic Inventory Source
Template against ansible 2.3 dynamic inventory sources.
The major change is removal of `rax.py`. Most upstream scripts except
`foreman.py` has quite trivial coding style changes, or minor functional
extensions  that does not affect Tower inventory update runs.
`foreman.py`, on the other hand, went through quite a major refactoring,
but functionalities stay the same.

Major python dependency updates include apache-libcloud (1.3.0 -->
2.0.0), boto (2.45.0 --> 2.46.1) and shade (1.19.0 --> 1.20.0). Minor
python dependency updates include indirect updates via `pip-compile`,
which are determined by base dependencies.

Some minor `task.py` extensions:
 - `.ini` file for ec2 has one more field `stack_filter=False`, which
   reveals changes in `ec2.py`.
 - `.ini` file for cloudforms will catch these four options from
   `source_vars_dict` of inventory update: `'version', 'purge_actions',
   'clean_group_keys', 'nest_tags'`. These four options have always been
   available in `cloudforms.py` but `cloudforms.ini.example` has not
   mentioned them until the latest version. For consistency with upstream
   docs, we should make these fields available for tower user to customize.
 - YAML file of openstack will catch ansible options `use_hostnames`,
   `expand_hostvars` and `fail_on_errors` from `source_vars_dict` of
   inventory update as a response to issue #6075.

* Remove Rackspace support
Supports of Rackspace as both a dynamic inventory source and a cloud
credential are fully removed. Data migrations have been added to support
arbitrary credential types feature and delete rackspace inventory
sources.

Note also requirement `jsonschema` has been moved from
`requirements.txt` to `requirements.in` as a primary dependency to
reflect it's usage in `/main/fields.py`.

Connected issue: #6080.

* `pexpect` major update
`pexpect` stands at the very core of our task system and underwent a
major update from 3.1 to 4.2.1. Although verified during devel, please
still be mindful of any suspicious issues on celery side even after this
PR gets merged.

* Miscellaneous
 - requests now explicitly declared in `requirements.in` at version 2.11.1
   in response to upstream issue
 - celery: 3.1.17 -> 3.1.25
 - django-extensions: 1.7.4 -> 1.7.8
 - django-polymorphic: 0.7.2 -> 1.2
 - django-split-settings: 0.2.2 -> 0.2.5
 - django-taggit: 0.21.3 -> 0.22.1
 - irc: 15.0.4 -> 15.1.1
 - pygerduty: 0.35.1 -> 0.35.2
 - pyOpenSSL: 16.2.0 -> 17.0.0
 - python-saml: 2.2.0 -> 2.2.1
 - redbaron: 0.6.2 -> 0.6.3
 - slackclient: 1.0.2 -> 1.0.5
 - tacacs_plus: 0.1 -> 0.2
 - xmltodict: 0.10.2 -> 0.11.0
 - pip: 8.1.2 -> 9.0.1
 - setuptools: 23.0.0 -> 35.0.2
 - (requirements_ansible.in only)kombu: 3.0.35 -> 3.0.37
2017-05-08 12:03:02 -04:00
Aaron Tan 7a6364c642 Prevent third-party-based user from imposing tower user. 2017-05-04 17:31:57 -04:00
Aaron Tan 18ba56964f Add prompt for verbosity. 2017-05-04 14:32:08 -04:00
Aaron Tan 6fe133dc7f Merge pull request #6142 from jangsutsr/6113_allow_concurrent_workflow_job_runs
Allow concurrent workflow job runs
2017-05-02 16:41:32 -04:00
Aaron Tan 057b24ccd0 Allow concurrent workflow job runs. 2017-05-02 16:28:24 -04:00
Aaron Tan 59376feb70 Merge pull request #6133 from jangsutsr/6118_rework
Trailing comma rework
2017-05-02 15:41:23 -04:00
Aaron Tan df49a70fd7 Trailing comma rework. 2017-05-01 16:42:32 -04:00
Aaron Tan 89f239ce66 Merge pull request #6119 from jangsutsr/5658_enforce_org_dependency_of_notification_template
Enforce org dependency of notification template
2017-04-28 11:08:21 -04:00
Aaron Tan d0d201863b Enforce org dependency of notification template. 2017-04-28 10:14:21 -04:00
Aaron Tan 77915423c2 Merge pull request #6122 from jangsutsr/6012_prevent_workflow_resources_from_returning_402_with_basic_license
Prevent workflow resources from returning 402 with basic license
2017-04-28 09:38:34 -04:00
Aaron Tan 209acc3278 Merge pull request #6121 from jangsutsr/6118_allow_drf_parser_to_accept_trailing_commas
Allow DRF parser to accept trailing commas
2017-04-28 09:37:23 -04:00
Aaron Tan 0dc6bbe5a0 Prevent workflow resources from returning 402 with basic license. 2017-04-27 16:50:16 -04:00
Aaron Tan c2d26c918a Allow DRF parser to accept trailing commas. 2017-04-27 16:16:05 -04:00
Aaron Tan dd3e373c34 Merge pull request #6095 from jangsutsr/6066_allow_exception_view_to_accept_all_valid_http_methods
Allow exception view to accept all valid HTTP methods.
2017-04-25 15:11:14 -04:00
Aaron Tan 48934461c4 Merge pull request #5783 from jangsutsr/5718_enable_udp_communication_to_log_aggregators
Enable TCP/UDP communication to log aggregators
2017-04-25 13:37:23 -04:00
Aaron Tan 381b47201b Allow exception view to accept all valid HTTP methods. 2017-04-25 13:35:21 -04:00
Aaron Tan 8d2ee8c30f Refactor log handler and support TCP/UDP communications 2017-04-25 11:07:57 -04:00
Aaron Tan 113a352af3 Merge pull request #6097 from jangsutsr/6066_restore_ability_of_parsing_extra_var_strings_for_provisioning_callback
Restore ability of parsing extra var strings for provisioning callback
2017-04-25 09:42:29 -04:00
Aaron Tan 3a81ca0dce Restore ability of parsing extra_vars string for provisioning callback. 2017-04-24 17:43:20 -04:00
Aaron Tan 30193ffea5 Merge pull request #5970 from jangsutsr/5628_update_ctit_serializer_fields_to_handle_html_cornercase
Update CTinT serializer integer field to handle html cornercase
2017-04-17 11:21:02 -04:00
Aaron Tan 250ffca3ea Merge pull request #5920 from jangsutsr/5762_tacacsplus_auth_backend
A working TACACS+ backend and related CTiT settings
2017-04-13 10:42:25 -04:00
Aaron Tan 07198a5ba6 Acceptance Docs. 2017-04-12 16:19:42 -04:00
Aaron Tan fd4aaa6ca9 Implement tacacs+ auth backend. 2017-04-12 16:19:42 -04:00
Aaron Tan f2c99eeaf5 Basic tacacs+ CTiT. 2017-04-12 16:19:42 -04:00
Aaron Tan 84c6d41bd4 Merge pull request #6013 from ryanpetrello/tacacs_requirements
add tacacs_plus package as a dependency
2017-04-12 15:44:40 -04:00
Aaron Tan 9027616420 Merge pull request #5989 from jangsutsr/5986_prevent_unexpected_callback_module_attribute_warning
Prevent unexpected callback module attribute warning
2017-04-11 14:54:38 -04:00
Aaron Tan 6884e44bb3 Unit test added. 2017-04-11 11:40:47 -04:00
Aaron Tan 9b1107c054 Prevent unexpected callback module attribute warning. 2017-04-10 14:40:57 -04:00
Aaron Tan b0a8e8c332 Update CTiT serializer integer field to handle html cornercase. 2017-04-07 16:53:35 -04:00
Aaron Tan b6ccb01257 Merge pull request #5888 from jangsutsr/5628_remove_log_aggregator_port_required_mark
Remove log aggregator port required mark
2017-03-24 12:11:42 -04:00
Aaron Tan b421670c10 Remove log aggregator port required mark. 2017-03-24 11:57:56 -04:00
Aaron Tan 7ba79c1027 Merge pull request #5792 from jangsutsr/5628_smarter_log_aggregator_host_name_generation
Smarter log aggregator host name generation
2017-03-24 11:46:46 -04:00
Aaron Tan 07e7e4cfd0 Modify according to review feedback. 2017-03-24 11:35:45 -04:00
Aaron Tan f69c2569d6 Smarter log aggregator host name generation. 2017-03-20 13:20:16 -04:00
Aaron Tan fe78d86c4a Merge pull request #5747 from jangsutsr/5728_handle_can_start_without_user_input_cornercase
Handle can_start_without_user_input cornercase
2017-03-20 13:03:22 -04:00
Aaron Tan 2e2d88516e Negative functional test added. 2017-03-20 12:21:21 -04:00
Aaron Tan 2edd4b338d Add functional test to gurarantee consistent behavior of provisioning callback with jt launch. 2017-03-17 15:40:55 -04:00
Aaron Tan 6083e9482e Refactor job template callback post to mimic the behavior of normal jt launch. 2017-03-17 13:04:45 -04:00
Aaron Tan 90bcc3d6ab Unit test added. 2017-03-16 11:08:19 -04:00
Aaron Tan 95e41e078c Handle can_start_without_user_input cornercase. 2017-03-15 17:42:59 -04:00
Aaron Tan b105e2b9b6 Remove unicode marker from filter error message. 2017-03-07 16:48:51 -05:00
Aaron Tan fe3605ccdd Merge pull request #5534 from jangsutsr/3551_restore_original_behavior_of_group_children_unattach
Restore original behavior of group children unattach
2017-02-27 10:05:15 -05:00
Aaron Tan f11a220e64 Add missing permission check. 2017-02-24 17:06:57 -05:00
Aaron Tan 7415880f20 Merge pull request #5515 from jangsutsr/3254_update_host_detail_put_option
Update host detail put option rework
2017-02-24 16:58:09 -05:00
Aaron Tan 2c4a16369d Restore original behavior of group children unattach. 2017-02-23 16:53:16 -05:00
jangsutsr 5af389949e update ACTIONS field of metadata. 2017-02-22 15:45:43 -05:00
Aaron Tan acfd12c85a Merge pull request #4352 from jangsutsr/4282_fix_wfj_node_related_destination
Fix wfj node related destination
2016-12-08 17:22:48 -05:00
Aaron Tan e5278e2291 Fix wfj node related destination. 2016-12-08 16:40:07 -05:00
Aaron Tan 0456aec064 Merge pull request #4196 from jangsutsr/4137_add_ability_to_disable_global_job_timeout
Add ability to disable global job timeout
2016-12-02 16:01:22 -05:00
Aaron Tan 7f358d893e Modify according to review feedback. 2016-12-02 14:47:38 -05:00
Aaron Tan d6022b31c2 Add schedule capability to wfjt serializer. 2016-12-02 12:22:52 -05:00
Aaron Tan 386a7d71a0 Merge pull request #4205 from jangsutsr/4099_copy_behavior_consistancy_update
Copy name format update to be consistent with UI
2016-12-02 11:51:30 -05:00
Aaron Tan abc148ae96 Merge pull request #4222 from jangsutsr/4210_add_missing_3_10_labels
Add missing new_in_310 labels to workflow views.
2016-12-02 11:49:26 -05:00
Aaron Tan 3433343603 Merge pull request #4221 from jangsutsr/4018_prevent_multiple_print_of_version_label_in_api_help_text
Prevent multiple print of version label in api help text.
2016-12-02 11:49:15 -05:00
Aaron Tan 5a60954997 Add help text to wfjt launch endpoint. 2016-12-02 11:48:32 -05:00
Aaron Tan 07cd94535f Modify strftime argument format to enforce am/pm 2016-12-02 10:59:54 -05:00
Aaron Tan 7af675b031 Merge pull request #4111 from jangsutsr/4086_provide_linkage_from_spawned_job_to_wfj
Provide linkage from spawned job to wfj
2016-12-01 21:59:47 -05:00
Aaron Tan 84a3aeec67 Prevent multiple print of version label in api help text. 2016-12-01 21:54:20 -05:00
Aaron Tan 0f58b0d3d0 Add missing new_in_310 labels to workflow views. 2016-12-01 21:00:40 -05:00
Aaron Tan 987a53a2a5 Copy name format update to be consistant with UI. 2016-12-01 15:27:35 -05:00
Aaron Tan 9f629048da Simplify select_related. 2016-12-01 15:05:22 -05:00
Aaron Tan a22d815c88 Add ability to disable global job timeout. 2016-12-01 12:08:53 -05:00
Aaron Tan 805d4d1ed6 Merge pull request #4192 from jangsutsr/4190_unified_job_field_name_modification
Update unified_job related field name
2016-12-01 11:45:39 -05:00
Aaron Tan 99029a1b0d Update unified_job related field name. 2016-12-01 11:17:57 -05:00
Aaron Tan e63716c0bb Move performance boost to access.py. 2016-12-01 11:04:06 -05:00
Aaron Tan 908b140d28 Add back linkage to summary fields and remove it from normal fields. 2016-12-01 10:50:18 -05:00
Aaron Tan 88bf975368 Pytest fixture adjustment. 2016-11-29 12:58:04 -05:00
Aaron Tan a458bb3c89 Remove source_workflow_job and use workflow_job_id instead. 2016-11-29 11:55:04 -05:00
Aaron Tan d7c9ff209d Merge pull request #4112 from jangsutsr/4054_add_org_to_wfjt_related_fields
Add org to wfjt related fields
2016-11-26 16:12:07 -05:00
Aaron Tan f0b65d36bd Add new version indicator 2016-11-26 12:10:21 -05:00
Aaron Tan a27ab393de Merge pull request #4113 from jangsutsr/4095_add_workflow_object_roles_list_endpoint
Add workflow job template object_roles_list endpoint
2016-11-26 12:05:59 -05:00
Aaron Tan d809227cac Add wfjt object_roles_list endpoint. 2016-11-25 22:46:46 -05:00
Aaron Tan 3e8e9480d1 Pytest fixture adjustment. 2016-11-25 22:28:52 -05:00
Aaron Tan 8eb4b7b271 Add reversed relationship. 2016-11-25 22:02:23 -05:00
Aaron Tan 9154f19560 Complete related field. 2016-11-25 21:31:55 -05:00
Aaron Tan 54f99749eb Provide linkage from spawned job back to wfj. 2016-11-25 21:23:29 -05:00
Aaron Tan 16c0bc29a5 Merge pull request #4094 from jangsutsr/4078_hookup_activity_stream_with_workflow
Hook up activity stream with workflow
2016-11-22 10:29:27 -05:00
Aaron Tan 1c36462b1b Hook up activity stream with workflow. 2016-11-21 16:55:34 -05:00
Aaron Tan 03bb260963 Merge pull request #3947 from jangsutsr/workflow_doc
[workflows] Workflow Acceptance Doc
2016-11-21 15:33:46 -05:00
Aaron Tan 2995ea310f Modify wfjt copy behavior 2016-11-21 15:03:21 -05:00
Aaron Tan 6ce3a71f7d Merge pull request #4081 from jangsutsr/4076_wfjt_access_list
Implement wfjt access list
2016-11-21 13:03:20 -05:00
Aaron Tan b4cc024d50 Implement wfjt access list. 2016-11-21 11:37:59 -05:00
Aaron Tan 220f44bdbc Give updated copy name format 2016-11-21 10:31:52 -05:00
Aaron Tan 35da7215ca Remove 'ancestor_artifacts' 2016-11-21 10:24:48 -05:00
Aaron Tan 87bf7d22e1 Add organization to wfjt serializer related_fields. 2016-11-17 17:11:58 -05:00
Aaron Tan 3d9a13abfc Fill in the missing pieces 2016-11-17 16:46:15 -05:00
Aaron Tan 16f1828a53 Workflow copy/relaunch added 2016-11-16 16:02:57 -05:00
Aaron Tan 344a522f3e Merge pull request #4028 from jangsutsr/3976_update_workflow_job_foreign_key_related_name
Update workflow job foreign key related_name.
2016-11-16 12:44:21 -05:00
Aaron Tan 1cbeb71843 Merge pull request #4034 from jangsutsr/4023_resume_flake8_E302
Resume flake8 E302.
2016-11-16 10:41:18 -05:00
Aaron Tan 2d1a5425d1 Fix flake8 E302 errors second round. 2016-11-16 09:56:07 -05:00
Aaron Tan 2c9a475d46 Update according to review feedback 2016-11-15 22:29:24 -05:00
Aaron Tan 9e4655419e Fix flake8 E302 errors. 2016-11-15 20:59:39 -05:00
Aaron Tan 7dddae1254 Resume flake8 E302. 2016-11-15 17:31:21 -05:00