Commit Graph

9911 Commits

Author SHA1 Message Date
Greg Considine
820bc6f630 Merge pull request #6035 from gconsidine/fix/permission-mod-basic-license
Fix permission modal in team settings
2017-04-18 13:32:02 -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
gconsidine
6c06344fdb Fix permission modal in team settings
A GET request is made to check permissions on job templates, workflow
templates, inventories, etc. With a basic license, the workflow
template request returns a 402. The logic in place accounted for
500-ish errors and 200s. Now if a 402 response is returned, it's
excluded from the UI without affecting the other successful responses.
2017-04-17 11:22:03 -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
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
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
Chris Meyers
817ca503e8 Merge pull request #6002 from chrismeyersfsu/fix-5984
lock projects on project sync
2017-04-12 13:25:51 -04:00
Chris Meyers
70fafe75d2 clean up commented code 2017-04-12 11:42:31 -04:00
Chris Meyers
d1eba4b607 log lock errors and test it 2017-04-12 11:41:11 -04:00
Michael Abashian
5e9522322c Merge pull request #5998 from mabashian/5947-copy-move-host-pagination
Fixed copy/move groups/hosts pagination bug
2017-04-12 10:23:54 -04:00
Chris Meyers
7919c47370 put lock file in project root dir 2017-04-12 09:36:15 -04:00
Ryan Petrello
d1eb33bca0 Be more restrictive in catching LDAP exceptions.
django-auth-ldap can throw exceptions, like TypeError if it's
misconfigured.  If we encounter an exception attempting to log into an
LDAP server, log it and move on (otherwise, an uncaught exception will
cause local login to fail, too).

see: #5933
2017-04-11 16:43:26 -04:00
Chris Meyers
648aa470d7 lock projects on project sync
* Use filesystem, blocking, locks to prevent two project syncs for the
same project from running the project update playbook at the same time.
2017-04-11 15:47:46 -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
Michael Abashian
34c278fef5 Merge pull request #5996 from mabashian/5972-single-select-survey
Optional single select survey question with default bug fix
2017-04-11 13:25:32 -04:00
Michael Abashian
59b8ba2a1c Fixed copy/move groups/hosts pagination bug 2017-04-11 13:22:41 -04:00
Aaron Tan
6884e44bb3 Unit test added. 2017-04-11 11:40:47 -04:00
Matthew Jones
518e7cc896 Merge pull request #5987 from ansible/version_protection_check
Protect cluster nodes after an upgrade
2017-04-11 10:37:29 -04:00
Shane McDonald
6b06e741e0 Update pot files
Steps taken:

$ make docker-compose-test

Create /root/.config/zanata.ini (Obtained from https://translate.engineering.redhat.com/dashboard/settings/client)

Update .pot files:

$ make pot
$ make languages

Push to Zanata:

python tools/scripts/manage_translations.py push --both --lang es
2017-04-10 20:08:34 -04:00
Bill Nottingham
2360f5effe Spanish translation from alberto@oforte.net. 2017-04-10 18:53:37 -04:00
Michael Abashian
9a678c72dc Fixed bug where optional single select survey questions with a default value couldn't be skipped 2017-04-10 17:13:42 -04:00
Matthew Jones
b1c839ea62 Refactor service reloading unit tests
Make sure these are consistent with the more flexible utility commands
2017-04-10 15:37:45 -04:00
Matthew Jones
ea8b78ca49 Protect cluster nodes after an upgrade
* Modify instance model to container a version number for the node
* Update that version number during the heartbeat
* If during a heartbeat any of the nodes are of a newer version then
  shutdown the current node.

The idea behind this is that if all nodes were upgraded at the same
time then at the moment of the healthcheck they should all be at the
newer version. Otherwise we put the system in a state where it can
receive the upgrade but stay down until that happens. During setup
playbook run the services will be fully restarted.
2017-04-10 15:37:33 -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
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
AlanCoding
3e9bc3b3d4 Hide extra_vars in job notifications 2017-04-07 11:49:03 -04:00
AlanCoding
b9c45ed54a Fix bug where API assumed survey choices were list
Applies to both single-select and multi-select type questions.
UI sends choices in the form of text with line breaks
separating the options.
Customer complained about empty string erronously sent by
the UI being passed to playbook, which is a component of this.
2017-04-07 09:03:45 -04:00
Matthew Jones
189ea4d7f8 Fix insights related spelling mistake that could cause failure 2017-04-06 10:57:19 -04:00
Matthew Jones
1902bab8be Fix a with_items insights scm reference for newer ansible behavior
Newer ansible versions don't allow with_items to reference undefined
variables so we'll provide a default.

We'll also update some conditionals to deal with naming requirements
changes on insights api endpoints
2017-04-06 10:53:18 -04:00
Michael Abashian
7b5e70a45e Fixed bug where single select multiple choice survey questions that are required leave the form permanently disabled. 2017-04-05 12:37:07 -04:00
Matthew Jones
d06bc9df7a updating versions for 3.1.3 release 2017-03-31 12:11:37 -04:00
Matthew Jones
eeed969a56 Make sure the insight playbook fetch doesn't quote user and pass 2017-03-29 16:42:15 -04:00
Michael Abashian
bfbeef18e6 Navigate back to the jobDetails state when the user clicks outside the host event modal. 2017-03-29 12:04:48 -04:00
jlmitch5
b9531ea42a Merge pull request #5897 from jlmitch5/fixLegacyStdout
Fix legacy stdout
2017-03-28 11:17:35 -04:00
Matthew Jones
536a3b1647 Don't use jinja quote filter on insights username or password
This fixes an issue where a user was trying to use an exclamation mark
in the password. Historically we've used the quote filter but more and
more we're seeing conflicts with special characters
2017-03-27 15:40:43 -04:00
John Mitchell
d4955599ad fix legacy standard out 2017-03-27 12:06:54 -04:00
Michael Abashian
fd95c1e6e4 Fixed permissions typo 2017-03-27 11:56:08 -04:00
Wayne Witzel III
e750f1a01c Merge pull request #5892 from wwitzel3/release_3.1.2
Do not set the default if field was not passed in to kwargs_extra_vars.
2017-03-27 09:50:35 -04:00
Wayne Witzel III
45c3a389d4 add test, restore old behavior in api test 2017-03-27 09:39:21 -04:00
Wayne Witzel III
18eaacf4bb create _survey_element_validation and use it for updating extra_vars 2017-03-24 17:57:52 -04:00
Wayne Witzel III
c99d4659da Do not set the default if the field was not passed in to kwargs_extra_vars 2017-03-24 16:59:43 -04:00
Michael Abashian
1cb7fd9171 Merge pull request #5887 from mabashian/5883-job-results-event-json
Host Event json should be read-only
2017-03-24 13:11:38 -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
Ryan Petrello
d52726592f Merge pull request #5846 from ryanpetrello/fix-5691
property filter `no_log` for item event loops
2017-03-24 11:04:29 -04:00
Michael Abashian
c67687acfd Host Event json should be read-only 2017-03-24 10:35:08 -04:00
Michael Abashian
37bfa3c3a8 Add validation to the multi-select questions in survey 2017-03-23 11:24:52 -04:00
Ryan Petrello
f9b5b9aa91 property filter no_log for item event loops
see: #5691
2017-03-22 11:15:33 -04:00