Commit Graph

12644 Commits

Author SHA1 Message Date
Marliana Lara
cad1ba0972 Merge pull request #6253 from marshmalien/truncateRevisionHash
Abbreviate revision hash within the Projects panel
2017-05-12 12:37:54 -04:00
Marliana Lara
62c4efe19b Remove try/catch block of copyRevisionHash() 2017-05-12 10:02:52 -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
Michael Abashian
c04ac86df8 Merge pull request #6248 from mabashian/makefile-fix
Fixed make docker-compose-test
2017-05-11 21:21:12 -04:00
Marliana Lara
82683d423f Add tooltip to revision copy link 2017-05-11 18:20:35 -04:00
AlanCoding
244ebecd16 avoid re-building fields for cancel and relaunch endpoints 2017-05-11 17:11:57 -04:00
Michael Abashian
070de2fe67 Fixed make docker-compose-test 2017-05-11 17:11:23 -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
Marliana Lara
65dd53ac5f Add ability to copy revision hash to clipboard
*Update copy link styles to match app theme
2017-05-11 15:27:10 -04:00
Shane McDonald
dfdf59bcf5 Fix RPM builds
The version of setuptools bundled with virtualenv is broken. This fixes things for both online and offline pip installs.
2017-05-11 14:26:52 -04:00
Marliana Lara
cc94d724ec Add SeeMore and SeeLess link actions 2017-05-11 14:18:36 -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
Marliana Lara
a27bd045de WIP: First attempt with Badge Icons 2017-05-11 10:07:44 -04:00
Ryan Petrello
44c1935590 Merge pull request #6232 from ryanpetrello/jt_promptable_extra_creds
add prompting for JT.extra_credentials
2017-05-11 07:51:36 -04:00
Ryan Petrello
53c3ece32b add prompting for JT.extra_credentials
see: #2913
2017-05-11 07:29:53 -04:00
Marliana Lara
0bf28ffed8 Filter revision hash to less than 7 characters 2017-05-10 16:28:30 -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
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
AlanCoding
fc590535be update inventory file list on every project update 2017-05-10 15:34:31 -04:00
Ryan Petrello
830c7901a3 Merge pull request #6222 from ryanpetrello/fix-6160
properly filter `User.password` from ActivityStream entries
2017-05-10 15:27:52 -04:00
Ryan Petrello
2a59e91d4c Merge pull request #6221 from ryanpetrello/rdb-tooling
add tooling to aid in remote debugging sessions
2017-05-10 15:27:30 -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
Michael Abashian
3065d0a935 Merge pull request #6226 from mabashian/inventory-breadcrumbs
Breadcrumb fixes and nested groups/hosts state refactoring
2017-05-10 11:22:10 -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
Aaron Tan
3099fd7a01 Merge pull request #6117 from jangsutsr/dynamic_inv_src_dependency_update
Dependency updates
2017-05-10 09:57:58 -04:00
Michael Abashian
34073e65f5 Merge pull request #6190 from mabashian/6180-store_facts
Added store_facts to the job template form
2017-05-10 09:07:18 -04:00
Michael Abashian
b0acb590e6 Breadcrumb fixes and nested groups/hosts state refactoring 2017-05-09 20:55:16 -04:00
Ryan Petrello
6e0f580e15 Merge pull request #6223 from ryanpetrello/new_credential_model
add a view for `/api/v2/credential_types/N/activity_stream/`
2017-05-09 16:58:36 -04:00
Aaron Tan
f5e58922ab Create tacacs and radius users with password disabled. 2017-05-09 16:36:50 -04:00
Ryan Petrello
3126bfa1a2 add tooling to aid in remote debugging sessions 2017-05-09 15:36:13 -04:00
Ryan Petrello
9a6dc4d0ef add a view for /api/v2/credential_types/N/activity_stream/ 2017-05-09 15:01:04 -04:00
Ryan Petrello
f7660e1778 properly filter User.password from ActivityStream entries
see: #6160
2017-05-09 14:56:27 -04:00
Ryan Petrello
b7438288cc Merge pull request #6213 from ryanpetrello/new_credential_model
add a new read-only view for `/api/v2/credential_types/N/credentials/`
2017-05-09 13:14:51 -04:00
Jake McDermott
be56912dc3 unit test inventory source serializer get_related (#6214) 2017-05-09 12:07:39 -04:00
Shane McDonald
55c2f5a2d6 Install Twilio package from source.
Someone uploaded a broken wheel to pypi...
2017-05-09 08:41:57 -04:00
Ryan Petrello
2feb7d5a69 add a new read-only view for /api/v2/credential_types/N/credentials/ 2017-05-08 17:11:09 -04:00
Ryan Petrello
4cae50f2ab Merge pull request #6201 from ryanpetrello/new_credential_model
Make CredentialType conditionally editable/readonly
2017-05-08 16:27:15 -04:00
Ryan Petrello
1568fddde1 Make CredentialType conditionally editable/readonly.
* CredentialTypes should not be editable *or* deletable if they're
  "managed_by_tower".
* CredentialTypes should not be deletable if they're in use by one or
  more Credentials.
* CredentialType.inputs should not be editable if they're in use by one
  or more Credentials.

see: #6077
2017-05-08 16:13:26 -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
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
Ryan Petrello
19093d281a Merge pull request #6210 from ryanpetrello/improved_api_v1_credential_compat
properly support `(cloud|network)_credential` for JT update *and* create
2017-05-08 14:10:04 -04:00
Ryan Petrello
b7b9fb531e properly support (cloud|network)_credential for JT update *and* create
fix a bug which caused `POST /api/v1/job_templates/` to not properly set
`JobTemplate.extra_credentials`.

see: #5807
2017-05-08 13:50:28 -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
Michael Abashian
5628a0737d Removed scan job type logic for store_facts 2017-05-08 10:06:27 -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
Ryan Petrello
3ed9ebed89 Merge pull request #6191 from ryanpetrello/fix-credential-migration
fix broken credential type migration upgrade
2017-05-05 14:56:35 -04:00
Ryan Petrello
422a62fb34 fix broken credential type migration upgrade 2017-05-05 13:19:59 -04:00
Michael Abashian
4721805b4b Added store_facts to the job template form 2017-05-05 11:11:09 -04:00